langtools/test/com/sun/javadoc/testInlineLinkLabel/TestInlineLinkLabel.java
changeset 24072 e7549dcbc4af
parent 24071 b0845717434e
child 24399 af1a0220d0fa
equal deleted inserted replaced
24071:b0845717434e 24072:e7549dcbc4af
    32  * @run main TestInlineLinkLabel
    32  * @run main TestInlineLinkLabel
    33  */
    33  */
    34 
    34 
    35 public class TestInlineLinkLabel extends JavadocTester {
    35 public class TestInlineLinkLabel extends JavadocTester {
    36 
    36 
    37     private static final String BUG_ID = "4524136";
       
    38     private static final String[][] TEST = {
    37     private static final String[][] TEST = {
    39         //Search for the label to the package link.
    38         //Search for the label to the package link.
    40         {BUG_ID + "/pkg/C1.html" ,
    39         { "pkg/C1.html" ,
    41             "<a href=\"../pkg/package-summary.html\"><code>Here is a link to a package</code></a>"},
    40             "<a href=\"../pkg/package-summary.html\"><code>Here is a link to a package</code></a>"},
    42 
    41 
    43         //Search for the label to the class link
    42         //Search for the label to the class link
    44         {BUG_ID + "/pkg/C1.html" ,
    43         { "pkg/C1.html" ,
    45             "<a href=\"../pkg/C2.html\" title=\"class in pkg\"><code>Here is a link to a class</code></a>"}
    44             "<a href=\"../pkg/C2.html\" title=\"class in pkg\"><code>Here is a link to a class</code></a>"}
    46     };
    45     };
    47     private static final String[] ARGS =
    46     private static final String[] ARGS =
    48         new String[] {
    47         new String[] {
    49             "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"};
    48             "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"};
    50 
    49 
    51     /**
    50     /**
    52      * The entry point of the test.
    51      * The entry point of the test.
    53      * @param args the array of command line arguments.
    52      * @param args the array of command line arguments.
    54      */
    53      */
    55     public static void main(String[] args) {
    54     public static void main(String[] args) {
    56         TestInlineLinkLabel tester = new TestInlineLinkLabel();
    55         TestInlineLinkLabel tester = new TestInlineLinkLabel();
    57         tester.run(ARGS, TEST, NO_TEST);
    56         tester.run(ARGS, TEST, NO_TEST);
    58         tester.printSummary();
    57         tester.printSummary();
    59     }
    58     }
    60 
       
    61     /**
       
    62      * {@inheritDoc}
       
    63      */
       
    64     public String getBugId() {
       
    65         return BUG_ID;
       
    66     }
       
    67 
       
    68     /**
       
    69      * {@inheritDoc}
       
    70      */
       
    71     public String getBugName() {
       
    72         return getClass().getName();
       
    73     }
       
    74 }
    59 }