equal
deleted
inserted
replaced
97 .files(findJavaFiles(src)) |
97 .files(findJavaFiles(src)) |
98 .run(Task.Expect.FAIL) |
98 .run(Task.Expect.FAIL) |
99 .writeAll() |
99 .writeAll() |
100 .getOutput(Task.OutputKind.DIRECT); |
100 .getOutput(Task.OutputKind.DIRECT); |
101 |
101 |
102 if (!log.contains("C2.java:1:33: compiler.err.not.def.access.package.cant.access: p1.C1, p1")) |
102 if (!log.contains("C2.java:1:31: compiler.err.package.not.visible: p1, (compiler.misc.not.def.access.does.not.read: m2x, p1, m1x)")) |
103 throw new Exception("expected output not found"); |
103 throw new Exception("expected output not found"); |
104 } |
104 } |
105 |
105 |
106 @Test |
106 @Test |
107 public void testUnexportedTypeReadableModule(Path base) throws Exception { |
107 public void testUnexportedTypeReadableModule(Path base) throws Exception { |
121 .files(findJavaFiles(src)) |
121 .files(findJavaFiles(src)) |
122 .run(Task.Expect.FAIL) |
122 .run(Task.Expect.FAIL) |
123 .writeAll() |
123 .writeAll() |
124 .getOutput(Task.OutputKind.DIRECT); |
124 .getOutput(Task.OutputKind.DIRECT); |
125 |
125 |
126 if (!log.contains("C2.java:1:33: compiler.err.not.def.access.package.cant.access: p1.C1, p1")) |
126 if (!log.contains("C2.java:1:31: compiler.err.package.not.visible: p1, (compiler.misc.not.def.access.not.exported: p1, m1x)")) |
127 throw new Exception("expected output not found"); |
127 throw new Exception("expected output not found"); |
128 } |
128 } |
129 |
129 |
130 @Test |
130 @Test |
131 public void testQualifiedExportedTypeReadableModule(Path base) throws Exception { |
131 public void testQualifiedExportedTypeReadableModule(Path base) throws Exception { |
147 .files(findJavaFiles(src)) |
147 .files(findJavaFiles(src)) |
148 .run(Task.Expect.FAIL) |
148 .run(Task.Expect.FAIL) |
149 .writeAll() |
149 .writeAll() |
150 .getOutput(Task.OutputKind.DIRECT); |
150 .getOutput(Task.OutputKind.DIRECT); |
151 |
151 |
152 if (!log.contains("C2.java:1:33: compiler.err.not.def.access.package.cant.access: p1.C1, p1")) |
152 if (!log.contains("C2.java:1:31: compiler.err.package.not.visible: p1, (compiler.misc.not.def.access.not.exported.to.module: p1, m1x, m2x)")) |
153 throw new Exception("expected output not found"); |
153 throw new Exception("expected output not found"); |
154 } |
154 } |
155 |
155 |
156 @Test |
156 @Test |
157 public void testExportedTypeUnreadableModule(Path base) throws Exception { |
157 public void testExportedTypeUnreadableModule(Path base) throws Exception { |
171 .files(findJavaFiles(src)) |
171 .files(findJavaFiles(src)) |
172 .run(Task.Expect.FAIL) |
172 .run(Task.Expect.FAIL) |
173 .writeAll() |
173 .writeAll() |
174 .getOutput(Task.OutputKind.DIRECT); |
174 .getOutput(Task.OutputKind.DIRECT); |
175 |
175 |
176 if (!log.contains("C2.java:1:33: compiler.err.not.def.access.package.cant.access: p1.C1, p1")) |
176 if (!log.contains("C2.java:1:31: compiler.err.package.not.visible: p1, (compiler.misc.not.def.access.does.not.read: m2x, p1, m1x)")) |
177 throw new Exception("expected output not found"); |
177 throw new Exception("expected output not found"); |
178 } |
178 } |
179 |
179 |
180 @Test |
180 @Test |
181 public void testExportedTypeReadableModule(Path base) throws Exception { |
181 public void testExportedTypeReadableModule(Path base) throws Exception { |