1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/com/sun/javadoc/typeAnnotations/smoke/TestSmoke.java Wed Jan 23 13:27:24 2013 -0800 1.3 @@ -0,0 +1,114 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. 1.11 + * 1.12 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.14 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.15 + * version 2 for more details (a copy is included in the LICENSE file that 1.16 + * accompanied this code). 1.17 + * 1.18 + * You should have received a copy of the GNU General Public License version 1.19 + * 2 along with this work; if not, write to the Free Software Foundation, 1.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.21 + * 1.22 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.23 + * or visit www.oracle.com if you need additional information or have any 1.24 + * questions. 1.25 + */ 1.26 + 1.27 +/* 1.28 + * @test 1.29 + * @bug 8006735 1.30 + * @ignore 1.31 + * @summary Smoke test for ensuring that annotations are emited to javadoc 1.32 + * 1.33 + * @author Mahmood Ali <mali> 1.34 + * @library ../../lib/ 1.35 + * @build JavadocTester 1.36 + * @build TestSmoke 1.37 + * @run main TestSmoke 1.38 + */ 1.39 + 1.40 +public class TestSmoke extends JavadocTester { 1.41 + 1.42 + //Test information. 1.43 + private static final String BUG_ID = "NOT_SPECIFIED_YET"; 1.44 + 1.45 + //Javadoc arguments. 1.46 + private static final String[] ARGS = new String[] { 1.47 + "-d", BUG_ID, "-private", "-sourcepath", SRC_DIR, "pkg" 1.48 + }; 1.49 + 1.50 + //Input for string search tests. 1.51 + private static final String[][] TEST = { 1.52 + {BUG_ID + FS + "pkg" + FS + "T0x1C.html", "@DA"}, 1.53 + {BUG_ID + FS + "pkg" + FS + "T0x1D.html", "@DA"}, 1.54 + {BUG_ID + FS + "pkg" + FS + "T0x0D.html", "@DA"}, 1.55 + {BUG_ID + FS + "pkg" + FS + "T0x06.html", "@DA"}, 1.56 + {BUG_ID + FS + "pkg" + FS + "T0x0B.html", "@DA"}, 1.57 + {BUG_ID + FS + "pkg" + FS + "T0x0F.html", "@DA"}, 1.58 + {BUG_ID + FS + "pkg" + FS + "T0x20.html", "@DA"}, 1.59 + {BUG_ID + FS + "pkg" + FS + "T0x22.html", "@DA"}, 1.60 + {BUG_ID + FS + "pkg" + FS + "T0x10.html", "@DA"}, 1.61 + {BUG_ID + FS + "pkg" + FS + "T0x10A.html", "@DA"}, 1.62 + {BUG_ID + FS + "pkg" + FS + "T0x12.html", "@DA"}, 1.63 + {BUG_ID + FS + "pkg" + FS + "T0x11.html", "@DA"}, 1.64 + {BUG_ID + FS + "pkg" + FS + "T0x13.html", "@DA"}, 1.65 + {BUG_ID + FS + "pkg" + FS + "T0x15.html", "@DA"}, 1.66 + {BUG_ID + FS + "pkg" + FS + "T0x14.html", "@DA"}, 1.67 + {BUG_ID + FS + "pkg" + FS + "T0x16.html", "@DA"} 1.68 + }; 1.69 + 1.70 + private static final String[][] NEGATED_TEST = { 1.71 + {BUG_ID + FS + "pkg" + FS + "T0x1C.html", "@A"}, 1.72 + {BUG_ID + FS + "pkg" + FS + "T0x1D.html", "@A"}, 1.73 + {BUG_ID + FS + "pkg" + FS + "T0x00.html", "@A"}, 1.74 + {BUG_ID + FS + "pkg" + FS + "T0x01.html", "@A"}, 1.75 + {BUG_ID + FS + "pkg" + FS + "T0x02.html", "@A"}, 1.76 + {BUG_ID + FS + "pkg" + FS + "T0x04.html", "@A"}, 1.77 + {BUG_ID + FS + "pkg" + FS + "T0x08.html", "@A"}, 1.78 + {BUG_ID + FS + "pkg" + FS + "T0x0D.html", "@A"}, 1.79 + {BUG_ID + FS + "pkg" + FS + "T0x06.html", "@A"}, 1.80 + {BUG_ID + FS + "pkg" + FS + "T0x0B.html", "@A"}, 1.81 + {BUG_ID + FS + "pkg" + FS + "T0x0F.html", "@A"}, 1.82 + {BUG_ID + FS + "pkg" + FS + "T0x20.html", "@A"}, 1.83 + {BUG_ID + FS + "pkg" + FS + "T0x22.html", "@A"}, 1.84 + {BUG_ID + FS + "pkg" + FS + "T0x10.html", "@A"}, 1.85 + {BUG_ID + FS + "pkg" + FS + "T0x10A.html", "@A"}, 1.86 + {BUG_ID + FS + "pkg" + FS + "T0x12.html", "@A"}, 1.87 + {BUG_ID + FS + "pkg" + FS + "T0x11.html", "@A"}, 1.88 + {BUG_ID + FS + "pkg" + FS + "T0x13.html", "@A"}, 1.89 + {BUG_ID + FS + "pkg" + FS + "T0x15.html", "@A"}, 1.90 + {BUG_ID + FS + "pkg" + FS + "T0x14.html", "@A"}, 1.91 + {BUG_ID + FS + "pkg" + FS + "T0x16.html", "@A"} 1.92 + }; 1.93 + 1.94 + /** 1.95 + * The entry point of the test. 1.96 + * @param args the array of command line arguments. 1.97 + */ 1.98 + public static void main(String[] args) { 1.99 + TestSmoke tester = new TestSmoke(); 1.100 + run(tester, ARGS, TEST, NEGATED_TEST); 1.101 + tester.printSummary(); 1.102 + } 1.103 + 1.104 + /** 1.105 + * {@inheritDoc} 1.106 + */ 1.107 + public String getBugId() { 1.108 + return BUG_ID; 1.109 + } 1.110 + 1.111 + /** 1.112 + * {@inheritDoc} 1.113 + */ 1.114 + public String getBugName() { 1.115 + return getClass().getName(); 1.116 + } 1.117 +}