Open ThejasJainMJ opened 9 months ago
Use this fork instead https://github.com/hazendaz/jmockit1
You might want to migrate to mockito or use the above fork. Have built on @tinder-dthomson 's great work with much help from @timtebeek and added automation for more statements and improved robustness, including Jmockit Expectations, JMockit Verifications (v 8.29.0) and Jmockit NonStrictExpectations (v 8.30.0) . It's now looking like it would cover the majority of cases and may be worth exploring for migration to mockito
https://docs.openrewrite.org/recipes/java/testing/jmockit/jmockittomockito
Please provide the following information:
Version of JMockit that was used: 1.45
Description of the problem or enhancement request: previously iwas using jmockit version 1.24 with java 8 that is working perfectly fine. But i upgrades to java 11 after this it started throwing NoClassDefFound error. After i update jmockit version to 1.45 but still it throwing same error.
com.accurev.gitserver.fw.parsers.IssuesParserTest Time elapsed: 0 s <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class com.accurev.gitserver.constants.TestConstants at com.accurev.gitserver.fw.parsers.IssuesParserTest.setUp(IssuesParserTest.java:35)
Does jmockit is compatible with java 11.
pom.xml