blob: 69379a9abb87311083df21f7b41df62100d80e15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import org.junit.Test;
public class JUnit4MethodNamingConvention {
@Test
public void <warning descr="JUnit 4 test method name 'a' is too short (1 < 4)">a</warning>() {}
@Test
public void <warning descr="JUnit 4 test method name 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz' is too long (78 > 64)">abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz</warning>() {}
@Test
public void <warning descr="JUnit 4 test method name 'more$$$' doesn't match regex '[a-z][A-Za-z_\d]*'">more$$$</warning>() {}
@Test
public void assure_foo_is_never_null() {}
}
|