author | jjg |
Tue, 15 Oct 2013 15:57:13 -0700 | |
changeset 21041 | 99f5e5e97425 |
parent 17578 | 46ac954e4a84 |
child 23971 | f5ff1f5a8dee |
permissions | -rw-r--r-- |
15385 | 1 |
/* |
17544
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
16813
diff
changeset
|
2 |
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
15385 | 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 |
*/ |
|
23 |
||
24 |
/* |
|
25 |
* @test |
|
26 |
* @bug 8006735 |
|
17578 | 27 |
* @summary Smoke test for ensuring that annotations are emitted to javadoc |
15385 | 28 |
* |
29 |
* @author Mahmood Ali <mali> |
|
30 |
* @library ../../lib/ |
|
21041 | 31 |
* @ignore |
15385 | 32 |
* @build JavadocTester |
33 |
* @build TestSmoke |
|
34 |
* @run main TestSmoke |
|
35 |
*/ |
|
36 |
||
37 |
public class TestSmoke extends JavadocTester { |
|
38 |
||
39 |
//Test information. |
|
17544
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
16813
diff
changeset
|
40 |
private static final String BUG_ID = "8006735"; |
15385 | 41 |
|
42 |
//Javadoc arguments. |
|
43 |
private static final String[] ARGS = new String[] { |
|
44 |
"-d", BUG_ID, "-private", "-sourcepath", SRC_DIR, "pkg" |
|
45 |
}; |
|
46 |
||
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"}, |
|
17544
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
16813
diff
changeset
|
55 |
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java |
15385 | 56 |
{BUG_ID + FS + "pkg" + FS + "T0x20.html", "@DA"}, |
17544
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
16813
diff
changeset
|
57 |
*/ |
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
16813
diff
changeset
|
58 |
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java |
17578 | 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 |
|
15385 | 65 |
{BUG_ID + FS + "pkg" + FS + "T0x22.html", "@DA"}, |
17544
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
16813
diff
changeset
|
66 |
*/ |
17578 | 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 |
*/ |
|
15385 | 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 |
}; |
|
82 |
||
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"}, |
|
17578 | 96 |
{BUG_ID + FS + "pkg" + FS + "T0x20A.html", "@A"}, |
97 |
{BUG_ID + FS + "pkg" + FS + "T0x20B.html", "@A"}, |
|
15385 | 98 |
{BUG_ID + FS + "pkg" + FS + "T0x22.html", "@A"}, |
17578 | 99 |
{BUG_ID + FS + "pkg" + FS + "T0x22A.html", "@A"}, |
100 |
{BUG_ID + FS + "pkg" + FS + "T0x22B.html", "@A"}, |
|
15385 | 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 |
}; |
|
110 |
||
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 |
} |
|
120 |
||
121 |
/** |
|
122 |
* {@inheritDoc} |
|
123 |
*/ |
|
124 |
public String getBugId() { |
|
125 |
return BUG_ID; |
|
126 |
} |
|
127 |
||
128 |
/** |
|
129 |
* {@inheritDoc} |
|
130 |
*/ |
|
131 |
public String getBugName() { |
|
132 |
return getClass().getName(); |
|
133 |
} |
|
134 |
} |