langtools/test/com/sun/javadoc/5093723/T5093723.java
changeset 24399 af1a0220d0fa
parent 24072 e7549dcbc4af
child 30730 d3ce7619db2c
equal deleted inserted replaced
24398:601a611d0aee 24399:af1a0220d0fa
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      5093723
    26  * @bug      5093723
    27  * @summary  REGRESSION: ClassCastException in SingleIndexWriter
    27  * @summary  REGRESSION: ClassCastException in SingleIndexWriter
    28  * @library  ../lib/
    28  * @library ../lib
    29  * @build    JavadocTester
    29  * @build    JavadocTester
    30  * @build    T5093723
       
    31  * @run main T5093723
    30  * @run main T5093723
    32  */
    31  */
    33 
    32 
    34 public class T5093723 extends JavadocTester {
    33 public class T5093723 extends JavadocTester {
    35 
    34 
    36     private static final String[] ARGS = new String[] {
    35     public static void main(String... args) throws Exception {
    37         "-d", OUTPUT_DIR + ".out", "-Xdoclint:none",
    36         T5093723 tester = new T5093723();
    38         SRC_DIR + "/DocumentedClass.java",
    37         tester.runTests();
    39         SRC_DIR + "/UndocumentedClass.java"
    38     }
    40     };
       
    41 
    39 
    42     public static void main(String... args) {
    40     @Test
    43         T5093723 tester = new T5093723();
    41     void test() {
    44         if (tester.runJavadoc(ARGS) != 0)
    42         javadoc("-d", "out",
    45           throw new AssertionError("non-zero return code from javadoc");
    43                 "-Xdoclint:none",
       
    44                 testSrc("DocumentedClass.java"),
       
    45                 testSrc("UndocumentedClass.java"));
       
    46         checkExit(Exit.OK);
    46     }
    47     }
    47 }
    48 }