-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JMockit does not work with newest versions of JaCoCo plugin #748
Comments
You might want to migrate to mockito, as I hit the same issue. 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 |
Some unit tests throw ArrayIndexOutOfBoundsException when using
newest version 0.8.11 of the JaCoCo plugin. An older version of JaCoCo plugin like 0.8.3 works ok.
The expection is thrown in a test case where I mock a singleton class. If I remove the mocking the test case works ok.
Mocking of the below class in a test case field using the @mocked annotation cause all test cases in the module to fail with
the ArrayIndexOutOfBoundsException :
The text was updated successfully, but these errors were encountered: