Commits

Jan Lahoda  committed 1814f87

Moving disabled tests to the bottom.

  • Participants
  • Parent commits 2134567

Comments (0)

Files changed (1)

File analysis/test/j1/tutorial/javac/analysis/rules/CollectionRemoveNGTest.java

                 .assertWarnings("/test/Test.java:115-133:Suspicious parameter type: java.lang.Integer, should be assignable to: java.lang.String");
     }
 
-//    @Test
-//    public void testExtends1() throws Exception {
-//        RuleTest.create()
-//                .input("package test;" +
-//                       "public class Test extends java.util.LinkedList<String> {" +
-//                       "    private void test () {" +
-//                       "        remove(new Object());" +
-//                       "    }" +
-//                       "}")
-//                .run(CollectionRemove.class)
-//                .assertWarnings("/test/Test.java:115-127:Suspicious parameter type: java.lang.Object, should be assignable to: java.lang.String");
-//    }
-//
-//    @Test
-//    public void testExtends2() throws Exception {
-//        RuleTest.create()
-//                .input("package test;" +
-//                       "public class Test extends java.util.LinkedList<String> {" +
-//                       "    private void test () {" +
-//                       "        new Runnable() {" +
-//                       "            public void run() {" +
-//                       "                remove(new Object());" +
-//                       "            }" +
-//                       "        };" +
-//                       "    }" +
-//                       "}")
-//                .run(CollectionRemove.class)
-//                .assertWarnings("0:166-0:186:verifier:SC: java.util.Collection.remove, Object, String");
-//    }
-
     @Test
     public void testPass() throws Exception {
         RuleTest.create()
     }
 
 //    @Test
+//    public void testExtends1() throws Exception {
+//        RuleTest.create()
+//                .input("package test;" +
+//                       "public class Test extends java.util.LinkedList<String> {" +
+//                       "    private void test () {" +
+//                       "        remove(new Object());" +
+//                       "    }" +
+//                       "}")
+//                .run(CollectionRemove.class)
+//                .assertWarnings("/test/Test.java:115-127:Suspicious parameter type: java.lang.Object, should be assignable to: java.lang.String");
+//    }
+//
+//    @Test
+//    public void testExtends2() throws Exception {
+//        RuleTest.create()
+//                .input("package test;" +
+//                       "public class Test extends java.util.LinkedList<String> {" +
+//                       "    private void test () {" +
+//                       "        new Runnable() {" +
+//                       "            public void run() {" +
+//                       "                remove(new Object());" +
+//                       "            }" +
+//                       "        };" +
+//                       "    }" +
+//                       "}")
+//                .run(CollectionRemove.class)
+//                .assertWarnings("0:166-0:186:verifier:SC: java.util.Collection.remove, Object, String");
+//    }
+//
+//    @Test
 //    public void testInsideItsOverride196606() throws Exception {
 //        RuleTest.create()
 //                .input("package test;" +