langtools/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java
changeset 24072 e7549dcbc4af
parent 24071 b0845717434e
child 24399 af1a0220d0fa
equal deleted inserted replaced
24071:b0845717434e 24072:e7549dcbc4af
    32  * @run main TestLegacyTaglet
    32  * @run main TestLegacyTaglet
    33  */
    33  */
    34 
    34 
    35 public class TestLegacyTaglet extends JavadocTester {
    35 public class TestLegacyTaglet extends JavadocTester {
    36 
    36 
    37     private static final String BUG_ID = "4638723-8015882";
       
    38 
       
    39     private static final String[] ARGS =
    37     private static final String[] ARGS =
    40         new String[] {"-d", BUG_ID, "-sourcepath", SRC_DIR,
    38         new String[] {"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
    41             "-tagletpath", SRC_DIR, "-taglet", "ToDoTaglet", "-taglet", "Check",
    39             "-tagletpath", SRC_DIR, "-taglet", "ToDoTaglet", "-taglet", "Check",
    42             "-taglet", "UnderlineTaglet", SRC_DIR + "/C.java"};
    40             "-taglet", "UnderlineTaglet", SRC_DIR + "/C.java"};
    43 
    41 
    44     private static final String[][] TEST = new String[][] {
    42     private static final String[][] TEST = new String[][] {
    45             {BUG_ID + "/C.html", "This is an <u>underline</u>"},
    43             { "C.html", "This is an <u>underline</u>"},
    46             {BUG_ID + "/C.html",
    44             { "C.html",
    47             "<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
    45             "<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
    48                 "<td bgcolor=\"yellow\">Finish this class.</td></tr></table></DD>"},
    46                 "<td bgcolor=\"yellow\">Finish this class.</td></tr></table></DD>"},
    49             {BUG_ID + "/C.html",
    47             { "C.html",
    50                 "<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
    48                 "<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
    51                 "<td bgcolor=\"yellow\">Tag in Method.</td></tr></table></DD>"}
    49                 "<td bgcolor=\"yellow\">Tag in Method.</td></tr></table></DD>"}
    52     };
    50     };
    53 
    51 
    54     /**
    52     /**
    61         if (tester.getErrorOutput().contains("NullPointerException")) {
    59         if (tester.getErrorOutput().contains("NullPointerException")) {
    62             throw new AssertionError("javadoc threw NullPointerException");
    60             throw new AssertionError("javadoc threw NullPointerException");
    63         }
    61         }
    64         tester.printSummary();
    62         tester.printSummary();
    65     }
    63     }
    66 
       
    67     /**
       
    68      * {@inheritDoc}
       
    69      */
       
    70     public String getBugId() {
       
    71         return BUG_ID;
       
    72     }
       
    73 
       
    74     /**
       
    75      * {@inheritDoc}
       
    76      */
       
    77     public String getBugName() {
       
    78         return getClass().getName();
       
    79     }
       
    80 }
    64 }