langtools/test/com/sun/javadoc/testInterface/TestInterface.java
changeset 1787 1aa079321cd2
parent 10 06bc494ca11e
child 2216 b124d5c924eb
equal deleted inserted replaced
1753:d4c11dcedac3 1787:1aa079321cd2
    46     };
    46     };
    47 
    47 
    48     //Input for string search tests.
    48     //Input for string search tests.
    49     private static final String[][] TEST = {
    49     private static final String[][] TEST = {
    50         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    50         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    51             "int <B>method</B>()"},
    51             "int <STRONG>method</STRONG>()"},
    52         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    52         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    53             "static final int <B>field</B>"},
    53             "static final int <STRONG>field</STRONG>"},
    54 
    54 
    55 
    55 
    56         // Make sure known implementing class list is correct and omits type parameters.
    56         // Make sure known implementing class list is correct and omits type parameters.
    57         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    57         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    58             "<DT><B>All Known Implementing Classes:</B> " +
    58             "<DT><STRONG>All Known Implementing Classes:</STRONG> " +
    59             "<DD><A HREF=\"../pkg/Child.html\" " +
    59             "<DD><A HREF=\"../pkg/Child.html\" " +
    60             "title=\"class in pkg\">Child</A>, " +
    60             "title=\"class in pkg\">Child</A>, " +
    61             "<A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">" +
    61             "<A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">" +
    62             "Parent</A></DD>"},
    62             "Parent</A></DD>"},
    63 
    63 
    64          // Make sure "All Implemented Interfaces": has substituted type parameters
    64          // Make sure "All Implemented Interfaces": has substituted type parameters
    65          {BUG_ID + FS + "pkg" + FS + "Child.html",
    65          {BUG_ID + FS + "pkg" + FS + "Child.html",
    66             "<B>All Implemented Interfaces:</B> <DD><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A>&lt;T&gt;"
    66             "<STRONG>All Implemented Interfaces:</STRONG> <DD><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A>&lt;T&gt;"
    67          },
    67          },
    68          //Make sure Class Tree has substituted type parameters.
    68          //Make sure Class Tree has substituted type parameters.
    69          {BUG_ID + FS + "pkg" + FS + "Child.html",
    69          {BUG_ID + FS + "pkg" + FS + "Child.html",
    70             "<PRE>" + NL +
    70             "<PRE>" + NL +
    71             "java.lang.Object" + NL +
    71             "java.lang.Object" + NL +
    72             "  <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">pkg.Parent</A>&lt;T&gt;" + NL +
    72             "  <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">pkg.Parent</A>&lt;T&gt;" + NL +
    73             "      <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><B>pkg.Child&lt;T&gt;</B>" + NL +
    73             "      <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><STRONG>pkg.Child&lt;T&gt;</STRONG>" + NL +
    74             "</PRE>"
    74             "</PRE>"
    75          },
    75          },
    76          //Make sure "Direct Know Subclasses" omits type parameters
    76          //Make sure "Direct Know Subclasses" omits type parameters
    77         {BUG_ID + FS + "pkg" + FS + "Parent.html",
    77         {BUG_ID + FS + "pkg" + FS + "Parent.html",
    78             "<B>Direct Known Subclasses:</B> <DD><A HREF=\"../pkg/Child.html\" title=\"class in pkg\">Child</A>"
    78             "<STRONG>Direct Known Subclasses:</STRONG> <DD><A HREF=\"../pkg/Child.html\" title=\"class in pkg\">Child</A>"
    79         },
    79         },
    80         //Make sure "Specified By" has substituted type parameters.
    80         //Make sure "Specified By" has substituted type parameters.
    81         {BUG_ID + FS + "pkg" + FS + "Child.html",
    81         {BUG_ID + FS + "pkg" + FS + "Child.html",
    82             "<B>Specified by:</B><DD><CODE><A HREF=\"../pkg/Interface.html#method()\">method</A></CODE> in interface <CODE><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A>&lt;<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>&gt;</CODE>"
    82             "<STRONG>Specified by:</STRONG><DD><CODE><A HREF=\"../pkg/Interface.html#method()\">method</A></CODE> in interface <CODE><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A>&lt;<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>&gt;</CODE>"
    83          },
    83          },
    84         //Make sure "Overrides" has substituted type parameters.
    84         //Make sure "Overrides" has substituted type parameters.
    85         {BUG_ID + FS + "pkg" + FS + "Child.html",
    85         {BUG_ID + FS + "pkg" + FS + "Child.html",
    86             "<B>Overrides:</B><DD><CODE><A HREF=\"../pkg/Parent.html#method()\">method</A></CODE> in class <CODE><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">Parent</A>&lt;<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>&gt;</CODE>"
    86             "<STRONG>Overrides:</STRONG><DD><CODE><A HREF=\"../pkg/Parent.html#method()\">method</A></CODE> in class <CODE><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">Parent</A>&lt;<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>&gt;</CODE>"
    87          },
    87          },
    88     };
    88     };
    89     private static final String[][] NEGATED_TEST = {
    89     private static final String[][] NEGATED_TEST = {
    90         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    90         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    91             "public int <B>method</B>()"},
    91             "public int <STRONG>method</STRONG>()"},
    92         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    92         {BUG_ID + FS + "pkg" + FS + "Interface.html",
    93             "public static final int <B>field</B>"},
    93             "public static final int <STRONG>field</STRONG>"},
    94     };
    94     };
    95 
    95 
    96     /**
    96     /**
    97      * The entry point of the test.
    97      * The entry point of the test.
    98      * @param args the array of command line arguments.
    98      * @param args the array of command line arguments.