langtools/test/tools/javac/modules/NPECompilingModuleInfoTest.java
changeset 37758 3ecf9b414e05
parent 36778 e04318f39f92
equal deleted inserted replaced
37757:f38cc75b6fa0 37758:3ecf9b414e05
    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 {}");