mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -27,26 +27,22 @@
|
|||
* @summary Determine if Hrefs are processed properly when they
|
||||
* appear in doc comments.
|
||||
* @author jamieh
|
||||
* @library ../lib/
|
||||
* @library ../lib
|
||||
* @build JavadocTester
|
||||
* @build TestHrefInDocComment
|
||||
* @run main TestHrefInDocComment
|
||||
*/
|
||||
|
||||
public class TestHrefInDocComment extends JavadocTester {
|
||||
|
||||
private static final String[] ARGS =
|
||||
new String[] {
|
||||
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"};
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
TestHrefInDocComment tester = new TestHrefInDocComment();
|
||||
if (tester.run(ARGS, NO_TEST, NO_TEST) != 0) {
|
||||
throw new Error("Javadoc failed to execute properly with given source.");
|
||||
}
|
||||
tester.runTests();
|
||||
}
|
||||
|
||||
@Test
|
||||
void test() {
|
||||
javadoc("-d", "out",
|
||||
"-sourcepath", testSrc, "pkg");
|
||||
checkExit(Exit.OK);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue