34 */ 35 36 public class TestGroupOption extends JavadocTester { 37 38 public static void main(String... args) throws Exception { 39 TestGroupOption tester = new TestGroupOption(); 40 tester.runTests(); 41 } 42 43 @Test 44 void test1() { 45 //Make sure the warning is not printed when -group is used correctly. 46 javadoc("-d", "out-1", 47 "-sourcepath", testSrc, 48 "-group", "Package One", "pkg1", 49 "-group", "Package Two", "pkg2", 50 "-group", "Package Three", "pkg3", 51 "pkg1", "pkg2", "pkg3"); 52 checkExit(Exit.OK); 53 54 checkOutput(Output.WARNING, false, 55 "-group"); 56 } 57 58 @Test 59 void test2() { 60 //Make sure the warning is printed when -group is not used correctly. 61 javadoc("-d", "out-2", 62 "-sourcepath", testSrc, 63 "-group", "Package One", "pkg1", 64 "-group", "Package One", "pkg2", 65 "-group", "Package One", "pkg3", 66 "pkg1", "pkg2", "pkg3"); 67 checkExit(Exit.OK); 68 69 checkOutput(Output.WARNING, true, 70 "-group"); 71 72 } 73 } | 34 */ 35 36 public class TestGroupOption extends JavadocTester { 37 38 public static void main(String... args) throws Exception { 39 TestGroupOption tester = new TestGroupOption(); 40 tester.runTests(); 41 } 42 43 @Test 44 void test1() { 45 //Make sure the warning is not printed when -group is used correctly. 46 javadoc("-d", "out-1", 47 "-sourcepath", testSrc, 48 "-group", "Package One", "pkg1", 49 "-group", "Package Two", "pkg2", 50 "-group", "Package Three", "pkg3", 51 "pkg1", "pkg2", "pkg3"); 52 checkExit(Exit.OK); 53 54 checkOutput(Output.OUT, false, 55 "-group"); 56 } 57 58 @Test 59 void test2() { 60 //Make sure the warning is printed when -group is not used correctly. 61 javadoc("-d", "out-2", 62 "-sourcepath", testSrc, 63 "-group", "Package One", "pkg1", 64 "-group", "Package One", "pkg2", 65 "-group", "Package One", "pkg3", 66 "pkg1", "pkg2", "pkg3"); 67 checkExit(Exit.OK); 68 69 checkOutput(Output.OUT, true, 70 "-group"); 71 72 } 73 } |