Inspectopedia
 
2024.3

JUnit 3 test can be JUnit 4

Info
Reliability
New
Last modified: 03 December 2024

Reports JUnit 3 test classes that can be converted to JUnit 4 test classes.

Example:

After the quick-fix is applied:

This inspection only reports if the language level of the project or module is 5 or higher, and JUnit 4 is available on the classpath.