langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java
changeset 2216 b124d5c924eb
parent 2086 cca2603eab0b
child 3771 6e7b16ecca30
equal deleted inserted replaced
2215:dd8663d971d1 2216:b124d5c924eb
    39     private static final String BUG_ID = "6802694";
    39     private static final String BUG_ID = "6802694";
    40 
    40 
    41     // Test for normal run of javadoc. The serialized-form.html should
    41     // Test for normal run of javadoc. The serialized-form.html should
    42     // display the inline comments, tags and deprecation information if any.
    42     // display the inline comments, tags and deprecation information if any.
    43     private static final String[][] TEST_CMNT_DEPR = {
    43     private static final String[][] TEST_CMNT_DEPR = {
    44         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL + "<DD><DL>" + NL + NL +
    44         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL + "<DD><DL>" + NL +
    45                  "<DT><STRONG>Throws:</STRONG>" + NL + "<DD><CODE>" +
    45                  "<DT><STRONG>Throws:</STRONG></DT>" + NL + "<DD><CODE>" +
    46                  "java.io.IOException</CODE><DT><STRONG>See Also:</STRONG>" +
    46                  "java.io.IOException</CODE></DD><DT><STRONG>See Also:</STRONG>" +
    47                  "<DD><A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    47                  "</DT><DD><A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    48                  "<CODE>C1.setUndecorated(boolean)</CODE></A></DD>" + NL +
    48                  "<CODE>C1.setUndecorated(boolean)</CODE></A></DD></DL>" + NL +
    49                  "</DL>" + NL + "</DL>"},
    49                  "</DD>" + NL + "</DL>"},
    50         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL +
    50         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL +
    51                  "<DD><STRONG>Deprecated.</STRONG>&nbsp;<I>As of JDK version" +
    51                  "<DD><STRONG>Deprecated.</STRONG>&nbsp;<I>As of JDK version " +
    52                  " 1.5, replaced by" + NL +
    52                  "1.5, replaced by" + NL +
    53                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    53                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    54                  "<CODE>setUndecorated(boolean)</CODE></A>.</I>" +
    54                  "<CODE>setUndecorated(boolean)</CODE></A>.</I></DD>" +
    55                  "<DD>This field indicates whether the C1 is undecorated." + NL +
    55                  "<DD>This field indicates whether the C1 is undecorated." + NL +
    56                  "<P>" + NL + "<DT><DD>&nbsp;<DL>" + NL +
    56                  "<P>" + NL + "</DD>" + NL + "<DD>&nbsp;</DD>" + NL +
    57                  "<DT><STRONG>Since:</STRONG></DT>" + NL +
    57                  "<DD><DL>" + NL + "<DT><STRONG>Since:</STRONG></DT>" + NL +
    58                  "  <DD>1.4</DD>" + NL + "<DT><STRONG>See Also:</STRONG>" +
    58                  "  <DD>1.4</DD>" + NL + "<DT><STRONG>See Also:</STRONG>" +
    59                  "<DD><A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    59                  "</DT><DD><A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    60                  "<CODE>C1.setUndecorated(boolean)</CODE></A></DL>" + NL +
    60                  "<CODE>C1.setUndecorated(boolean)</CODE></A></DD></DL>" + NL +
    61                  "</DL>"},
    61                  "</DD>" + NL + "</DL>"},
    62         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL +
    62         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL +
    63                  "<DD><STRONG>Deprecated.</STRONG>&nbsp;<I>As of JDK version" +
    63                  "<DD><STRONG>Deprecated.</STRONG>&nbsp;<I>As of JDK version" +
    64                  " 1.5, replaced by" + NL +
    64                  " 1.5, replaced by" + NL +
    65                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    65                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    66                  "<CODE>setUndecorated(boolean)</CODE></A>.</I>" + NL + "<P>" + NL +
    66                  "<CODE>setUndecorated(boolean)</CODE></A>.</I>" + NL + "<P>" + NL +
    67                  "<DD>Reads the object stream." + NL + "<P>" + NL +
    67                  "</DD><DD>Reads the object stream." + NL + "<P>" + NL +
    68                  "<DD><DL>" + NL + NL + "<DT><STRONG>Throws:" +
    68                  "</DD>" + NL + "<DD><DL>" + NL + "<DT><STRONG>Throws:" +
    69                  "</STRONG>" + NL + "<DD><CODE><code>" +
    69                  "</STRONG></DT>" + NL + "<DD><CODE><code>" +
    70                  "IOException</code></CODE>" + NL +
    70                  "IOException</code></CODE></DD>" + NL +
    71                  "<DD><CODE>java.io.IOException</CODE></DD>" + NL +
    71                  "<DD><CODE>java.io.IOException</CODE></DD></DL>" + NL +
    72                  "</DL>" + NL + "</DL>"},
    72                  "</DD>" + NL + "</DL>"},
    73         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL +
    73         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL +
    74                  "<DD><STRONG>Deprecated.</STRONG>&nbsp;<DD>" +
    74                  "<DD><STRONG>Deprecated.</STRONG>&nbsp;</DD><DD>" +
    75                  "The name for this class." + NL + "<P>" + NL +
    75                  "The name for this class." + NL + "<P>" + NL + "</DD>" + NL +
    76                  "<DT><DD>&nbsp;<DL>" + NL + "</DL>" + NL + "</DL>"}};
    76                  "<DD>&nbsp;</DD>" + NL + "</DL>"}};
    77 
    77 
    78     // Test with -nocomment option. The serialized-form.html should
    78     // Test with -nocomment option. The serialized-form.html should
    79     // not display the inline comments and tags but should display deprecation
    79     // not display the inline comments and tags but should display deprecation
    80     // information if any.
    80     // information if any.
    81     private static final String[][] TEST_NOCMNT = {
    81     private static final String[][] TEST_NOCMNT = {
    82         {BUG_ID + FS + "serialized-form.html", "<PRE>" + NL + "boolean <STRONG>" +
    82         {BUG_ID + FS + "serialized-form.html", "<PRE>" + NL + "boolean <STRONG>" +
    83                  "undecorated</STRONG></PRE>" + NL + "<DL>" + NL + "<DD><STRONG>" +
    83                  "undecorated</STRONG></PRE>" + NL + "<DL>" + NL + "<DD><STRONG>" +
    84                  "Deprecated.</STRONG>&nbsp;<I>As of JDK version 1.5, replaced by" + NL +
    84                  "Deprecated.</STRONG>&nbsp;<I>As of JDK version 1.5, replaced by" + NL +
    85                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\"><CODE>" +
    85                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\"><CODE>" +
    86                  "setUndecorated(boolean)</CODE></A>.</I></DL>"},
    86                  "setUndecorated(boolean)</CODE></A>.</I></DD></DL>"},
    87         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL + "<DD><STRONG>" +
    87         {BUG_ID + FS + "serialized-form.html", "<DL>" + NL + "<DD><STRONG>" +
    88                  "Deprecated.</STRONG>&nbsp;<I>As of JDK version" +
    88                  "Deprecated.</STRONG>&nbsp;<I>As of JDK version" +
    89                  " 1.5, replaced by" + NL +
    89                  " 1.5, replaced by" + NL +
    90                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    90                  " <A HREF=\"pkg1/C1.html#setUndecorated(boolean)\">" +
    91                  "<CODE>setUndecorated(boolean)</CODE></A>.</I>" + NL + "<P>" + NL +
    91                  "<CODE>setUndecorated(boolean)</CODE></A>.</I>" + NL + "<P>" + NL +
    92                  "</DL>"},
    92                  "</DD></DL>"},
    93         {BUG_ID + FS + "serialized-form.html", "<PRE>" + NL + "int <STRONG>" +
    93         {BUG_ID + FS + "serialized-form.html", "<PRE>" + NL + "int <STRONG>" +
    94                  "publicKey</STRONG></PRE>" + NL + "<DL>" + NL + "<DD><STRONG>" +
    94                  "publicKey</STRONG></PRE>" + NL + "<DL>" + NL + "<DD><STRONG>" +
    95                  "Deprecated.</STRONG>&nbsp;</DL>"}};
    95                  "Deprecated.</STRONG>&nbsp;</DD></DL>"}};
    96 
    96 
    97     // Test with -nodeprecated option. The serialized-form.html should
    97     // Test with -nodeprecated option. The serialized-form.html should
    98     // ignore the -nodeprecated tag and display the deprecation info. This
    98     // ignore the -nodeprecated tag and display the deprecation info. This
    99     // test is similar to the normal run of javadoc in which inline comment, tags
    99     // test is similar to the normal run of javadoc in which inline comment, tags
   100     // and deprecation information will be displayed.
   100     // and deprecation information will be displayed.