TestHtmlDefinitionListTag.java revision 553
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 232N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 232N/A * This code is free software; you can redistribute it and/or modify it 232N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 232N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 232N/A * This code is distributed in the hope that it will be useful, but WITHOUT 232N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 232N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 232N/A * version 2 for more details (a copy is included in the LICENSE file that 232N/A * accompanied this code). 232N/A * You should have received a copy of the GNU General Public License version 232N/A * 2 along with this work; if not, write to the Free Software Foundation, 232N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 232N/A * @summary This test verifies the nesting of definition list tags. 232N/A * @author Bhavesh Patel 232N/A * @build TestHtmlDefinitionListTag 232N/A * @run main TestHtmlDefinitionListTag 232N/A // Test common to all runs of javadoc. The class signature should print 232N/A // properly enclosed definition list tags and the Annotation Type 232N/A // Optional Element should print properly nested definition list tags 232N/A "<STRONG>C1</STRONG>" +
NL +
"extends " +
232N/A "java.lang.Object" +
NL +
"implements " +
232N/A "java.io.Serializable</PRE>"},
232N/A "<DT><STRONG>Default:</STRONG></DT><DD>true</DD>" +
NL +
232N/A // Test for normal run of javadoc in which various ClassDocs and 232N/A // serialized form should have properly nested definition list tags 232N/A // enclosing comments, tags and deprecated information. 243N/A "<DT><STRONG>Since:</STRONG></DT>" +
NL +
243N/A " <DD>JDK1.0</DD></DL>"},
232N/A "<DT><STRONG>Since:</STRONG></DT>" +
NL +
232N/A " <DD>JDK1.0</DD>" +
NL +
"<DT><STRONG>See Also:</STRONG></DT><DD>" +
232N/A "Serialized Form</A></DD></DL>"},
232N/A "<DD><STRONG>Deprecated.</STRONG> <I>As of JDK version" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I></DD>" +
232N/A "<DD>This field indicates whether the C1 is undecorated." +
NL +
232N/A "<P>" +
NL +
"</DD>" +
NL +
"<DD><DL>" +
NL +
"<DT><STRONG>" +
232N/A "Since:</STRONG></DT>" +
NL +
" <DD>1.4</DD>" +
NL +
"<DT>" +
232N/A "<STRONG>See Also:</STRONG></DT><DD>" +
232N/A "setUndecorated(boolean)</CODE></A></DD></DL>" +
NL +
"</DD>" +
NL +
232N/A "<DD>Constructor." +
NL +
"<P>" +
NL +
"</DD>" +
NL +
232N/A "<DD><DL>" +
NL +
"<DT><STRONG>Parameters:</STRONG></DT><DD>" +
232N/A "<CODE>title</CODE> - the title</DD><DD><CODE>test</CODE>" +
232N/A " - boolean value</DD>" +
NL +
"<DT><STRONG>Throws:</STRONG></DT>" +
NL +
232N/A "<DD><CODE>java.lang.IllegalArgumentException</CODE>" +
232N/A " - if the <code>owner</code>'s" +
NL +
" <code>GraphicsConfiguration" +
232N/A "</code> is not from a screen device</DD>" +
NL +
"<DD><CODE>" +
232N/A "HeadlessException</CODE></DD></DL>" +
NL +
"</DD>" +
NL +
232N/A "</DD>" +
NL +
"<DD><DL>" +
NL +
"<DT><STRONG>Parameters:" +
232N/A "</STRONG></DT><DD><CODE>undecorated</CODE> - <code>true</code>" +
232N/A " if no decorations are" +
NL +
" to be enabled;" +
NL +
232N/A " <code>false</code> if decorations are to be enabled." +
232N/A "</DD><DT><STRONG>Since:</STRONG></DT>" +
NL +
232N/A " <DD>1.4</DD>" +
NL +
"<DT><STRONG>See Also:</STRONG></DT>" +
232N/A "readObject()</CODE></A></DD></DL>" +
NL +
"</DD>" +
NL +
232N/A "<DT><STRONG>Throws:</STRONG></DT>" +
NL +
"<DD><CODE>" +
232N/A "java.io.IOException</CODE></DD><DT><STRONG>See Also:" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A></DD></DL>" +
NL +
232N/A "<DD>No modal exclusion." +
NL +
"<P>" +
NL +
"</DD>" +
NL +
232N/A "Deprecated.</STRONG> <I>As of JDK version 1.5, replaced " +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I>" +
NL +
"<P>" +
NL +
232N/A "</DD><DD>Set visible." +
NL +
"<P>" +
NL +
"</DD>" +
NL +
232N/A "<DD><DL>" +
NL +
"<DT><STRONG>Parameters:</STRONG></DT><DD>" +
232N/A "<CODE>set</CODE> - boolean</DD><DT><STRONG>Since:</STRONG></DT>" +
NL +
232N/A " <DD>1.4</DD></DL>" +
NL +
"</DD>" +
NL +
"</DL>"},
232N/A "<DT><STRONG>Throws:</STRONG></DT>" +
NL +
"<DD><CODE>" +
232N/A "java.io.IOException</CODE></DD><DT><STRONG>See Also:</STRONG>" +
232N/A "<CODE>C1.setUndecorated(boolean)</CODE></A></DD></DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> <I>As of JDK version " +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I></DD>" +
232N/A "<DD>This field indicates whether the C1 is undecorated." +
NL +
232N/A "<DD><DL>" +
NL +
"<DT><STRONG>Since:</STRONG></DT>" +
NL +
232N/A " <DD>1.4</DD>" +
NL +
"<DT><STRONG>See Also:</STRONG>" +
232N/A "<CODE>C1.setUndecorated(boolean)</CODE></A></DD></DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> <I>As of JDK version" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I>" +
NL +
"<P>" +
NL +
232N/A "</DD><DD>Reads the object stream." +
NL +
"<P>" +
NL +
232N/A "</DD>" +
NL +
"<DD><DL>" +
NL +
"<DT><STRONG>Throws:" +
232N/A "</STRONG></DT>" +
NL +
"<DD><CODE><code>" +
232N/A "IOException</code></CODE></DD>" +
NL +
232N/A "<DD><CODE>java.io.IOException</CODE></DD></DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> </DD><DD>" +
232N/A "The name for this class." +
NL +
"<P>" +
NL +
"</DD>" +
NL +
232N/A "<DD> </DD>" +
NL +
"</DL>"}};
232N/A // Test with -nocomment option. The ClassDocs and serialized form should 232N/A // have properly nested definition list tags enclosing deprecated 232N/A // information and should not display definition lists for comments 232N/A "Deprecated.</STRONG> <I>As of JDK version 1.5, replaced by" +
NL +
232N/A "setUndecorated(boolean)</CODE></A>.</I></DD></DL>"},
232N/A "<DD><STRONG>Deprecated.</STRONG> <I>As of JDK version" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I>" +
NL +
"<P>" +
NL +
232N/A "protected <STRONG>C5</STRONG>()</PRE>" +
NL +
"<DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> </DD></DL>"},
232N/A "public void <STRONG>printInfo</STRONG>()</PRE>" +
NL +
"<DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> </DD></DL>"},
232N/A "undecorated</STRONG></PRE>" +
NL +
"<DL>" +
NL +
"<DD><STRONG>" +
232N/A "Deprecated.</STRONG> <I>As of JDK version 1.5, replaced by" +
NL +
232N/A "setUndecorated(boolean)</CODE></A>.</I></DD></DL>"},
232N/A "Deprecated.</STRONG> <I>As of JDK version" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I>" +
NL +
"<P>" +
NL +
232N/A "publicKey</STRONG></PRE>" +
NL +
"<DL>" +
NL +
"<DD><STRONG>" +
232N/A "Deprecated.</STRONG> </DD></DL>"}};
232N/A // Test with -nodeprecated option. The ClassDocs should have properly nested 232N/A // definition list tags enclosing comments and tags. The ClassDocs should not 232N/A // display definition list for deprecated information. The serialized form 232N/A // should display properly nested definition list tags for comments, tags 232N/A // and deprecated information. 243N/A "<DT><STRONG>Since:</STRONG></DT>" +
NL +
243N/A " <DD>JDK1.0</DD></DL>"},
232N/A "<DT><STRONG>Since:</STRONG></DT>" +
NL +
232N/A " <DD>JDK1.0</DD>" +
NL +
"<DT><STRONG>See Also:</STRONG></DT><DD>" +
232N/A "Serialized Form</A></DD></DL>"},
232N/A "<DD>Constructor." +
NL +
"<P>" +
NL +
"</DD>" +
NL +
232N/A "<DD><DL>" +
NL +
"<DT><STRONG>Parameters:</STRONG></DT><DD>" +
232N/A "<CODE>title</CODE> - the title</DD><DD><CODE>test</CODE>" +
232N/A " - boolean value</DD>" +
NL +
"<DT><STRONG>Throws:</STRONG></DT>" +
NL +
232N/A "<DD><CODE>java.lang.IllegalArgumentException</CODE>" +
232N/A " - if the <code>owner</code>'s" +
NL +
" <code>GraphicsConfiguration" +
232N/A "</code> is not from a screen device</DD>" +
NL +
"<DD><CODE>" +
232N/A "HeadlessException</CODE></DD></DL>" +
NL +
"</DD>" +
NL +
232N/A "</DD>" +
NL +
"<DD><DL>" +
NL +
"<DT><STRONG>Parameters:" +
232N/A "</STRONG></DT><DD><CODE>undecorated</CODE> - <code>true</code>" +
232N/A " if no decorations are" +
NL +
" to be enabled;" +
NL +
232N/A " <code>false</code> if decorations are to be enabled." +
232N/A "</DD><DT><STRONG>Since:</STRONG></DT>" +
NL +
232N/A " <DD>1.4</DD>" +
NL +
"<DT><STRONG>See Also:</STRONG></DT>" +
232N/A "readObject()</CODE></A></DD></DL>" +
NL +
"</DD>" +
NL +
232N/A "<DT><STRONG>Throws:</STRONG></DT>" +
NL +
"<DD><CODE>" +
232N/A "java.io.IOException</CODE></DD><DT><STRONG>See Also:" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A></DD></DL>" +
NL +
232N/A "<DD>No modal exclusion." +
NL +
"<P>" +
NL +
"</DD>" +
NL +
232N/A "<DT><STRONG>Throws:</STRONG></DT>" +
NL +
"<DD><CODE>" +
232N/A "java.io.IOException</CODE></DD><DT><STRONG>See Also:</STRONG>" +
232N/A "<CODE>C1.setUndecorated(boolean)</CODE></A></DD></DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> <I>As of JDK version " +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I></DD>" +
232N/A "<DD>This field indicates whether the C1 is undecorated." +
NL +
232N/A "<DD><DL>" +
NL +
"<DT><STRONG>Since:</STRONG></DT>" +
NL +
232N/A " <DD>1.4</DD>" +
NL +
"<DT><STRONG>See Also:</STRONG>" +
232N/A "<CODE>C1.setUndecorated(boolean)</CODE></A></DD></DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> <I>As of JDK version" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I>" +
NL +
"<P>" +
NL +
232N/A "</DD><DD>Reads the object stream." +
NL +
"<P>" +
NL +
232N/A "</DD>" +
NL +
"<DD><DL>" +
NL +
"<DT><STRONG>Throws:" +
232N/A "</STRONG></DT>" +
NL +
"<DD><CODE><code>" +
232N/A "IOException</code></CODE></DD>" +
NL +
232N/A "<DD><CODE>java.io.IOException</CODE></DD></DL>" +
NL +
232N/A "<DD><STRONG>Deprecated.</STRONG> </DD><DD>" +
232N/A "The name for this class." +
NL +
"<P>" +
NL +
"</DD>" +
NL +
232N/A "<DD> </DD>" +
NL +
"</DL>"}};
232N/A // Test with -nocomment and -nodeprecated options. The ClassDocs whould 232N/A // not display definition lists for any member details. The serialized 232N/A // form should display properly nested definition list tags for 232N/A // deprecated information only. 232N/A "<STRONG>readObject</STRONG>()" +
NL +
" throws" +
232N/A " java.io.IOException</PRE>" +
NL +
"<HR>"},
232N/A "C2</STRONG>()</PRE>" +
NL +
"<HR>"},
232N/A "public static final " +
232N/A "title=\"enum in pkg1\">C1.ModalExclusionType</A> <STRONG>" +
232N/A "APPLICATION_EXCLUDE</STRONG></PRE>" +
NL +
"<HR>"},
232N/A "undecorated</STRONG></PRE>" +
NL +
"<DL>" +
NL +
"<DD><STRONG>" +
232N/A "Deprecated.</STRONG> <I>As of JDK version 1.5, replaced by" +
NL +
232N/A "setUndecorated(boolean)</CODE></A>.</I></DD></DL>"},
232N/A "Deprecated.</STRONG> <I>As of JDK version" +
232N/A "<CODE>setUndecorated(boolean)</CODE></A>.</I>" +
NL +
"<P>" +
NL +
232N/A "publicKey</STRONG></PRE>" +
NL +
"<DL>" +
NL +
"<DD><STRONG>" +
232N/A "Deprecated.</STRONG> </DD></DL>"}};
232N/A // Test for valid HTML generation which should not comprise of empty 232N/A // definition list tags. 232N/A * The entry point of the test. 232N/A * @param args the array of command line arguments.