Maybe you were not implying that I clone the subproject and include it in
my overlay project.
My problem is that I include the following in my build.gradle:
testImplementation
"org.apereo.cas:cas-server-core-authentication-api:${project.'cas.version'}"
and in my test class I import:
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
I see the jar when I do a gradlew dependencies
But I get a compile error when building:
MyActionTest.java:27: error: cannot find symbol
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
^
symbol: class CoreAuthenticationTestUtils
location: package org.apereo.cas.authentication
1 error
> Task :compileTestJava FAILED
-psv
On Monday, September 27, 2021 at 6:02:27 PM UTC-5 Ray Bon wrote:
> Pablo,
>
> Clone the cas repo, https://github.com/apereo/cas
> Then search for that file
> $ find . -name CoreAuthenticationTestUtils.java
>
> ./core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/CoreAuthenticationTestUtils.java
>
> Then
>
> testImplementation "org.apereo.cas:cas-server-core-authentication-api"
>
> Ray
>
> On Mon, 2021-09-27 at 15:23 -0700, Pablo Vidaurri wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
>
> I'm trying to test my custom webflow, for a few of the actions I have a
> principle. How do I mock the principle? I've reviewed cas code and see the
> use of CoreAuthenticationTestUtil but for the life of me I cannot get the
> dependency included in my project.
>
> --
>
> Ray Bon
> Programmer Analyst
> Development Services, University Systems
> 2507218831 <(250)%20721-8831> | CLE 019 | [email protected]
>
> I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional
> territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ
> peoples whose historical relationships with the land continue to this day.
>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f4a146e8-8b4a-4aae-891a-32d7624cc916n%40apereo.org.