summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/junit/test_method_is_public_void_no_arg/JUnit4TestMethodIsPublicVoidNoArg.java
blob: 8641acb3b49ed43f2fedc1c38f004ec9f9f8e0e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import org.junit.Test;

public class JUnit4TestMethodIsPublicVoidNoArg {

  @Test
  JUnit4TestMethodIsPublicVoidNoArg() {}

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

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

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

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

  @Test
  public void testFive() {}
}