langtools/test/com/sun/javadoc/testLinkOption/TestLinkOption.java
changeset 24071 b0845717434e
parent 24065 fc4022e50129
child 24072 e7549dcbc4af
equal deleted inserted replaced
24070:3852ce6db3f4 24071:b0845717434e
    84             "This is a link to <a href=\"../../" + BUG_ID +
    84             "This is a link to <a href=\"../../" + BUG_ID +
    85             "-1/pkg/C.html?is-external=true\" " +
    85             "-1/pkg/C.html?is-external=true\" " +
    86             "title=\"class or interface in pkg\"><code>Class C</code></a>."
    86             "title=\"class or interface in pkg\"><code>Class C</code></a>."
    87         }
    87         }
    88     };
    88     };
    89     private static final String[][] NEGATED_TEST2 = NO_TEST;
       
    90     /*
    89     /*
    91      * Create the documentation using the -link option, vary the behavior with
    90      * Create the documentation using the -link option, vary the behavior with
    92      * both trailing and no trailing slash. We are only interested in ensuring
    91      * both trailing and no trailing slash. We are only interested in ensuring
    93      * that the command executes with no errors or related warnings.
    92      * that the command executes with no errors or related warnings.
    94      */
    93      */
   120      * @param args the array of command line arguments.
   119      * @param args the array of command line arguments.
   121      */
   120      */
   122     public static void main(String[] args) {
   121     public static void main(String[] args) {
   123         TestLinkOption tester = new TestLinkOption();
   122         TestLinkOption tester = new TestLinkOption();
   124         tester.run(ARGS1, TEST1, NEGATED_TEST1);
   123         tester.run(ARGS1, TEST1, NEGATED_TEST1);
   125         tester.run(ARGS2, TEST2, NEGATED_TEST2);
   124         tester.run(ARGS1, TEST1, NEGATED_TEST1);
       
   125         tester.run(ARGS2, TEST2, NO_TEST);
   126         tester.runJavadoc(createArguments(true));  // with trailing slash
   126         tester.runJavadoc(createArguments(true));  // with trailing slash
   127         tester.runJavadoc(createArguments(false)); // without trailing slash
   127         tester.runJavadoc(createArguments(false)); // without trailing slash
   128         tester.printSummary();
   128         tester.printSummary();
   129         if (tester.getWarningOutput().contains("warning - Error fetching URL")) {
   129         if (tester.getWarningOutput().contains("warning - Error fetching URL")) {
   130             throw new Error("URL rejected ?");
   130             throw new Error("URL rejected ?");