JUnit’s @TestMethodOrder annotation not working
You need to configure correctly your IDE. Requirements <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.4.0</version> </dependency> Do not use JUnit 5 that offers your IDE. If you add it as library, you will get: No tests found for with test runner ‘JUnit 5’ ==================== and this exception =================== TestEngine with ID ‘junit-vintage’ failed to discover tests java.lang.SecurityException: class … Read more