Reports JUnit 3 setUp() or tearDown() methods that either are not declared public, do not return void, or take arguments. Such setUp() or tearDown() methods are most likely created unintentionally, and will not be executed by JUnit test runners.

For example:


  public class WeightyTest extends TestCase {
    private File file;
    private int setUp(String prefix) throws IOException {
      file = File.createTempFile(prefix, ".tmp");
      return 0;
    }

    // ... tests go here
  }