equal
deleted
inserted
replaced
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"); |