Open pksilen opened 6 months ago
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 :