You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
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
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: