mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8038730: Clean up the way JavadocTester is invoked, and checks for errors
Reviewed-by: ksrini, sogoel, bpatel
This commit is contained in:
parent
756eae6492
commit
caa2209663
144 changed files with 7277 additions and 9513 deletions
|
@ -26,32 +26,26 @@
|
|||
* @bug 7132631
|
||||
* @summary Make sure that the help file is generated correctly.
|
||||
* @author Bhavesh Patel
|
||||
* @library ../lib/
|
||||
* @build JavadocTester TestHelpFile
|
||||
* @library ../lib
|
||||
* @build JavadocTester
|
||||
* @run main TestHelpFile
|
||||
*/
|
||||
|
||||
public class TestHelpFile extends JavadocTester {
|
||||
|
||||
//Javadoc arguments.
|
||||
private static final String[] ARGS = new String[] {
|
||||
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
|
||||
SRC_DIR + "/TestHelpFile.java"
|
||||
};
|
||||
|
||||
private static final String[][] TEST = {
|
||||
{ "help-doc.html",
|
||||
"<a href=\"constant-values.html\">Constant Field Values</a>"
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* The entry point of the test.
|
||||
* @param args the array of command line arguments.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void main(String... args) throws Exception {
|
||||
TestHelpFile tester = new TestHelpFile();
|
||||
tester.run(ARGS, TEST, NO_TEST);
|
||||
tester.printSummary();
|
||||
tester.runTests();
|
||||
}
|
||||
|
||||
@Test
|
||||
void test() {
|
||||
javadoc("-d", "out",
|
||||
"-sourcepath", testSrc,
|
||||
testSrc("TestHelpFile.java"));
|
||||
checkExit(Exit.OK);
|
||||
|
||||
checkOutput("help-doc.html", true,
|
||||
"<a href=\"constant-values.html\">Constant Field Values</a>");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue