author | jjg |
Tue, 22 Apr 2014 17:57:40 -0700 | |
changeset 24072 | e7549dcbc4af |
parent 24071 | b0845717434e |
child 24399 | af1a0220d0fa |
permissions | -rw-r--r-- |
10 | 1 |
/* |
23971 | 2 |
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5520 | 19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
10 | 22 |
*/ |
23 |
||
24 |
/* |
|
25 |
* @test |
|
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
9083
diff
changeset
|
26 |
* @bug 4927552 8026567 |
10 | 27 |
* @summary <DESC> |
28 |
* @author jamieh |
|
29 |
* @library ../lib/ |
|
9083
63f3c4d2d992
7010344: Some of the html files do not have element <a> in right context.
bpatel
parents:
7681
diff
changeset
|
30 |
* @build JavadocTester TestDeprecatedDocs |
10 | 31 |
* @run main TestDeprecatedDocs |
32 |
*/ |
|
33 |
||
34 |
public class TestDeprecatedDocs extends JavadocTester { |
|
35 |
||
36 |
//Javadoc arguments. |
|
37 |
private static final String[] ARGS = new String[] { |
|
24072 | 38 |
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg" |
10 | 39 |
}; |
40 |
||
41 |
private static final String TARGET_FILE = |
|
24072 | 42 |
"deprecated-list.html"; |
10 | 43 |
|
44 |
private static final String TARGET_FILE2 = |
|
24072 | 45 |
"pkg/DeprecatedClassByAnnotation.html"; |
10 | 46 |
|
47 |
//Input for string search tests. |
|
48 |
private static final String[][] TEST = { |
|
49 |
{TARGET_FILE, "annotation_test1 passes"}, |
|
50 |
{TARGET_FILE, "annotation_test2 passes"}, |
|
51 |
{TARGET_FILE, "annotation_test3 passes"}, |
|
52 |
{TARGET_FILE, "class_test1 passes"}, |
|
53 |
{TARGET_FILE, "class_test2 passes"}, |
|
54 |
{TARGET_FILE, "class_test3 passes"}, |
|
55 |
{TARGET_FILE, "class_test4 passes"}, |
|
56 |
{TARGET_FILE, "enum_test1 passes"}, |
|
57 |
{TARGET_FILE, "enum_test2 passes"}, |
|
58 |
{TARGET_FILE, "error_test1 passes"}, |
|
59 |
{TARGET_FILE, "error_test2 passes"}, |
|
60 |
{TARGET_FILE, "error_test3 passes"}, |
|
61 |
{TARGET_FILE, "error_test4 passes"}, |
|
62 |
{TARGET_FILE, "exception_test1 passes"}, |
|
63 |
{TARGET_FILE, "exception_test2 passes"}, |
|
64 |
{TARGET_FILE, "exception_test3 passes"}, |
|
65 |
{TARGET_FILE, "exception_test4 passes"}, |
|
66 |
{TARGET_FILE, "interface_test1 passes"}, |
|
67 |
{TARGET_FILE, "interface_test2 passes"}, |
|
68 |
{TARGET_FILE, "interface_test3 passes"}, |
|
69 |
{TARGET_FILE, "interface_test4 passes"}, |
|
70 |
{TARGET_FILE, "pkg.DeprecatedClassByAnnotation"}, |
|
71 |
{TARGET_FILE, "pkg.DeprecatedClassByAnnotation()"}, |
|
72 |
{TARGET_FILE, "pkg.DeprecatedClassByAnnotation.method()"}, |
|
73 |
{TARGET_FILE, "pkg.DeprecatedClassByAnnotation.field"}, |
|
74 |
||
23971 | 75 |
{TARGET_FILE2, "<pre>@Deprecated\n" + |
76 |
"public class <span class=\"typeNameLabel\">DeprecatedClassByAnnotation</span>\n" + |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
77 |
"extends java.lang.Object</pre>"}, |
10 | 78 |
|
23971 | 79 |
{TARGET_FILE2, "<pre>@Deprecated\n" + |
80 |
"public int field</pre>\n" + |
|
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
9083
diff
changeset
|
81 |
"<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> </div>"}, |
10 | 82 |
|
23971 | 83 |
{TARGET_FILE2, "<pre>@Deprecated\n" + |
84 |
"public DeprecatedClassByAnnotation()</pre>\n" + |
|
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
9083
diff
changeset
|
85 |
"<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> </div>"}, |
10 | 86 |
|
23971 | 87 |
{TARGET_FILE2, "<pre>@Deprecated\n" + |
88 |
"public void method()</pre>\n" + |
|
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
9083
diff
changeset
|
89 |
"<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> </div>"}, |
10 | 90 |
}; |
91 |
||
92 |
/** |
|
93 |
* The entry point of the test. |
|
94 |
* @param args the array of command line arguments. |
|
95 |
*/ |
|
96 |
public static void main(String[] args) { |
|
97 |
TestDeprecatedDocs tester = new TestDeprecatedDocs(); |
|
24071 | 98 |
tester.run(ARGS, TEST, NO_TEST); |
10 | 99 |
tester.printSummary(); |
100 |
} |
|
101 |
} |