Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Having problems with jmockit 1.45 and Junit 5.4 #585
I just upgraded to the latest version of jmockit (1.45) and jUnit (5.4.0) and all the sudden all test were failing with a null pointer exception I checked and none of the objects injected by jmockit using annotations @tested, @injected and @Mocked were being created, they were all null hence the null pointer exception I downgraded JUnit back to 5.3..2 and everything was working again.
Any suggestion with this?
As I explained in junit-team/junit5#1792 (comment), the
Thus, JMockit's support for JUnit Jupiter simply never gets registered when using JUnit Jupiter 5.4+.
In junit-team/junit5#1792 (comment), I also outlined a workaround that works but is rather intrusive.