langtools/test/jdk/javadoc/doclet/testModules/TestModules.java
changeset 40308 274367a99f98
parent 40229 09f4478d07e5
child 40503 cb34fd6e8071
equal deleted inserted replaced
40306:1a0fcaf3f2ed 40308:274367a99f98
    40     }
    40     }
    41 
    41 
    42     @Test
    42     @Test
    43     void test1() {
    43     void test1() {
    44         javadoc("-d", "out", "-use",
    44         javadoc("-d", "out", "-use",
    45                 "-modulesourcepath", testSrc,
    45                 "--module-source-path", testSrc,
    46                 "-addmods", "module1,module2",
    46                 "--add-modules", "module1,module2",
    47                 "testpkgmdl1", "testpkgmdl2");
    47                 "testpkgmdl1", "testpkgmdl2");
    48         checkExit(Exit.OK);
    48         checkExit(Exit.OK);
    49         testDescription(true);
    49         testDescription(true);
    50         testNoDescription(false);
    50         testNoDescription(false);
    51         testOverviewSummaryModules();
    51         testOverviewSummaryModules();
    55     }
    55     }
    56 
    56 
    57     @Test
    57     @Test
    58     void test2() {
    58     void test2() {
    59         javadoc("-d", "out-html5", "-html5", "-use",
    59         javadoc("-d", "out-html5", "-html5", "-use",
    60                 "-modulesourcepath", testSrc,
    60                 "--module-source-path", testSrc,
    61                 "-addmods", "module1,module2",
    61                 "--add-modules", "module1,module2",
    62                 "testpkgmdl1", "testpkgmdl2");
    62                 "testpkgmdl1", "testpkgmdl2");
    63         checkExit(Exit.OK);
    63         checkExit(Exit.OK);
    64         testHtml5Description(true);
    64         testHtml5Description(true);
    65         testHtml5NoDescription(false);
    65         testHtml5NoDescription(false);
    66         testHtml5OverviewSummaryModules();
    66         testHtml5OverviewSummaryModules();
    70     }
    70     }
    71 
    71 
    72     @Test
    72     @Test
    73     void test3() {
    73     void test3() {
    74         javadoc("-d", "out-nocomment", "-nocomment", "-use",
    74         javadoc("-d", "out-nocomment", "-nocomment", "-use",
    75                 "-modulesourcepath", testSrc,
    75                 "--module-source-path", testSrc,
    76                 "-addmods", "module1,module2",
    76                 "--add-modules", "module1,module2",
    77                 "testpkgmdl1", "testpkgmdl2");
    77                 "testpkgmdl1", "testpkgmdl2");
    78         checkExit(Exit.OK);
    78         checkExit(Exit.OK);
    79         testDescription(false);
    79         testDescription(false);
    80         testNoDescription(true);
    80         testNoDescription(true);
    81         testModuleLink();
    81         testModuleLink();
    82     }
    82     }
    83 
    83 
    84     @Test
    84     @Test
    85     void test4() {
    85     void test4() {
    86         javadoc("-d", "out-html5-nocomment", "-nocomment", "-html5", "-use",
    86         javadoc("-d", "out-html5-nocomment", "-nocomment", "-html5", "-use",
    87                 "-modulesourcepath", testSrc,
    87                 "--module-source-path", testSrc,
    88                 "-addmods", "module1,module2",
    88                 "--add-modules", "module1,module2",
    89                 "testpkgmdl1", "testpkgmdl2");
    89                 "testpkgmdl1", "testpkgmdl2");
    90         checkExit(Exit.OK);
    90         checkExit(Exit.OK);
    91         testHtml5Description(false);
    91         testHtml5Description(false);
    92         testHtml5NoDescription(true);
    92         testHtml5NoDescription(true);
    93         testModuleLink();
    93         testModuleLink();
   106    @Test
   106    @Test
   107     void test6() {
   107     void test6() {
   108         javadoc("-d", "out-mdltags", "-author", "-version",
   108         javadoc("-d", "out-mdltags", "-author", "-version",
   109                 "-tag", "regular:a:Regular Tag:",
   109                 "-tag", "regular:a:Regular Tag:",
   110                 "-tag", "moduletag:s:Module Tag:",
   110                 "-tag", "moduletag:s:Module Tag:",
   111                 "-modulesourcepath", testSrc,
   111                 "--module-source-path", testSrc,
   112                 "-addmods", "moduletags,module2",
   112                 "--add-modules", "moduletags,module2",
   113                 "testpkgmdltags", "testpkgmdl2");
   113                 "testpkgmdltags", "testpkgmdl2");
   114         checkExit(Exit.OK);
   114         checkExit(Exit.OK);
   115         testModuleTags();
   115         testModuleTags();
   116     }
   116     }
   117 
   117