langtools/test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java
changeset 23971 f5ff1f5a8dee
parent 23139 612191246a7d
child 24065 fc4022e50129
equal deleted inserted replaced
23970:76f4acb11952 23971:f5ff1f5a8dee
     1 /*
     1 /*
     2  * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    42         "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
    42         "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
    43     };
    43     };
    44 
    44 
    45     //Input for string search tests.
    45     //Input for string search tests.
    46     private static final String[][] TEST = {
    46     private static final String[][] TEST = {
    47         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html",
    47         {BUG_ID + "/pkg/AnnotationTypeField.html",
    48             "<li>Summary:&nbsp;</li>" + NL + "<li><a href=\"#annotation.type." +
    48             "<li>Summary:&nbsp;</li>\n" +
       
    49             "<li><a href=\"#annotation.type." +
    49             "field.summary\">Field</a>&nbsp;|&nbsp;</li>"},
    50             "field.summary\">Field</a>&nbsp;|&nbsp;</li>"},
    50         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html",
    51         {BUG_ID + "/pkg/AnnotationTypeField.html",
    51             "<li>Detail:&nbsp;</li>" + NL + "<li><a href=\"#annotation.type." +
    52             "<li>Detail:&nbsp;</li>\n" +
       
    53             "<li><a href=\"#annotation.type." +
    52             "field.detail\">Field</a>&nbsp;|&nbsp;</li>"},
    54             "field.detail\">Field</a>&nbsp;|&nbsp;</li>"},
    53         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html",
    55         {BUG_ID + "/pkg/AnnotationTypeField.html",
    54             "<!-- =========== ANNOTATION TYPE FIELD SUMMARY =========== -->"},
    56             "<!-- =========== ANNOTATION TYPE FIELD SUMMARY =========== -->"},
    55         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html",
    57         {BUG_ID + "/pkg/AnnotationTypeField.html",
    56             "<h3>Field Summary</h3>"},
    58             "<h3>Field Summary</h3>"},
    57         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html",
    59         {BUG_ID + "/pkg/AnnotationTypeField.html",
    58             "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../" +
    60             "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../" +
    59             "pkg/AnnotationTypeField.html#DEFAULT_NAME\">DEFAULT_NAME</a></span>" +
    61             "pkg/AnnotationTypeField.html#DEFAULT_NAME\">DEFAULT_NAME</a></span>" +
    60             "</code>&nbsp;</td>"},
    62             "</code>&nbsp;</td>"},
    61         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html",
    63         {BUG_ID + "/pkg/AnnotationTypeField.html",
    62             "<!-- ============ ANNOTATION TYPE FIELD DETAIL =========== -->"},
    64             "<!-- ============ ANNOTATION TYPE FIELD DETAIL =========== -->"},
    63         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html",
    65         {BUG_ID + "/pkg/AnnotationTypeField.html",
    64             "<h4>DEFAULT_NAME</h4>" + NL + "<pre>public static final&nbsp;java." +
    66             "<h4>DEFAULT_NAME</h4>\n" +
       
    67             "<pre>public static final&nbsp;java." +
    65             "lang.String&nbsp;DEFAULT_NAME</pre>"},
    68             "lang.String&nbsp;DEFAULT_NAME</pre>"},
    66         {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
    69         {BUG_ID + "/pkg/AnnotationType.html",
    67             "<li>Summary:&nbsp;</li>" + NL + "<li>Field&nbsp;|&nbsp;</li>"},
    70             "<li>Summary:&nbsp;</li>\n" +
    68         {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
    71             "<li>Field&nbsp;|&nbsp;</li>"},
    69             "<li>Detail:&nbsp;</li>" + NL + "<li>Field&nbsp;|&nbsp;</li>"},
    72         {BUG_ID + "/pkg/AnnotationType.html",
       
    73             "<li>Detail:&nbsp;</li>\n" +
       
    74             "<li>Field&nbsp;|&nbsp;</li>"},
    70     };
    75     };
    71     private static final String[][] NEGATED_TEST = {
    76     private static final String[][] NEGATED_TEST = {
    72         {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
    77         {BUG_ID + "/pkg/AnnotationType.html",
    73             "<HR>" + NL + NL + "<P>" + NL + NL + "<P>" +
    78             "<HR>\n\n" +
       
    79             "<P>\n\n" +
       
    80             "<P>" +
    74             "<!-- ========= END OF CLASS DATA ========= -->" + "<HR>"}
    81             "<!-- ========= END OF CLASS DATA ========= -->" + "<HR>"}
    75     };
    82     };
    76 
    83 
    77     /**
    84     /**
    78      * The entry point of the test.
    85      * The entry point of the test.