mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix testdata
This commit is contained in:
+3
-3
@@ -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>()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
+3
-3
@@ -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
-3
@@ -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() {}
|
||||
|
||||
+4
-4
@@ -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>();
|
||||
}
|
||||
|
||||
+3
-3
@@ -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>()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user