langtools/test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java
changeset 24072 e7549dcbc4af
parent 24071 b0845717434e
child 24399 af1a0220d0fa
equal deleted inserted replaced
24071:b0845717434e 24072:e7549dcbc4af
    32  * @run main TestClassCrossReferences
    32  * @run main TestClassCrossReferences
    33  */
    33  */
    34 
    34 
    35 public class TestClassCrossReferences extends JavadocTester {
    35 public class TestClassCrossReferences extends JavadocTester {
    36 
    36 
    37     private static final String BUG_ID = "4652655-4857717";
       
    38     private static final String[][] TEST = {
    37     private static final String[][] TEST = {
    39         {BUG_ID + "/C.html",
    38         { "C.html",
    40             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/package-summary.html?is-external=true\"><code>Link to math package</code></a>"},
    39             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/package-summary.html?is-external=true\"><code>Link to math package</code></a>"},
    41         {BUG_ID + "/C.html",
    40         { "C.html",
    42             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/javax/swing/text/AbstractDocument.AttributeContext.html?is-external=true\" " +
    41             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/javax/swing/text/AbstractDocument.AttributeContext.html?is-external=true\" " +
    43             "title=\"class or interface in javax.swing.text\"><code>Link to AttributeContext innerclass</code></a>"},
    42             "title=\"class or interface in javax.swing.text\"><code>Link to AttributeContext innerclass</code></a>"},
    44         {BUG_ID + "/C.html",
    43         { "C.html",
    45             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigDecimal.html?is-external=true\" " +
    44             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigDecimal.html?is-external=true\" " +
    46                 "title=\"class or interface in java.math\"><code>Link to external class BigDecimal</code></a>"},
    45                 "title=\"class or interface in java.math\"><code>Link to external class BigDecimal</code></a>"},
    47         {BUG_ID + "/C.html",
    46         { "C.html",
    48             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigInteger.html?is-external=true#gcd-java.math.BigInteger-\" " +
    47             "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigInteger.html?is-external=true#gcd-java.math.BigInteger-\" " +
    49                 "title=\"class or interface in java.math\"><code>Link to external member gcd</code></a>"},
    48                 "title=\"class or interface in java.math\"><code>Link to external member gcd</code></a>"},
    50         {BUG_ID + "/C.html",
    49         { "C.html",
    51             "<dl>\n" +
    50             "<dl>\n" +
    52             "<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
    51             "<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
    53             "<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>\n" +
    52             "<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>\n" +
    54             "</dl>"}
    53             "</dl>"}
    55     };
    54     };
    56     private static final String[] ARGS =
    55     private static final String[] ARGS =
    57         new String[] {
    56         new String[] {
    58             "-d", BUG_ID, "-sourcepath", SRC_DIR,
    57             "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
    59             "-linkoffline", "http://java.sun.com/j2se/1.4/docs/api/",
    58             "-linkoffline", "http://java.sun.com/j2se/1.4/docs/api/",
    60             SRC_DIR, SRC_DIR + "/C.java"};
    59             SRC_DIR, SRC_DIR + "/C.java"};
    61 
    60 
    62     /**
    61     /**
    63      * The entry point of the test.
    62      * The entry point of the test.
    66     public static void main(String[] args) {
    65     public static void main(String[] args) {
    67         TestClassCrossReferences tester = new TestClassCrossReferences();
    66         TestClassCrossReferences tester = new TestClassCrossReferences();
    68         tester.run(ARGS, TEST, NO_TEST);
    67         tester.run(ARGS, TEST, NO_TEST);
    69         tester.printSummary();
    68         tester.printSummary();
    70     }
    69     }
    71 
       
    72     /**
       
    73      * {@inheritDoc}
       
    74      */
       
    75     public String getBugId() {
       
    76         return BUG_ID;
       
    77     }
       
    78 
       
    79     /**
       
    80      * {@inheritDoc}
       
    81      */
       
    82     public String getBugName() {
       
    83         return getClass().getName();
       
    84     }
       
    85 }
    70 }