test/langtools/tools/javac/launcher/SourceLauncherTest.java
changeset 51841 f191aca8f96d
parent 50705 08c77757320c
child 51871 8f66a57054b7
equal deleted inserted replaced
51840:dc15e45122b2 51841:f191aca8f96d
   227     @Test
   227     @Test
   228     public void testNoClass(Path base) throws IOException {
   228     public void testNoClass(Path base) throws IOException {
   229         Files.createDirectories(base);
   229         Files.createDirectories(base);
   230         Path file = base.resolve("NoClass.java");
   230         Path file = base.resolve("NoClass.java");
   231         Files.write(file, List.of("package p;"));
   231         Files.write(file, List.of("package p;"));
   232         testError(file, "", "error: no class declared in file");
   232         testError(file, "", "error: no class declared in source file");
   233     }
   233     }
   234 
   234 
   235     @Test
   235     @Test
   236     public void testWrongClass(Path base) throws IOException {
   236     public void testWrongClass(Path base) throws IOException {
   237         Path src = base.resolve("src");
   237         Path src = base.resolve("src");