langtools/test/com/sun/javadoc/testTopOption/TestTopOption.java
changeset 24072 e7549dcbc4af
parent 24071 b0845717434e
child 24399 af1a0220d0fa
equal deleted inserted replaced
24071:b0845717434e 24072:e7549dcbc4af
    32  * @run main TestTopOption
    32  * @run main TestTopOption
    33  */
    33  */
    34 
    34 
    35 public class TestTopOption extends JavadocTester {
    35 public class TestTopOption extends JavadocTester {
    36 
    36 
    37     //Test information.
       
    38     private static final String BUG_ID = "6227616";
       
    39 
       
    40     //Javadoc arguments.
    37     //Javadoc arguments.
    41     private static final String[] ARGS = new String[] {
    38     private static final String[] ARGS = new String[] {
    42         "-overview", "SRC_DIR + '/' + overview.html", "-use", "-top",
    39         "-overview", "SRC_DIR + '/' + overview.html", "-use", "-top",
    43         "TOP TEXT", "-d", BUG_ID, "-sourcepath",
    40         "TOP TEXT", "-d", OUTPUT_DIR, "-sourcepath",
    44         SRC_DIR, "pkg"
    41         SRC_DIR, "pkg"
    45     };
    42     };
    46 
    43 
    47     //Input for string search tests.
    44     //Input for string search tests.
    48     private static final String[][] TEST = {
    45     private static final String[][] TEST = {
    49         {BUG_ID + "/pkg/AnnotationType.html",
    46         { "pkg/AnnotationType.html",
    50             "TOP TEXT"},
    47             "TOP TEXT"},
    51         {BUG_ID + "/pkg/class-use/AnnotationType.html",
    48         { "pkg/class-use/AnnotationType.html",
    52             "TOP TEXT"},
    49             "TOP TEXT"},
    53 
    50 
    54         {BUG_ID + "/pkg/Cl.html",
    51         { "pkg/Cl.html",
    55             "TOP TEXT"},
    52             "TOP TEXT"},
    56         {BUG_ID + "/pkg/class-use/Cl.html",
    53         { "pkg/class-use/Cl.html",
    57             "TOP TEXT"},
    54             "TOP TEXT"},
    58 
    55 
    59         {BUG_ID + "/pkg/package-summary.html",
    56         { "pkg/package-summary.html",
    60             "TOP TEXT"},
    57             "TOP TEXT"},
    61         {BUG_ID + "/pkg/package-use.html",
    58         { "pkg/package-use.html",
    62            "TOP TEXT"},
    59            "TOP TEXT"},
    63 
    60 
    64         {BUG_ID + "/overview-summary.html",
    61         { "overview-summary.html",
    65             "TOP TEXT"},
    62             "TOP TEXT"},
    66         {BUG_ID + "/overview-tree.html",
    63         { "overview-tree.html",
    67             "TOP TEXT"},
    64             "TOP TEXT"},
    68         {BUG_ID + "/constant-values.html",
    65         { "constant-values.html",
    69             "TOP TEXT"},
    66             "TOP TEXT"},
    70         {BUG_ID + "/help-doc.html",
    67         { "help-doc.html",
    71             "TOP TEXT"},
    68             "TOP TEXT"},
    72     };
    69     };
    73 
    70 
    74     /**
    71     /**
    75      * The entry point of the test.
    72      * The entry point of the test.
    78     public static void main(String[] args) {
    75     public static void main(String[] args) {
    79         TestTopOption tester = new TestTopOption();
    76         TestTopOption tester = new TestTopOption();
    80         tester.run(ARGS, TEST, NO_TEST);
    77         tester.run(ARGS, TEST, NO_TEST);
    81         tester.printSummary();
    78         tester.printSummary();
    82     }
    79     }
    83 
       
    84     /**
       
    85      * {@inheritDoc}
       
    86      */
       
    87     public String getBugId() {
       
    88         return BUG_ID;
       
    89     }
       
    90 
       
    91     /**
       
    92      * {@inheritDoc}
       
    93      */
       
    94     public String getBugName() {
       
    95         return getClass().getName();
       
    96     }
       
    97 }
    80 }