summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/junit/test_method_is_public_void_no_arg/JUnit3TestMethodIsPublicVoidNoArg.java
blob: 68a5df1305f64a2e2484c99b87dfbb6f86364f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class JUnit3TestMethodIsPublicVoidNoArg extends junit.framework.TestCase {

  public JUnit3TestMethodIsPublicVoidNoArg() {}

  void <warning descr="Test method 'testOne()' is not declared 'public void'">testOne</warning>() {}

  public int <warning descr="Test method 'testTwo()' is not declared 'public void'">testTwo</warning>() {
    return 2;
  }

  public static void <warning descr="Test method 'testThree()' should not be 'static'">testThree</warning>() {}

  public void <warning descr="Test method 'testFour()' should probably not have parameters">testFour</warning>(int i) {}

  public void testFive() {}
}