Reports any JUnit test methods that are declared static, not declared public, do not return void, or have parameters.

Such test methods are easy to create inadvertently, but they will not be executed by JUnit test runners.

Example:


  @Test
  void test() {
    assertEquals(1, 1);
  }

After the quick-fix is applied:


  @Test
  public void test() {
    assertEquals(1, 1);
  }

Use the inspection options to specify annotations. Any parameter annotated with one of these annotations will not be reported.