Mockito inCAS 6.3.2 not finding packages

21 views
Skip to first unread message

Pablo Vidaurri

unread,
Sep 19, 2021, 11:53:17 PM9/19/21
to CAS Community
I've added the following dependencies in build.gradle:

testCompile  'org.junit.jupiter:junit-jupiter:5.7.2'
 testCompile 'org.mockito:mockito-junit-jupiter:3.12.4' 

I do a clean/build but the mockito packages cannot be resolved.
Multiple markers at this line
- The import org.mockito cannot be  resolved
- The import org.mockito cannot be  resolved
- The import org.mockito cannot be  resolved

I create another dummy project and the packages download and dummy project compiles and runs the test.

Is there something excluding these packages in CAS?

-psv

Ray Bon

unread,
Sep 20, 2021, 1:10:24 PM9/20/21
to cas-...@apereo.org
Pablo,

To see the dependencies:
./gradlew dependencies

You might want to redirect output to a file, the dependency list is long.

This is what I have for cas overlay 6.4

    testImplementation "junit:junit:${junitVersion}"
    testImplementation "org.mockito:mockito-core:${mockitoVersion}"
    testImplementation "org.springframework:spring-test:${springVersion}"
    testImplementation 'org.slf4j:slf4j-log4j12:1.8.0-beta4'
    testImplementation 'org.apache.logging.log4j:log4j-api:2.14.1'
    testImplementation 'org.apache.logging.log4j:log4j-core:2.14.1'

where

junitVersion=4.13.2
mockitoVersion=2.23.4

Ray

On Sun, 2021-09-19 at 20:53 -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.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

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.

Pablo Vidaurri

unread,
Sep 21, 2021, 10:58:49 AM9/21/21
to CAS Community, Ray Bon
I'm not sure exactly why, but my Test case class was corrupt (maybe some hidden char was copied into it). I deleted the class and recreated it and errors went away.
Reply all
Reply to author
Forward
0 new messages