author | pmuthuswamy |
Wed, 30 Jan 2019 16:39:26 +0530 | |
changeset 53562 | 0d9dee001667 |
parent 53097 | 2e82ca64b25d |
child 54350 | 4f9772f4403d |
permissions | -rw-r--r-- |
10 | 1 |
/* |
53562 | 2 |
* Copyright (c) 2002, 2019, 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 |
|
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49139
diff
changeset
|
26 |
* @bug 4637604 4775148 8183037 8182765 8196202 |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
27 |
* @summary Test the tables for summary attribute |
10 | 28 |
* @author dkramer |
53097 | 29 |
* @library ../../lib |
36526 | 30 |
* @modules jdk.javadoc/jdk.javadoc.internal.tool |
53097 | 31 |
* @build javadoc.tester.* |
10 | 32 |
* @run main AccessSummary |
33 |
*/ |
|
34 |
||
53097 | 35 |
import javadoc.tester.JavadocTester; |
36 |
||
10 | 37 |
public class AccessSummary extends JavadocTester { |
38 |
/** |
|
39 |
* The entry point of the test. |
|
40 |
* @param args the array of command line arguments. |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
41 |
* @throws Exception if the test fails |
10 | 42 |
*/ |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
43 |
public static void main(String... args) throws Exception { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
44 |
AccessSummary tester = new AccessSummary(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
45 |
tester.runTests(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
46 |
} |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
47 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
48 |
@Test |
53097 | 49 |
public void testAccessSummary() { |
50293
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49139
diff
changeset
|
50 |
javadoc("-d", "out", |
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49139
diff
changeset
|
51 |
"--frames", |
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49139
diff
changeset
|
52 |
"-sourcepath", testSrc, |
edfb87b2520e
8196202: Javadoc should not generate frames by default
jjg
parents:
49139
diff
changeset
|
53 |
"p1", "p2"); |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
54 |
checkExit(Exit.OK); |
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
55 |
checkSummary(false); |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
56 |
} |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
57 |
|
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
58 |
void checkSummary(boolean found) { |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
59 |
checkOutput("overview-summary.html", found, |
47447
9887d1bc3e9c
8183037: Overview summary page should have a table with tabs for groups
bpatel
parents:
47216
diff
changeset
|
60 |
"summary=\"Package Summary table, listing packages, and an explanation\""); |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
61 |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
62 |
// Test that the summary attribute appears or not |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
63 |
checkOutput("p1/C1.html", found, |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
64 |
"summary=\"Constructor Summary table, listing constructors, and an explanation\""); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
65 |
|
49139
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
66 |
// Test that the summary attribute appears or not |
771616d26ca1
8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents:
47447
diff
changeset
|
67 |
checkOutput("constant-values.html", found, |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
68 |
"summary=\"Constant Field Values table, listing constant fields, and values\""); |
10 | 69 |
} |
70 |
} |