changeset 3512:8a2b2c2caa15

unignore test case in ProvidesTest.java
author jjg
date Tue, 22 Dec 2015 13:03:15 -0800
parents d9ce7a3e1672
children 44535f5efc07
files test/tools/javac/modules/ProvidesTest.java
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/modules/ProvidesTest.java	Tue Dec 22 12:54:49 2015 -0800
+++ b/test/tools/javac/modules/ProvidesTest.java	Tue Dec 22 13:03:15 2015 -0800
@@ -103,8 +103,7 @@
 
     }
 
-    //@ignore JDK-8145012
-    //@Test
+    @Test
     void testDuplicateProvides(Path base) throws Exception {
         Path src = base.resolve("src");
         tb.writeJavaFiles(src,
@@ -237,8 +236,7 @@
                 .writeAll();
     }
 
-    //@ignore JDK-8145016
-    //@Test
+    @Test
     void testAbstractImplementation(Path base) throws Exception {
         Path src = base.resolve("src");
         tb.writeJavaFiles(src,
@@ -254,14 +252,14 @@
                 .writeAll()
                 .getOutputLines(ToolBox.OutputKind.DIRECT);
 
-        List<String> expected = Arrays.asList("#");
+        List<String> expected = Arrays.asList(
+                "module-info.java:1:34: compiler.err.bad.service.implementation: p2.C2");
         if (!output.containsAll(expected)) {
             throw new Exception("Expected output not found");
         }
     }
 
-    //@ignore JDK-8145016
-    //@Test
+    @Test
     void testInterfaceImplementation(Path base) throws Exception {
         Path src = base.resolve("src");
         tb.writeJavaFiles(src,
@@ -277,7 +275,8 @@
                 .writeAll()
                 .getOutputLines(ToolBox.OutputKind.DIRECT);
 
-        List<String> expected = Arrays.asList("#");
+        List<String> expected = Arrays.asList(
+                "module-info.java:1:39: compiler.err.bad.service.implementation: p2.Impl");
         if (!output.containsAll(expected)) {
             throw new Exception("Expected output not found");
         }
@@ -387,3 +386,4 @@
         }
     }
 }
+