21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6492694 8026567
27 * @summary Test package deprecation.
28 * @author bpatel
29 * @library ../lib/
30 * @build JavadocTester TestPackageDeprecation
31 * @run main TestPackageDeprecation
32 */
33
34 public class TestPackageDeprecation extends JavadocTester {
35
36 //Test information.
37 private static final String BUG_ID = "6492694";
38
39 //Javadoc arguments.
40 private static final String[] ARGS1 = new String[]{
41 "-d", BUG_ID + "-1", "-source", "1.5", "-sourcepath", SRC_DIR, "-use", "pkg", "pkg1",
42 SRC_DIR + FS + "C2.java", SRC_DIR + FS + "FooDepr.java"
43 };
44 private static final String[] ARGS2 = new String[]{
45 "-d", BUG_ID + "-2", "-source", "1.5", "-sourcepath", SRC_DIR, "-use", "-nodeprecated",
46 "pkg", "pkg1", SRC_DIR + FS + "C2.java", SRC_DIR + FS + "FooDepr.java"
47 };
48
49 //Input for string search tests.
50 private static final String[][] TEST1 = {
51 {BUG_ID + "-1" + FS + "pkg1" + FS + "package-summary.html",
52 "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>" + NL +
53 "<div class=\"block\"><span class=\"deprecationComment\">This package is Deprecated." +
54 "</span></div>"
55 },
56 {BUG_ID + "-1" + FS + "deprecated-list.html",
57 "<li><a href=\"#package\">Deprecated Packages</a></li>"
58 }
59 };
60 private static final String[][] TEST2 = NO_TEST;
61 private static final String[][] NEGATED_TEST1 = NO_TEST;
62 private static final String[][] NEGATED_TEST2 = {
63 {BUG_ID + "-2" + FS + "overview-summary.html", "pkg1"},
64 {BUG_ID + "-2" + FS + "allclasses-frame.html", "FooDepr"}
65 };
66
67 /**
68 * The entry point of the test.
69 * @param args the array of command line arguments.
70 */
71 public static void main(String[] args) {
72 TestPackageDeprecation tester = new TestPackageDeprecation();
73 run(tester, ARGS1, TEST1, NEGATED_TEST1);
|
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6492694 8026567
27 * @summary Test package deprecation.
28 * @author bpatel
29 * @library ../lib/
30 * @build JavadocTester TestPackageDeprecation
31 * @run main TestPackageDeprecation
32 */
33
34 public class TestPackageDeprecation extends JavadocTester {
35
36 //Test information.
37 private static final String BUG_ID = "6492694";
38
39 //Javadoc arguments.
40 private static final String[] ARGS1 = new String[]{
41 "-d", BUG_ID + "-1", "-sourcepath", SRC_DIR, "-use", "pkg", "pkg1",
42 SRC_DIR + FS + "C2.java", SRC_DIR + FS + "FooDepr.java"
43 };
44 private static final String[] ARGS2 = new String[]{
45 "-d", BUG_ID + "-2", "-sourcepath", SRC_DIR, "-use", "-nodeprecated",
46 "pkg", "pkg1", SRC_DIR + FS + "C2.java", SRC_DIR + FS + "FooDepr.java"
47 };
48
49 //Input for string search tests.
50 private static final String[][] TEST1 = {
51 {BUG_ID + "-1" + FS + "pkg1" + FS + "package-summary.html",
52 "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>" + NL +
53 "<div class=\"block\"><span class=\"deprecationComment\">This package is Deprecated." +
54 "</span></div>"
55 },
56 {BUG_ID + "-1" + FS + "deprecated-list.html",
57 "<li><a href=\"#package\">Deprecated Packages</a></li>"
58 }
59 };
60 private static final String[][] TEST2 = NO_TEST;
61 private static final String[][] NEGATED_TEST1 = NO_TEST;
62 private static final String[][] NEGATED_TEST2 = {
63 {BUG_ID + "-2" + FS + "overview-summary.html", "pkg1"},
64 {BUG_ID + "-2" + FS + "allclasses-frame.html", "FooDepr"}
65 };
66
67 /**
68 * The entry point of the test.
69 * @param args the array of command line arguments.
70 */
71 public static void main(String[] args) {
72 TestPackageDeprecation tester = new TestPackageDeprecation();
73 run(tester, ARGS1, TEST1, NEGATED_TEST1);
|