fix testdata

This commit is contained in:
Anna.Kozlova
2017-10-09 09:46:56 +02:00
parent 191434f6c7
commit e6a4c732fe
5 changed files with 16 additions and 16 deletions
@@ -2,7 +2,7 @@ package com.siyeh.igtest.naming.instance_method_naming_convention;
public class InstanceMethodNamingConvention implements Runnable
{
public void <warning descr="Instance method name 'UpperaseMethod' doesn't match regex '[a-z][A-Za-z\d]*'">UpperaseMethod</warning>()
public void <warning descr="Instance name 'UpperaseMethod' doesn't match regex '[a-z][A-Za-z\d]*'">UpperaseMethod</warning>()
{
}
@@ -12,12 +12,12 @@ public class InstanceMethodNamingConvention implements Runnable
}
public void <warning descr="Instance method name 'foo' is too short (3 < 4)">foo</warning>()
public void <warning descr="Instance name 'foo' is too short (3 < 4)">foo</warning>()
{
}
public void <warning descr="Instance method name 'methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong' is too long (62 > 32)">methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong</warning>()
public void <warning descr="Instance name 'methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong' is too long (62 > 32)">methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong</warning>()
{
}
@@ -1,10 +1,10 @@
public class JUnit3MethodNamingConvention extends junit.framework.TestCase {
public void <warning descr="JUnit 3 test method name 'testA' is too short (5 < 8)">testA</warning>() {}
public void <warning descr="JUnit 3 test name 'testA' is too short (5 < 8)">testA</warning>() {}
public void <warning descr="JUnit 3 test method name 'testAbcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz' is too long (82 > 64)">testAbcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz</warning>() {}
public void <warning descr="JUnit 3 test name 'testAbcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz' is too long (82 > 64)">testAbcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz</warning>() {}
public void <warning descr="JUnit 3 test method name 'testGiveMeMore$$$' doesn't match regex 'test[A-Za-z_\d]*'">testGiveMeMore$$$</warning>() {}
public void <warning descr="JUnit 3 test name 'testGiveMeMore$$$' doesn't match regex 'test[A-Za-z_\d]*'">testGiveMeMore$$$</warning>() {}
public void test_me_properly() {}
}
@@ -3,13 +3,13 @@ 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>() {}
public void <warning descr="JUnit 4+ test 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>() {}
public void <warning descr="JUnit 4+ test 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>() {}
public void <warning descr="JUnit 4+ test name 'more$$$' doesn't match regex '[a-z][A-Za-z_\d]*'">more$$$</warning>() {}
@Test
public void assure_foo_is_never_null() {}
@@ -17,17 +17,17 @@ package com.siyeh.igtest.naming.native_method_naming_convention;
public class NativeMethodNamingConvention implements Runnable
{
public native void <warning descr="'native' method name 'UpperaseMethod' doesn't match regex '[a-z][A-Za-z\d]*'">UpperaseMethod</warning>();
public native void <warning descr="'native' name 'UpperaseMethod' doesn't match regex '[a-z][A-Za-z\d]*'">UpperaseMethod</warning>();
public native void methodNameEndingIn2();
public native void <warning descr="'native' method name 'foo' is too short (3 < 4)">foo</warning>();
public native void <warning descr="'native' name 'foo' is too short (3 < 4)">foo</warning>();
public native void <warning descr="'native' method name 'methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong' is too long (62 > 32)">methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong</warning>();
public native void <warning descr="'native' name 'methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong' is too long (62 > 32)">methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong</warning>();
public native void run();
private void a() {}
public static native void <warning descr="'native' method name 'b' is too short (1 < 4)">b</warning>();
public static native void <warning descr="'native' name 'b' is too short (1 < 4)">b</warning>();
}
@@ -2,7 +2,7 @@ package com.siyeh.igtest.naming.static_method_naming_convention;
public class StaticMethodNamingConvention
{
public static void <warning descr="'static' method name 'UpperaseMethod' doesn't match regex '[a-z][A-Za-z\d]*'">UpperaseMethod</warning>()
public static void <warning descr="'static' name 'UpperaseMethod' doesn't match regex '[a-z][A-Za-z\d]*'">UpperaseMethod</warning>()
{
}
@@ -12,12 +12,12 @@ public class StaticMethodNamingConvention
}
public static void <warning descr="'static' method name 'foo' is too short (3 < 4)">foo</warning>()
public static void <warning descr="'static' name 'foo' is too short (3 < 4)">foo</warning>()
{
}
public static void <warning descr="'static' method name 'methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong' is too long (62 > 32)">methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong</warning>()
public static void <warning descr="'static' name 'methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong' is too long (62 > 32)">methodNameTooLoooooooooooooooooooooooooooooooooooooooooooooong</warning>()
{
}