Context
i'm trying to use jmockit with Spring boot
I'm using examples such as this: https://www.baeldung.com/mockito-vs-easymock-vs-jmockito
I have set up the agent in my IDE jvm args:
-ea -javaagent:/path/to/lib_jmockit/jmockit-1.46.jar
However the IDE cannot find the JMockit.class. Nor can gradle. Help text shows: "Cannot resolve symbol JMockit"
Some points:
- Neither gradle nor intellij can find JMockit.class
- I've checked the Jmockit jar files. No JMockit.class
Question
- What class to use instead of JMockit.class?
- can you point me to docs on how the various 'Runner' implementations work in testing? I'm new tot his and don't understand how runner "SpringJunit4ClassRunner" works differently from runner "JMockit.class" and what exactly a "Runner" implemenation does/doesn't do.
Update
I ditched JMockit for Mockito. "It just worked."
Opinionated spring boot won over opinionated tech lead.