< prev index next >

test/langtools/jdk/javadoc/doclet/testOverriddenMethods/TestBadOverride.java

Print this page




  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>toString</h3>\n"
  57                 + "<a id=\"toString()\">\n"
  58                 + "<!--   -->\n"
  59                 + "</a>\n"
  60                 + "<pre class=\"methodSignature\">public&nbsp;void&nbsp;toString()</pre>\n"

  61                 + "<div class=\"block\">Why can't I do this ?</div>\n"
  62                 + "</section>");
  63     }
  64 }


  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>toString</h3>\n"
  57                 + "<a id=\"toString()\">\n"
  58                 + "<!--   -->\n"
  59                 + "</a>\n"
  60                 + "<div class=\"memberSignature\"><span class=\"modifiers\">public</span>&nbsp;"
  61                 + "<span class=\"returnType\">void</span>&nbsp;<span class=\"memberName\">toString</span>()</div>\n"
  62                 + "<div class=\"block\">Why can't I do this ?</div>\n"
  63                 + "</section>");
  64     }
  65 }
< prev index next >