8040903: Clean up use of BUG_ID in javadoc tests

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2014-04-22 17:57:40 -07:00
parent 187dbd343c
commit 3acf463dc4
133 changed files with 1298 additions and 3431 deletions

View file

@ -37,22 +37,19 @@
public class TestClassTree extends JavadocTester {
//Test information.
private static final String BUG_ID = "4632553-4973607";
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
{BUG_ID + "/pkg/package-tree.html",
{ "pkg/package-tree.html",
"<ul>\n" +
"<li type=\"circle\">pkg.<a href=\"../pkg/ParentClass.html\" " +
"title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a>"},
{BUG_ID + "/pkg/package-tree.html",
{ "pkg/package-tree.html",
"<h2 title=\"Annotation Type Hierarchy\">Annotation Type Hierarchy</h2>\n" +
"<ul>\n" +
"<li type=\"circle\">pkg.<a href=\"../pkg/AnnotationType.html\" " +
@ -60,7 +57,7 @@ public class TestClassTree extends JavadocTester {
"(implements java.lang.annotation.Annotation)</li>\n" +
"</ul>"},
{BUG_ID + "/pkg/package-tree.html",
{ "pkg/package-tree.html",
"<h2 title=\"Enum Hierarchy\">Enum Hierarchy</h2>\n" +
"<ul>\n" +
"<li type=\"circle\">java.lang.Object\n" +
@ -78,7 +75,7 @@ public class TestClassTree extends JavadocTester {
},
};
private static final String[][] NEGATED_TEST = {
{BUG_ID + "/pkg/package-tree.html",
{ "pkg/package-tree.html",
"<li type=\"circle\">class pkg.<a href=\"../pkg/ParentClass.html\" " +
"title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a></li>"}
};
@ -92,18 +89,4 @@ public class TestClassTree extends JavadocTester {
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
/**
* {@inheritDoc}
*/
public String getBugId() {
return BUG_ID;
}
/**
* {@inheritDoc}
*/
public String getBugName() {
return getClass().getName();
}
}