--- a/langtools/test/com/sun/javadoc/testLinkOption/TestNewLineInLink.java Fri May 09 23:31:05 2014 +0200
+++ b/langtools/test/com/sun/javadoc/testLinkOption/TestNewLineInLink.java Fri May 09 15:37:12 2014 -0700
@@ -27,32 +27,27 @@
* @summary Make sure that a new line may act as a separator between
* link and label.
* @author jamieh
- * @library ../lib/
+ * @library ../lib
* @build JavadocTester
- * @build TestNewLineInLink
* @run main TestNewLineInLink
*/
public class TestNewLineInLink extends JavadocTester {
- private static final String[][] NEGATED_TEST =
- new String[][] {
- {ERROR_OUTPUT,
- "illegal character"}
- };
+ public static void main(String... args) throws Exception {
+ TestNewLineInLink tester = new TestNewLineInLink();
+ tester.runTests();
+ }
- private static final String[] ARGS = new String[] {
- "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
- "-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api",
- SRC_DIR, "testNewLineInLink"};
+ @Test
+ void test() {
+ javadoc("-d", "out",
+ "-sourcepath", testSrc,
+ "-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api", testSrc,
+ "testNewLineInLink");
+ checkExit(Exit.OK);
- /**
- * The entry point of the test.
- * @param args the array of command line arguments.
- */
- public static void main(String[] args) {
- TestNewLineInLink tester = new TestNewLineInLink();
- tester.run(ARGS, new String[][] {}, NEGATED_TEST);
- tester.printSummary();
+ checkOutput(Output.ERROR, false,
+ "illegal character");
}
}