Tue, 15 Oct 2013 15:57:13 -0700
8026564: import changes from type-annotations forest
Reviewed-by: jjg
Contributed-by: wdietl@gmail.com, steve.sides@oracle.com
1 /*
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
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 *
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.
22 */
24 /*
25 * @test
26 * @bug 8006735
27 * @summary Smoke test for ensuring that annotations are emitted to javadoc
28 *
29 * @author Mahmood Ali <mali>
30 * @library ../../lib/
31 * @ignore
32 * @build JavadocTester
33 * @build TestSmoke
34 * @run main TestSmoke
35 */
37 public class TestSmoke extends JavadocTester {
39 //Test information.
40 private static final String BUG_ID = "8006735";
42 //Javadoc arguments.
43 private static final String[] ARGS = new String[] {
44 "-d", BUG_ID, "-private", "-sourcepath", SRC_DIR, "pkg"
45 };
47 //Input for string search tests.
48 private static final String[][] TEST = {
49 {BUG_ID + FS + "pkg" + FS + "T0x1C.html", "@DA"},
50 {BUG_ID + FS + "pkg" + FS + "T0x1D.html", "@DA"},
51 {BUG_ID + FS + "pkg" + FS + "T0x0D.html", "@DA"},
52 {BUG_ID + FS + "pkg" + FS + "T0x06.html", "@DA"},
53 {BUG_ID + FS + "pkg" + FS + "T0x0B.html", "@DA"},
54 {BUG_ID + FS + "pkg" + FS + "T0x0F.html", "@DA"},
55 /* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
56 {BUG_ID + FS + "pkg" + FS + "T0x20.html", "@DA"},
57 */
58 /* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
59 {BUG_ID + FS + "pkg" + FS + "T0x20A.html", "@DTPA"},
60 */
61 /* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
62 {BUG_ID + FS + "pkg" + FS + "T0x20B.html", "@DA"},
63 */
64 /* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
65 {BUG_ID + FS + "pkg" + FS + "T0x22.html", "@DA"},
66 */
67 /* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
68 {BUG_ID + FS + "pkg" + FS + "T0x22A.html", "@DTPA"},
69 */
70 /* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
71 {BUG_ID + FS + "pkg" + FS + "T0x22B.html", "@DA"},
72 */
73 {BUG_ID + FS + "pkg" + FS + "T0x10.html", "@DA"},
74 {BUG_ID + FS + "pkg" + FS + "T0x10A.html", "@DA"},
75 {BUG_ID + FS + "pkg" + FS + "T0x12.html", "@DA"},
76 {BUG_ID + FS + "pkg" + FS + "T0x11.html", "@DA"},
77 {BUG_ID + FS + "pkg" + FS + "T0x13.html", "@DA"},
78 {BUG_ID + FS + "pkg" + FS + "T0x15.html", "@DA"},
79 {BUG_ID + FS + "pkg" + FS + "T0x14.html", "@DA"},
80 {BUG_ID + FS + "pkg" + FS + "T0x16.html", "@DA"}
81 };
83 private static final String[][] NEGATED_TEST = {
84 {BUG_ID + FS + "pkg" + FS + "T0x1C.html", "@A"},
85 {BUG_ID + FS + "pkg" + FS + "T0x1D.html", "@A"},
86 {BUG_ID + FS + "pkg" + FS + "T0x00.html", "@A"},
87 {BUG_ID + FS + "pkg" + FS + "T0x01.html", "@A"},
88 {BUG_ID + FS + "pkg" + FS + "T0x02.html", "@A"},
89 {BUG_ID + FS + "pkg" + FS + "T0x04.html", "@A"},
90 {BUG_ID + FS + "pkg" + FS + "T0x08.html", "@A"},
91 {BUG_ID + FS + "pkg" + FS + "T0x0D.html", "@A"},
92 {BUG_ID + FS + "pkg" + FS + "T0x06.html", "@A"},
93 {BUG_ID + FS + "pkg" + FS + "T0x0B.html", "@A"},
94 {BUG_ID + FS + "pkg" + FS + "T0x0F.html", "@A"},
95 {BUG_ID + FS + "pkg" + FS + "T0x20.html", "@A"},
96 {BUG_ID + FS + "pkg" + FS + "T0x20A.html", "@A"},
97 {BUG_ID + FS + "pkg" + FS + "T0x20B.html", "@A"},
98 {BUG_ID + FS + "pkg" + FS + "T0x22.html", "@A"},
99 {BUG_ID + FS + "pkg" + FS + "T0x22A.html", "@A"},
100 {BUG_ID + FS + "pkg" + FS + "T0x22B.html", "@A"},
101 {BUG_ID + FS + "pkg" + FS + "T0x10.html", "@A"},
102 {BUG_ID + FS + "pkg" + FS + "T0x10A.html", "@A"},
103 {BUG_ID + FS + "pkg" + FS + "T0x12.html", "@A"},
104 {BUG_ID + FS + "pkg" + FS + "T0x11.html", "@A"},
105 {BUG_ID + FS + "pkg" + FS + "T0x13.html", "@A"},
106 {BUG_ID + FS + "pkg" + FS + "T0x15.html", "@A"},
107 {BUG_ID + FS + "pkg" + FS + "T0x14.html", "@A"},
108 {BUG_ID + FS + "pkg" + FS + "T0x16.html", "@A"}
109 };
111 /**
112 * The entry point of the test.
113 * @param args the array of command line arguments.
114 */
115 public static void main(String[] args) {
116 TestSmoke tester = new TestSmoke();
117 run(tester, ARGS, TEST, NEGATED_TEST);
118 tester.printSummary();
119 }
121 /**
122 * {@inheritDoc}
123 */
124 public String getBugId() {
125 return BUG_ID;
126 }
128 /**
129 * {@inheritDoc}
130 */
131 public String getBugName() {
132 return getClass().getName();
133 }
134 }