Reports JUnit 4 @Before or @After methods that are not declared public, do not return void, or take arguments. Such methods are easy to create inadvertently, but they will not be executed by JUnit tests runners.

The inspection provides fixes for method signatures.

Example:


  @Before private int foo(int arg) { ... }

After the quick-fix is applied:


  @Before public void foo() { ... }