test/jdk/javadoc/doclet/testBadSourceFile/TestBadSourceFile.java

Print this page




  33  * @run main TestBadSourceFile
  34  */
  35 
  36 public class TestBadSourceFile extends JavadocTester {
  37 
  38     /**
  39      * The entry point of the test.
  40      * @param args the array of command line arguments
  41      * @throws Exception if the test fails
  42      */
  43     public static void main(String... args) throws Exception {
  44         TestBadSourceFile tester = new TestBadSourceFile();
  45         tester.runTests();
  46     }
  47 
  48     @Test
  49     void test() {
  50         javadoc("-Xdoclint:none",
  51                 "-d", "out",
  52                 testSrc("C2.java"));
  53         checkExit(Exit.OK);
  54     }
  55 }


  33  * @run main TestBadSourceFile
  34  */
  35 
  36 public class TestBadSourceFile extends JavadocTester {
  37 
  38     /**
  39      * The entry point of the test.
  40      * @param args the array of command line arguments
  41      * @throws Exception if the test fails
  42      */
  43     public static void main(String... args) throws Exception {
  44         TestBadSourceFile tester = new TestBadSourceFile();
  45         tester.runTests();
  46     }
  47 
  48     @Test
  49     void test() {
  50         javadoc("-Xdoclint:none",
  51                 "-d", "out",
  52                 testSrc("C2.java"));
  53         checkExit(Exit.FAILED);
  54     }
  55 }