test/langtools/jdk/javadoc/doclet/testPackageDeprecation/TestPackageDeprecation.java
changeset 53097 2e82ca64b25d
parent 50293 edfb87b2520e
child 53343 07c09e65ca0f
equal deleted inserted replaced
53096:58154bf80f90 53097:2e82ca64b25d
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      6492694 8026567 8048351 8162363 8183511 8169819 8074407 8196202
    26  * @bug      6492694 8026567 8048351 8162363 8183511 8169819 8074407 8196202
    27  * @summary  Test package deprecation.
    27  * @summary  Test package deprecation.
    28  * @author   bpatel
    28  * @author   bpatel
    29  * @library  ../lib/
    29  * @library  ../../lib/
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @build    JavadocTester TestPackageDeprecation
    31  * @build    javadoc.tester.* TestPackageDeprecation
    32  * @run main TestPackageDeprecation
    32  * @run main TestPackageDeprecation
    33  */
    33  */
       
    34 
       
    35 import javadoc.tester.JavadocTester;
    34 
    36 
    35 public class TestPackageDeprecation extends JavadocTester {
    37 public class TestPackageDeprecation extends JavadocTester {
    36 
    38 
    37     public static void main(String... args) throws Exception {
    39     public static void main(String... args) throws Exception {
    38         TestPackageDeprecation tester = new TestPackageDeprecation();
    40         TestPackageDeprecation tester = new TestPackageDeprecation();
    39         tester.setAutomaticCheckLinks(false); // @ignore JDK-8202626
    41         tester.setAutomaticCheckLinks(false); // @ignore JDK-8202626
    40         tester.runTests();
    42         tester.runTests();
    41     }
    43     }
    42 
    44 
    43     @Test
    45     @Test
    44     void testDefault() {
    46     public void testDefault() {
    45         javadoc("-d", "out-default",
    47         javadoc("-d", "out-default",
    46                 "-sourcepath", testSrc,
    48                 "-sourcepath", testSrc,
    47                 "-use",
    49                 "-use",
    48                 "--frames",
    50                 "--frames",
    49                 "pkg", "pkg1", testSrc("C2.java"), testSrc("FooDepr.java"));
    51                 "pkg", "pkg1", testSrc("C2.java"), testSrc("FooDepr.java"));
    58             "<li><a href=\"#package\">Packages</a></li>"
    60             "<li><a href=\"#package\">Packages</a></li>"
    59         );
    61         );
    60     }
    62     }
    61 
    63 
    62     @Test
    64     @Test
    63     void testNoDeprecated() {
    65     public void testNoDeprecated() {
    64         javadoc("-d", "out-nodepr",
    66         javadoc("-d", "out-nodepr",
    65                 "-sourcepath", testSrc,
    67                 "-sourcepath", testSrc,
    66                 "-use",
    68                 "-use",
    67                 "-nodeprecated",
    69                 "-nodeprecated",
    68                 "--frames",
    70                 "--frames",