Commits

Anonymous committed b19d69e

Reorganizing tests.

Comments (0)

Files changed (1)

analysis/test/j1/tutorial/javac/analysis/rules/RegExpRuleNGTest.java

     }
     
     @Test
-    public void testFieldRegExpBinOp() throws Exception {
-        RuleTest.create()
-                .input("test/Test.java",
-                       "package test;\n" +
-                       "import j1.tutorial.javac.analysis.api.RegExp;\n" +
-                       "public class Test {\n" +
-                       "     @RegExp private final String MASK = \"(\" + \"a\";\n" +
-                       "}\n")
-                .run(RegExpRule.class)
-                .assertWarnings("/test/Test.java:125-130:Unclosed group");
-    }
-    
-    @Test
     public void testFieldRegExpReference() throws Exception {
         RuleTest.create()
                 .input("test/Test.java",
     }
     
     @Test
+    public void testFieldRegExpBinOp() throws Exception {
+        RuleTest.create()
+                .input("test/Test.java",
+                       "package test;\n" +
+                       "import j1.tutorial.javac.analysis.api.RegExp;\n" +
+                       "public class Test {\n" +
+                       "     public static final String DEF_MASK = \"(\";\n" +
+                       "     @RegExp private final String MASK = DEF_MASK + \"a\";\n" +
+                       "}\n")
+                .run(RegExpRule.class)
+                .assertWarnings("/test/Test.java:169-183:Unclosed group");
+    }
+    
+    @Test
     public void testBrokenRegexp() throws Exception {
         RuleTest.create()
                 .input("test/Test.java",