equal
deleted
inserted
replaced
250 void checkDocletOutputAbsent(String category, ElementKind kind, String regex) throws Exception { |
250 void checkDocletOutputAbsent(String category, ElementKind kind, String regex) throws Exception { |
251 assertAbsent("^" + category + FS + kind.toString() + FS + regex); |
251 assertAbsent("^" + category + FS + kind.toString() + FS + regex); |
252 } |
252 } |
253 |
253 |
254 void assertAbsent(String regex) throws Exception { |
254 void assertAbsent(String regex) throws Exception { |
255 List<String> foundList = tb.grep(regex, currentTask.getOutputLines(STDOUT)); |
255 assertAbsent(regex, STDOUT); |
|
256 } |
|
257 |
|
258 void assertAbsent(String regex, Task.OutputKind kind) throws Exception { |
|
259 List<String> foundList = tb.grep(regex, currentTask.getOutputLines(kind)); |
256 if (!foundList.isEmpty()) { |
260 if (!foundList.isEmpty()) { |
257 dumpDocletDiagnostics(); |
261 dumpDocletDiagnostics(); |
258 throw new Exception(regex + " found in: " + STDOUT); |
262 throw new Exception(regex + " found in: " + kind); |
259 } |
263 } |
260 } |
264 } |
261 |
265 |
262 public static class ModulesTesterDoclet implements Doclet { |
266 public static class ModulesTesterDoclet implements Doclet { |
263 StringWriter sw = new StringWriter(); |
267 StringWriter sw = new StringWriter(); |