langtools/test/com/sun/javadoc/testDeprecatedDocs/TestDeprecatedDocs.java
changeset 21478 fa4c7cda1b41
parent 9083 63f3c4d2d992
child 23139 612191246a7d
equal deleted inserted replaced
21477:02dc78554e0c 21478:fa4c7cda1b41
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, 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.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      4927552
    26  * @bug      4927552 8026567
    27  * @summary  <DESC>
    27  * @summary  <DESC>
    28  * @author   jamieh
    28  * @author   jamieh
    29  * @library  ../lib/
    29  * @library  ../lib/
    30  * @build    JavadocTester TestDeprecatedDocs
    30  * @build    JavadocTester TestDeprecatedDocs
    31  * @run main TestDeprecatedDocs
    31  * @run main TestDeprecatedDocs
    74         {TARGET_FILE, "pkg.DeprecatedClassByAnnotation()"},
    74         {TARGET_FILE, "pkg.DeprecatedClassByAnnotation()"},
    75         {TARGET_FILE, "pkg.DeprecatedClassByAnnotation.method()"},
    75         {TARGET_FILE, "pkg.DeprecatedClassByAnnotation.method()"},
    76         {TARGET_FILE, "pkg.DeprecatedClassByAnnotation.field"},
    76         {TARGET_FILE, "pkg.DeprecatedClassByAnnotation.field"},
    77 
    77 
    78         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    78         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    79                  "public class <span class=\"strong\">DeprecatedClassByAnnotation</span>" + NL +
    79                  "public class <span class=\"typeNameLabel\">DeprecatedClassByAnnotation</span>" + NL +
    80                  "extends java.lang.Object</pre>"},
    80                  "extends java.lang.Object</pre>"},
    81 
    81 
    82         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    82         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    83                  "public&nbsp;int field</pre>" + NL +
    83                  "public&nbsp;int field</pre>" + NL +
    84                  "<div class=\"block\"><span class=\"strong\">Deprecated.</span>&nbsp;</div>"},
    84                  "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>&nbsp;</div>"},
    85 
    85 
    86         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    86         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    87                  "public&nbsp;DeprecatedClassByAnnotation()</pre>" + NL +
    87                  "public&nbsp;DeprecatedClassByAnnotation()</pre>" + NL +
    88                  "<div class=\"block\"><span class=\"strong\">Deprecated.</span>&nbsp;</div>"},
    88                  "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>&nbsp;</div>"},
    89 
    89 
    90         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    90         {TARGET_FILE2, "<pre>@Deprecated" + NL +
    91                  "public&nbsp;void&nbsp;method()</pre>" + NL +
    91                  "public&nbsp;void&nbsp;method()</pre>" + NL +
    92                  "<div class=\"block\"><span class=\"strong\">Deprecated.</span>&nbsp;</div>"},
    92                  "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>&nbsp;</div>"},
    93     };
    93     };
    94 
    94 
    95     private static final String[][] NEGATED_TEST = NO_TEST;
    95     private static final String[][] NEGATED_TEST = NO_TEST;
    96 
    96 
    97     /**
    97     /**