< prev index next >

test/langtools/tools/javac/launcher/SourceLauncherTest.java

Print this page

        

*** 227,237 **** @Test public void testNoClass(Path base) throws IOException { Files.createDirectories(base); Path file = base.resolve("NoClass.java"); Files.write(file, List.of("package p;")); ! testError(file, "", "error: no class declared in file"); } @Test public void testWrongClass(Path base) throws IOException { Path src = base.resolve("src"); --- 227,237 ---- @Test public void testNoClass(Path base) throws IOException { Files.createDirectories(base); Path file = base.resolve("NoClass.java"); Files.write(file, List.of("package p;")); ! testError(file, "", "error: no class declared in source file"); } @Test public void testWrongClass(Path base) throws IOException { Path src = base.resolve("src");
< prev index next >