test/com/sun/javadoc/testSupplementary/TestSupplementary.java

changeset 147
402183e8d6e1
parent 1
9a66ca7c79fa
child 174
fdfed22db054
equal deleted inserted replaced
146:6fcc8de719f5 147:402183e8d6e1
31 * @build JavadocTester 31 * @build JavadocTester
32 * @build TestSupplementary 32 * @build TestSupplementary
33 * @run main TestSupplementary 33 * @run main TestSupplementary
34 */ 34 */
35 35
36 import java.util.Locale;
37
36 public class TestSupplementary extends JavadocTester { 38 public class TestSupplementary extends JavadocTester {
37 39
38 private static final String BUG_ID = "4914724"; 40 private static final String BUG_ID = "4914724";
39 private static final String[][] TEST = { 41 private static final String[][] TEST = {
40 {WARNING_OUTPUT, "C.java:38: warning - Tag @see:illegal character: \"119040\" in \"C#method\ud834\udd00()"}, 42 {WARNING_OUTPUT, "C.java:38: warning - Tag @see:illegal character: \"119040\" in \"C#method\ud834\udd00()"},
54 /** 56 /**
55 * The entry point of the test. 57 * The entry point of the test.
56 * @param args the array of command line arguments. 58 * @param args the array of command line arguments.
57 */ 59 */
58 public static void main(String[] args) { 60 public static void main(String[] args) {
59 TestSupplementary tester = new TestSupplementary(); 61 Locale saveLocale = Locale.getDefault();
60 run(tester, ARGS, TEST, NEGATED_TEST); 62 try {
61 tester.printSummary(); 63 TestSupplementary tester = new TestSupplementary();
64 run(tester, ARGS, TEST, NEGATED_TEST);
65 tester.printSummary();
66 } finally {
67 Locale.setDefault(saveLocale);
68 }
62 } 69 }
63 70
64 /** 71 /**
65 * {@inheritDoc} 72 * {@inheritDoc}
66 */ 73 */

mercurial