33 * @run main TestMultiInheritence |
33 * @run main TestMultiInheritence |
34 */ |
34 */ |
35 |
35 |
36 public class TestMultiInheritence extends JavadocTester { |
36 public class TestMultiInheritence extends JavadocTester { |
37 |
37 |
38 //Test information. |
|
39 private static final String BUG_ID = "4933335"; |
|
40 |
|
41 //Javadoc arguments. |
38 //Javadoc arguments. |
42 private static final String[] ARGS = new String[] { |
39 private static final String[] ARGS = new String[] { |
43 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg3" |
40 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg3" |
44 }; |
41 }; |
45 |
42 |
46 //Method foo() is inherited from BOTH I2 and I3 |
43 //Method foo() is inherited from BOTH I2 and I3 |
47 private static final String[][] TEST = { |
44 private static final String[][] TEST = { |
48 {BUG_ID + "/pkg3/I1.html", |
45 { "pkg3/I1.html", |
49 "Methods inherited from interface pkg3." + |
46 "Methods inherited from interface pkg3." + |
50 "<a href=\"../pkg3/I2.html\" title=\"interface in pkg3\">" + |
47 "<a href=\"../pkg3/I2.html\" title=\"interface in pkg3\">" + |
51 "I2</a>"}, |
48 "I2</a>"}, |
52 {BUG_ID + "/pkg3/I1.html", |
49 { "pkg3/I1.html", |
53 "Methods inherited from interface pkg3." + |
50 "Methods inherited from interface pkg3." + |
54 "<a href=\"../pkg3/I3.html\" title=\"interface in pkg3\">" + |
51 "<a href=\"../pkg3/I3.html\" title=\"interface in pkg3\">" + |
55 "I3</a>"}, |
52 "I3</a>"}, |
56 {BUG_ID + "/pkg3/I0.html", |
53 { "pkg3/I0.html", |
57 "Methods inherited from interface pkg3." + |
54 "Methods inherited from interface pkg3." + |
58 "<a href=\"../pkg3/I2.html\" title=\"interface in pkg3\">" + |
55 "<a href=\"../pkg3/I2.html\" title=\"interface in pkg3\">" + |
59 "I2</a>"}, |
56 "I2</a>"}, |
60 {BUG_ID + "/pkg3/I0.html", |
57 { "pkg3/I0.html", |
61 "Methods inherited from interface pkg3." + |
58 "Methods inherited from interface pkg3." + |
62 "<a href=\"../pkg3/I3.html\" title=\"interface in pkg3\">" + |
59 "<a href=\"../pkg3/I3.html\" title=\"interface in pkg3\">" + |
63 "I3</a>"}, |
60 "I3</a>"}, |
64 }; |
61 }; |
65 |
62 |
66 //Method foo() is NOT inherited from I4 because it is overriden by |
63 //Method foo() is NOT inherited from I4 because it is overriden by |
67 //I3. |
64 //I3. |
68 private static final String[][] NEGATED_TEST = { |
65 private static final String[][] NEGATED_TEST = { |
69 {BUG_ID + "/pkg3/I1.html", |
66 { "pkg3/I1.html", |
70 "Methods inherited from interface pkg3." + |
67 "Methods inherited from interface pkg3." + |
71 "<a href=\"../pkg3/I4.html\" title=\"interface in pkg3\">" + |
68 "<a href=\"../pkg3/I4.html\" title=\"interface in pkg3\">" + |
72 "I4</a>"}, |
69 "I4</a>"}, |
73 {BUG_ID + "/pkg3/I0.html", |
70 { "pkg3/I0.html", |
74 "Methods inherited from interface pkg3." + |
71 "Methods inherited from interface pkg3." + |
75 "<a href=\"../pkg3/I4.html\" title=\"interface in pkg3\">" + |
72 "<a href=\"../pkg3/I4.html\" title=\"interface in pkg3\">" + |
76 "I4</a>"}, |
73 "I4</a>"}, |
77 }; |
74 }; |
78 |
75 |
83 public static void main(String[] args) { |
80 public static void main(String[] args) { |
84 TestMultiInheritence tester = new TestMultiInheritence(); |
81 TestMultiInheritence tester = new TestMultiInheritence(); |
85 tester.run(ARGS, TEST, NEGATED_TEST); |
82 tester.run(ARGS, TEST, NEGATED_TEST); |
86 tester.printSummary(); |
83 tester.printSummary(); |
87 } |
84 } |
88 |
|
89 /** |
|
90 * {@inheritDoc} |
|
91 */ |
|
92 public String getBugId() { |
|
93 return BUG_ID; |
|
94 } |
|
95 |
|
96 /** |
|
97 * {@inheritDoc} |
|
98 */ |
|
99 public String getBugName() { |
|
100 return getClass().getName(); |
|
101 } |
|
102 } |
85 } |