equal
deleted
inserted
replaced
43 public static void main(String... args) throws Exception { |
43 public static void main(String... args) throws Exception { |
44 new NPECompilingModuleInfoTest().runTests(); |
44 new NPECompilingModuleInfoTest().runTests(); |
45 } |
45 } |
46 |
46 |
47 @Test |
47 @Test |
48 void testCompileNoError(Path base) throws Exception { |
48 public void testCompileNoError(Path base) throws Exception { |
49 Path mod = base.resolve("mod"); |
49 Path mod = base.resolve("mod"); |
50 tb.writeJavaFiles(mod, "module mod { exports pkg; }"); |
50 tb.writeJavaFiles(mod, "module mod { exports pkg; }"); |
51 Path pkg = mod.resolve("pkg"); |
51 Path pkg = mod.resolve("pkg"); |
52 Path customClass = pkg.resolve("module-info.java"); |
52 Path customClass = pkg.resolve("module-info.java"); |
53 tb.writeFile(customClass, "package pkg; class C {}"); |
53 tb.writeFile(customClass, "package pkg; class C {}"); |