32 * @run main TestTagInheritence
33 */
34
35 // TODO: Inheritence should be Inheritance! fix separately as noreg-trivial
36 public class TestTagInheritence extends JavadocTester {
37
38 public static void main(String... args) throws Exception {
39 TestTagInheritence tester = new TestTagInheritence();
40 tester.runTests();
41 }
42
43 @Test
44 void test() {
45 javadoc("-Xdoclint:none",
46 "-d", "out",
47 "-sourcepath", testSrc,
48 "pkg", "firstSentence", "firstSentence2");
49 checkExit(Exit.OK);
50
51 //Test bad inheritDoc tag warning.
52 checkOutput(Output.WARNING, true,
53 "warning - @inheritDoc used but testBadInheritDocTag() "
54 + "does not override or implement any method.");
55
56 //Test valid usage of inheritDoc tag.
57 for (int i = 1; i < 40; i++) {
58 checkOutput("pkg/TestTagInheritence.html", true,
59 "Test " + i + " passes");
60 }
61
62 //First sentence test (6253614)
63 checkOutput("firstSentence/B.html", true,
64 "<div class=\"block\">First sentence.</div>");
65
66 //Another first sentence test (6253604)
67 checkOutput("firstSentence2/C.html", true,
68 "<div class=\"block\">First sentence.</div>");
69 }
70 }
|
32 * @run main TestTagInheritence
33 */
34
35 // TODO: Inheritence should be Inheritance! fix separately as noreg-trivial
36 public class TestTagInheritence extends JavadocTester {
37
38 public static void main(String... args) throws Exception {
39 TestTagInheritence tester = new TestTagInheritence();
40 tester.runTests();
41 }
42
43 @Test
44 void test() {
45 javadoc("-Xdoclint:none",
46 "-d", "out",
47 "-sourcepath", testSrc,
48 "pkg", "firstSentence", "firstSentence2");
49 checkExit(Exit.OK);
50
51 //Test bad inheritDoc tag warning.
52 checkOutput(Output.OUT, true,
53 "warning - @inheritDoc used but testBadInheritDocTag() "
54 + "does not override or implement any method.");
55
56 //Test valid usage of inheritDoc tag.
57 for (int i = 1; i < 40; i++) {
58 checkOutput("pkg/TestTagInheritence.html", true,
59 "Test " + i + " passes");
60 }
61
62 //First sentence test (6253614)
63 checkOutput("firstSentence/B.html", true,
64 "<div class=\"block\">First sentence.</div>");
65
66 //Another first sentence test (6253604)
67 checkOutput("firstSentence2/C.html", true,
68 "<div class=\"block\">First sentence.</div>");
69 }
70 }
|