langtools/test/jdk/javadoc/tool/modules/ModuleTestBase.java
changeset 41161 c73ab5e71cc2
parent 40508 74ef30d16fb9
child 42277 2668b0bc7ad7
equal deleted inserted replaced
41160:61082a97bbf0 41161:c73ab5e71cc2
   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();