< prev index next >

test/langtools/jdk/javadoc/doclet/testModules/TestEmptyModule.java

Print this page




  47         TestEmptyModule tester = new TestEmptyModule();
  48         tester.runTests(m -> new Object[] { Paths.get(m.getName()) });
  49     }
  50 
  51     public TestEmptyModule() {
  52         tb = new ToolBox();
  53     }
  54 
  55     @Test
  56     public void checkEmptyModule(Path base) throws Exception {
  57         ModuleBuilder mb = new ModuleBuilder(tb, "empty")
  58                 .comment("module empty.");
  59                 mb.write(base);
  60 
  61         javadoc("-d", base.resolve("out").toString(),
  62                 "-quiet",
  63                 "--module-source-path", base.toString(),
  64                 "--module", "empty");
  65         checkExit(Exit.OK);
  66 
  67         checkOutput("empty-summary.html", true,
  68                 "module empty.");
  69     }
  70 
  71 }


  47         TestEmptyModule tester = new TestEmptyModule();
  48         tester.runTests(m -> new Object[] { Paths.get(m.getName()) });
  49     }
  50 
  51     public TestEmptyModule() {
  52         tb = new ToolBox();
  53     }
  54 
  55     @Test
  56     public void checkEmptyModule(Path base) throws Exception {
  57         ModuleBuilder mb = new ModuleBuilder(tb, "empty")
  58                 .comment("module empty.");
  59                 mb.write(base);
  60 
  61         javadoc("-d", base.resolve("out").toString(),
  62                 "-quiet",
  63                 "--module-source-path", base.toString(),
  64                 "--module", "empty");
  65         checkExit(Exit.OK);
  66 
  67         checkOutput("empty/module-summary.html", true,
  68                 "module empty.");
  69     }
  70 
  71 }
< prev index next >