Back to Intellij Community

TestCaseWithNoTestMethods

jvm/jvm-analysis-impl/resources/inspectionDescriptions/TestCaseWithNoTestMethods.html

2025.3-rc-2301 B
Original Source

Reports non-abstract test cases without any test methods. Such test cases usually indicate unfinished code or could be a refactoring leftover that should be removed.

Example:

public class CrucialTest {
    @Before
    public void setUp() {
      System.out.println("setting up");
    }
  }