author | jjg |
Fri, 30 Aug 2013 17:36:47 -0700 | |
changeset 19913 | 2adc7be8a60b |
child 19937 | 7dacecdfbad4 |
permissions | -rw-r--r-- |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
1 |
/* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
2 |
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
4 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
8 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
13 |
* accompanied this code). |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
14 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
18 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
21 |
* questions. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
22 |
*/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
23 |
|
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
24 |
/* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
25 |
* @test |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
26 |
* @bug 8006124 8009684 8015663 |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
27 |
* @summary Test javadoc options support for profiles. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
28 |
* @author Evgeniya Stepanova |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
29 |
* @library ../lib/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
30 |
* @build JavadocTester TestProfilesConfiguration |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
31 |
* @run main TestProfilesConfiguration |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
32 |
*/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
33 |
public class TestProfilesConfiguration extends JavadocTester { |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
34 |
|
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
35 |
//Test information. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
36 |
private static final String BUG_ID = "8006124-8009684"; |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
37 |
private static final String PROFILE_CONFIGURATION_BUG_ID = BUG_ID + "-3"; |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
38 |
//Javadoc arguments. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
39 |
private static final String[] ARGS3 = new String[]{ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
40 |
"-d", PROFILE_CONFIGURATION_BUG_ID, "-sourcepath", SRC_DIR, "-nocomment", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
41 |
"-keywords", "-Xprofilespath", SRC_DIR + FS + "profile-rtjar-includes.txt", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
42 |
"-doctitle", "Simple doctitle", "-use", "pkg3", "pkg1", "pkg2", "pkg4", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
43 |
"pkg5", "-packagesheader", "Simple packages header","pkgDeprecated" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
44 |
}; |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
45 |
private static final String[][] PROFILES_CONFIGURATION_TEST = { |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
46 |
//-use option test string fo profile view page |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
47 |
{PROFILE_CONFIGURATION_BUG_ID + FS + "compact1-summary.html","<li>Use</li>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
48 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
49 |
//-doctitle option test string |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
50 |
{PROFILE_CONFIGURATION_BUG_ID + FS + "overview-summary.html", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
51 |
"<div class=\"header\">" + NL + "<h1 class=\"title\">Simple doctitle</h1>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
52 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
53 |
//-packagesheader option test string fo profiles |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
54 |
{PROFILE_CONFIGURATION_BUG_ID + FS + "profile-overview-frame.html", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
55 |
"<h1 title=\"Simple packages header\" class=\"bar\">Simple packages header</h1>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
56 |
}, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
57 |
//-keywords option test string for profiles |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
58 |
{PROFILE_CONFIGURATION_BUG_ID + FS + "compact1-summary.html", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
59 |
"<meta name=\"keywords\" content=\"compact1 profile\">" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
60 |
} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
61 |
}; |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
62 |
private static final String[][] PROFILES_CONFIGURATION_NEGATED_TEST = { |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
63 |
//-nocomments option test string |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
64 |
{PROFILE_CONFIGURATION_BUG_ID + FS + "compact1-summary.html", |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
65 |
"<div class=\"block\"><i>Class1Pkg2.</i></div>" |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
66 |
} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
67 |
}; |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
68 |
|
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
69 |
/** |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
70 |
* The entry point of the test. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
71 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
72 |
* @param args the array of command line arguments. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
73 |
*/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
74 |
public static void main(String[] args) { |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
75 |
TestProfilesConfiguration tester = new TestProfilesConfiguration(); |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
76 |
run(tester, ARGS3, PROFILES_CONFIGURATION_TEST, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
77 |
PROFILES_CONFIGURATION_NEGATED_TEST); |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
78 |
tester.printSummary(); |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
79 |
} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
80 |
|
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
81 |
/** |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
82 |
* {@inheritDoc} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
83 |
*/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
84 |
public String getBugId() { |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
85 |
return BUG_ID; |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
86 |
} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
87 |
|
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
88 |
/** |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
89 |
* {@inheritDoc} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
90 |
*/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
91 |
public String getBugName() { |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
92 |
return getClass().getName(); |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
93 |
} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
94 |
} |