test/com/sun/javadoc/testTagInheritence/TestTagInheritence.java

Print this page




  19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     4496223 4496270 4618686 4720974 4812240 6253614 6253604
  27  * @summary <DESC>
  28  * @author  jamieh
  29  * @library ../lib/
  30  * @build JavadocTester
  31  * @build TestTagInheritence
  32  * @run main TestTagInheritence
  33  */
  34 
  35 public class TestTagInheritence extends JavadocTester {
  36 
  37     private static final String BUG_ID = "4496223-4496270-4618686-4720974-4812240-6253614-6253604";
  38     private static final String[] ARGS = new String[] {
  39         "-source", "1.5", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "firstSentence", "firstSentence2"
  40     };
  41 
  42     /**
  43      * The entry point of the test.
  44      * @param args the array of command line arguments.
  45      */
  46     public static void main(String[] args) {
  47         String[][] tests = new String[42][2];
  48         //Test bad inheritDoc tag warning.
  49         tests[0][0]= WARNING_OUTPUT;
  50         tests[0][1] = "warning - @inheritDoc used but testBadInheritDocTag() " +
  51             "does not override or implement any method.";
  52 
  53         //Test valid usage of inheritDoc tag.
  54         for (int i = 1; i < tests.length-2; i++) {
  55             tests[i][0] = BUG_ID + FS + "pkg" + FS + "TestTagInheritence.html";
  56             tests[i][1] = "Test " + i + " passes";
  57         }
  58 
  59         //First sentence test (6253614)




  19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     4496223 4496270 4618686 4720974 4812240 6253614 6253604
  27  * @summary <DESC>
  28  * @author  jamieh
  29  * @library ../lib/
  30  * @build JavadocTester
  31  * @build TestTagInheritence
  32  * @run main TestTagInheritence
  33  */
  34 
  35 public class TestTagInheritence extends JavadocTester {
  36 
  37     private static final String BUG_ID = "4496223-4496270-4618686-4720974-4812240-6253614-6253604";
  38     private static final String[] ARGS = new String[] {
  39         "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "firstSentence", "firstSentence2"
  40     };
  41 
  42     /**
  43      * The entry point of the test.
  44      * @param args the array of command line arguments.
  45      */
  46     public static void main(String[] args) {
  47         String[][] tests = new String[42][2];
  48         //Test bad inheritDoc tag warning.
  49         tests[0][0]= WARNING_OUTPUT;
  50         tests[0][1] = "warning - @inheritDoc used but testBadInheritDocTag() " +
  51             "does not override or implement any method.";
  52 
  53         //Test valid usage of inheritDoc tag.
  54         for (int i = 1; i < tests.length-2; i++) {
  55             tests[i][0] = BUG_ID + FS + "pkg" + FS + "TestTagInheritence.html";
  56             tests[i][1] = "Test " + i + " passes";
  57         }
  58 
  59         //First sentence test (6253614)