35 36 public class TestBadOverride extends JavadocTester { 37 38 /** 39 * The entry point of the test. 40 * @param args the array of command line arguments. 41 */ 42 public static void main(String... args) throws Exception { 43 TestBadOverride tester = new TestBadOverride(); 44 tester.runTests(); 45 } 46 47 @Test 48 public void test() { 49 javadoc("-d", "out", 50 "-sourcepath", testSrc, 51 "pkg4"); 52 checkExit(Exit.OK); 53 54 checkOutput("pkg4/Foo.html", true, 55 "<section class=\"detail\">\n" 56 + "<h3><a id=\"toString()\">toString</a></h3>\n" 57 + "<div class=\"memberSignature\"><span class=\"modifiers\">public</span> " 58 + "<span class=\"returnType\">void</span> <span class=\"memberName\">toString</span>()</div>\n" 59 + "<div class=\"block\">Why can't I do this ?</div>\n" 60 + "</section>"); 61 } 62 } | 35 36 public class TestBadOverride extends JavadocTester { 37 38 /** 39 * The entry point of the test. 40 * @param args the array of command line arguments. 41 */ 42 public static void main(String... args) throws Exception { 43 TestBadOverride tester = new TestBadOverride(); 44 tester.runTests(); 45 } 46 47 @Test 48 public void test() { 49 javadoc("-d", "out", 50 "-sourcepath", testSrc, 51 "pkg4"); 52 checkExit(Exit.OK); 53 54 checkOutput("pkg4/Foo.html", true, 55 "<section class=\"detail\" id=\"toString()\">\n" 56 + "<h3>toString</h3>\n" 57 + "<div class=\"memberSignature\"><span class=\"modifiers\">public</span> " 58 + "<span class=\"returnType\">void</span> <span class=\"memberName\">toString</span>()</div>\n" 59 + "<div class=\"block\">Why can't I do this ?</div>\n" 60 + "</section>"); 61 } 62 } |