test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java

Wed, 27 Apr 2016 01:34:52 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:34:52 +0800
changeset 0
959103a6100f
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/
changeset: 2573:53ca196be1ae
tag: jdk8u25-b17

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 /*
aoqi@0 27 * @test
aoqi@0 28 * @bug 6786690 6820360 8025633 8026567
aoqi@0 29 * @summary This test verifies the nesting of definition list tags.
aoqi@0 30 * @author Bhavesh Patel
aoqi@0 31 * @library ../lib/
aoqi@0 32 * @build JavadocTester TestHtmlDefinitionListTag
aoqi@0 33 * @run main TestHtmlDefinitionListTag
aoqi@0 34 */
aoqi@0 35
aoqi@0 36 public class TestHtmlDefinitionListTag extends JavadocTester {
aoqi@0 37
aoqi@0 38 private static final String BUG_ID = "6786690-6820360";
aoqi@0 39
aoqi@0 40 // Test common to all runs of javadoc. The class signature should print
aoqi@0 41 // properly enclosed definition list tags and the Annotation Type
aoqi@0 42 // Optional Element should print properly nested definition list tags
aoqi@0 43 // for default value.
aoqi@0 44 private static final String[][] TEST_ALL = {
aoqi@0 45 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<pre>public class " +
aoqi@0 46 "<span class=\"typeNameLabel\">C1</span>" + NL +
aoqi@0 47 "extends java.lang.Object" + NL + "implements java.io.Serializable</pre>"},
aoqi@0 48 {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl>" + NL +
aoqi@0 49 "<dt>Default:</dt>" + NL + "<dd>true</dd>" + NL +
aoqi@0 50 "</dl>"}};
aoqi@0 51
aoqi@0 52 // Test for normal run of javadoc in which various ClassDocs and
aoqi@0 53 // serialized form should have properly nested definition list tags
aoqi@0 54 // enclosing comments, tags and deprecated information.
aoqi@0 55 private static final String[][] TEST_CMNT_DEPR = {
aoqi@0 56 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL +
aoqi@0 57 "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
aoqi@0 58 "<dd>JDK1.0</dd>" + NL + "</dl>"},
aoqi@0 59 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
aoqi@0 60 "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL +
aoqi@0 61 "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\"><code>" +
aoqi@0 62 "C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" +
aoqi@0 63 "Serialized Form</a></dd>" + NL + "</dl>"},
aoqi@0 64 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
aoqi@0 65 "<dd>1.4</dd>" + NL +
aoqi@0 66 "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd>" +
aoqi@0 67 "<a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 68 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
aoqi@0 69 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>"+ NL + "<dt><span class=\"paramLabel\">Parameters:</span></dt>" + NL + "<dd><code>title" +
aoqi@0 70 "</code> - the title</dd>" + NL + "<dd><code>test</code> - boolean value" +
aoqi@0 71 "</dd>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL +
aoqi@0 72 "<dd><code>java.lang.IllegalArgumentException</code> - if the " +
aoqi@0 73 "<code>owner</code>'s" + NL +
aoqi@0 74 " <code>GraphicsConfiguration</code> is not from a screen " +
aoqi@0 75 "device</dd>" + NL + "<dd><code>HeadlessException</code></dd>" + NL + "</dl>"},
aoqi@0 76 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:</span></dt>" + NL + "<dd><code>undecorated" +
aoqi@0 77 "</code> - <code>true</code> if no decorations are" + NL +
aoqi@0 78 " to be enabled;" + NL + " <code>false</code> " +
aoqi@0 79 "if decorations are to be enabled.</dd>" + NL + "<dt><span class=\"simpleTagLabel\">Since:" +
aoqi@0 80 "</span></dt>" + NL + "<dd>1.4</dd>" + NL +
aoqi@0 81 "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd>" +
aoqi@0 82 "<a href=\"../pkg1/C1.html#readObject--\"><code>readObject()" +
aoqi@0 83 "</code></a></dd>" + NL + "</dl>"},
aoqi@0 84 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span></dt>" + NL +
aoqi@0 85 "<dd><code>java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:" +
aoqi@0 86 "</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 87 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
aoqi@0 88 {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" +
aoqi@0 89 "</span></dt>" + NL + "<dd><code>set</code> - boolean</dd>" + NL + "<dt><span class=\"simpleTagLabel\">" +
aoqi@0 90 "Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL + "</dl>"},
aoqi@0 91 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" +
aoqi@0 92 "</dt>" + NL + "<dd><code>" +
aoqi@0 93 "java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
aoqi@0 94 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 95 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
aoqi@0 96 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
aoqi@0 97 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
aoqi@0 98 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 99 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
aoqi@0 100 "<div class=\"block\">This field indicates whether the C1 is " +
aoqi@0 101 "undecorated.</div>" + NL + "&nbsp;" + NL + "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
aoqi@0 102 "<dd>1.4</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
aoqi@0 103 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 104 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
aoqi@0 105 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
aoqi@0 106 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
aoqi@0 107 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 108 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
aoqi@0 109 "<div class=\"block\">Reads the object stream.</div>" + NL +
aoqi@0 110 "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:" +
aoqi@0 111 "</span></dt>" + NL + "<dd><code><code>" +
aoqi@0 112 "IOException</code></code></dd>" + NL +
aoqi@0 113 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"},
aoqi@0 114 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
aoqi@0 115 "&nbsp;</div>" + NL +
aoqi@0 116 "<div class=\"block\">The name for this class.</div>"}};
aoqi@0 117
aoqi@0 118 // Test with -nodeprecated option. The ClassDocs should have properly nested
aoqi@0 119 // definition list tags enclosing comments and tags. The ClassDocs should not
aoqi@0 120 // display definition list for deprecated information. The serialized form
aoqi@0 121 // should display properly nested definition list tags for comments, tags
aoqi@0 122 // and deprecated information.
aoqi@0 123 private static final String[][] TEST_NODEPR = {
aoqi@0 124 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL +
aoqi@0 125 "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
aoqi@0 126 "<dd>JDK1.0</dd>" + NL + "</dl>"},
aoqi@0 127 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span>" +
aoqi@0 128 "</dt>" + NL + "<dd>JDK1.0</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:" +
aoqi@0 129 "</span></dt>" + NL + "<dd><a href=\"../pkg1/C2.html\" title=\"class in pkg1\">" +
aoqi@0 130 "<code>C2</code></a>, " + NL + "<a href=\"../serialized-form.html#pkg1.C1\">" +
aoqi@0 131 "Serialized Form</a></dd>" + NL + "</dl>"},
aoqi@0 132 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" +
aoqi@0 133 "</span></dt>" + NL + "<dd><code>title</code> - the title</dd>" + NL + "<dd><code>" +
aoqi@0 134 "test</code> - boolean value</dd>" + NL + "<dt><span class=\"throwsLabel\">Throws:" +
aoqi@0 135 "</span></dt>" + NL + "<dd><code>java.lang.IllegalArgumentException" +
aoqi@0 136 "</code> - if the <code>owner</code>'s" + NL + " <code>GraphicsConfiguration" +
aoqi@0 137 "</code> is not from a screen device</dd>" + NL + "<dd><code>" +
aoqi@0 138 "HeadlessException</code></dd>" + NL + "</dl>"},
aoqi@0 139 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"paramLabel\">Parameters:" +
aoqi@0 140 "</span></dt>" + NL + "<dd><code>undecorated</code> - <code>true</code>" +
aoqi@0 141 " if no decorations are" + NL + " to be enabled;" + NL +
aoqi@0 142 " <code>false</code> if decorations are to be enabled." +
aoqi@0 143 "</dd>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL + "<dd>1.4</dd>" + NL +
aoqi@0 144 "<dt><span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#readObject--\">" +
aoqi@0 145 "<code>readObject()</code></a></dd>" + NL + "</dl>"},
aoqi@0 146 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" +
aoqi@0 147 "</dt>" + NL + "<dd><code>java.io.IOException</code></dd>" + NL + "<dt>" +
aoqi@0 148 "<span class=\"seeLabel\">See Also:</span></dt>" + NL + "<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 149 "<code>setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
aoqi@0 150 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:</span>" +
aoqi@0 151 "</dt>" + NL + "<dd><code>" +
aoqi@0 152 "java.io.IOException</code></dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
aoqi@0 153 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 154 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
aoqi@0 155 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
aoqi@0 156 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
aoqi@0 157 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 158 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
aoqi@0 159 "<div class=\"block\">This field indicates whether the C1 is " +
aoqi@0 160 "undecorated.</div>" + NL + "&nbsp;" + NL + "<dl>" + NL + "<dt><span class=\"simpleTagLabel\">Since:</span></dt>" + NL +
aoqi@0 161 "<dd>1.4</dd>" + NL + "<dt><span class=\"seeLabel\">See Also:</span>" +
aoqi@0 162 "</dt>" + NL + "<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 163 "<code>C1.setUndecorated(boolean)</code></a></dd>" + NL + "</dl>"},
aoqi@0 164 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
aoqi@0 165 "&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
aoqi@0 166 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 167 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL +
aoqi@0 168 "<div class=\"block\">Reads the object stream.</div>" + NL +
aoqi@0 169 "<dl>" + NL + "<dt><span class=\"throwsLabel\">Throws:" +
aoqi@0 170 "</span></dt>" + NL + "<dd><code><code>" +
aoqi@0 171 "IOException</code></code></dd>" + NL +
aoqi@0 172 "<dd><code>java.io.IOException</code></dd>" + NL + "</dl>"},
aoqi@0 173 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">Deprecated.</span>" +
aoqi@0 174 "&nbsp;</div>" + NL + "<div class=\"block\">" +
aoqi@0 175 "The name for this class.</div>"}};
aoqi@0 176
aoqi@0 177 // Test with -nocomment and -nodeprecated options. The ClassDocs whould
aoqi@0 178 // not display definition lists for any member details.
aoqi@0 179 private static final String[][] TEST_NOCMNT_NODEPR = {
aoqi@0 180 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<pre>public&nbsp;void&nbsp;readObject()" + NL +
aoqi@0 181 " throws java.io.IOException</pre>" + NL + "</li>"},
aoqi@0 182 {BUG_ID + FS + "pkg1" + FS + "C2.html", "<pre>public&nbsp;C2()</pre>" + NL +
aoqi@0 183 "</li>"},
aoqi@0 184 {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<pre>public " +
aoqi@0 185 "static final&nbsp;<a href=\"../pkg1/C1.ModalExclusionType.html\" " +
aoqi@0 186 "title=\"enum in pkg1\">C1.ModalExclusionType</a> " +
aoqi@0 187 "APPLICATION_EXCLUDE</pre>" + NL + "</li>"},
aoqi@0 188 {BUG_ID + FS + "serialized-form.html", "<pre>boolean " +
aoqi@0 189 "undecorated</pre>" + NL + "<div class=\"block\"><span class=\"deprecatedLabel\">" +
aoqi@0 190 "Deprecated.</span>&nbsp;<span class=\"deprecationComment\">As of JDK version 1.5, replaced by" + NL +
aoqi@0 191 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" +
aoqi@0 192 "setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"},
aoqi@0 193 {BUG_ID + FS + "serialized-form.html", "<span class=\"deprecatedLabel\">" +
aoqi@0 194 "Deprecated.</span>&nbsp;<span class=\"deprecationComment\">As of JDK version" +
aoqi@0 195 " 1.5, replaced by" + NL +
aoqi@0 196 " <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
aoqi@0 197 "<code>setUndecorated(boolean)</code></a>.</span></div>" + NL + "</li>"}};
aoqi@0 198
aoqi@0 199 // Test for valid HTML generation which should not comprise of empty
aoqi@0 200 // definition list tags.
aoqi@0 201 private static final String[][] NEGATED_TEST = {
aoqi@0 202 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl></dl>"},
aoqi@0 203 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<dl>" + NL + "</dl>"},
aoqi@0 204 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl></dl>"},
aoqi@0 205 {BUG_ID + FS + "pkg1" + FS + "C1.html", "<dl>" + NL + "</dl>"},
aoqi@0 206 {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<dl></dl>"},
aoqi@0 207 {BUG_ID + FS + "pkg1" + FS + "C1.ModalExclusionType.html", "<dl>" + NL + "</dl>"},
aoqi@0 208 {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl></dl>"},
aoqi@0 209 {BUG_ID + FS + "pkg1" + FS + "C2.html", "<dl>" + NL + "</dl>"},
aoqi@0 210 {BUG_ID + FS + "pkg1" + FS + "C2.ModalType.html", "<dl></dl>"},
aoqi@0 211 {BUG_ID + FS + "pkg1" + FS + "C2.ModalType.html", "<dl>" + NL + "</dl>"},
aoqi@0 212 {BUG_ID + FS + "pkg1" + FS + "C3.html", "<dl></dl>"},
aoqi@0 213 {BUG_ID + FS + "pkg1" + FS + "C3.html", "<dl>" + NL + "</dl>"},
aoqi@0 214 {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl></dl>"},
aoqi@0 215 {BUG_ID + FS + "pkg1" + FS + "C4.html", "<dl>" + NL + "</dl>"},
aoqi@0 216 {BUG_ID + FS + "pkg1" + FS + "C5.html", "<dl></dl>"},
aoqi@0 217 {BUG_ID + FS + "pkg1" + FS + "C5.html", "<dl>" + NL + "</dl>"},
aoqi@0 218 {BUG_ID + FS + "overview-tree.html", "<dl></dl>"},
aoqi@0 219 {BUG_ID + FS + "overview-tree.html", "<dl>" + NL + "</dl>"},
aoqi@0 220 {BUG_ID + FS + "serialized-form.html", "<dl></dl>"},
aoqi@0 221 {BUG_ID + FS + "serialized-form.html", "<dl>" + NL + "</dl>"}};
aoqi@0 222
aoqi@0 223 private static final String[] ARGS1 =
aoqi@0 224 new String[] {
aoqi@0 225 "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
aoqi@0 226
aoqi@0 227 private static final String[] ARGS2 =
aoqi@0 228 new String[] {
aoqi@0 229 "-Xdoclint:none", "-d", BUG_ID, "-nocomment", "-sourcepath", SRC_DIR, "pkg1"};
aoqi@0 230
aoqi@0 231 private static final String[] ARGS3 =
aoqi@0 232 new String[] {
aoqi@0 233 "-Xdoclint:none", "-d", BUG_ID, "-nodeprecated", "-sourcepath", SRC_DIR, "pkg1"};
aoqi@0 234
aoqi@0 235 private static final String[] ARGS4 =
aoqi@0 236 new String[] {
aoqi@0 237 "-Xdoclint:none", "-d", BUG_ID, "-nocomment", "-nodeprecated", "-sourcepath", SRC_DIR, "pkg1"};
aoqi@0 238
aoqi@0 239 /**
aoqi@0 240 * The entry point of the test.
aoqi@0 241 * @param args the array of command line arguments.
aoqi@0 242 */
aoqi@0 243 public static void main(String[] args) {
aoqi@0 244 TestHtmlDefinitionListTag tester = new TestHtmlDefinitionListTag();
aoqi@0 245 tester.exactNewlineMatch = false;
aoqi@0 246 run(tester, ARGS1, TEST_ALL, NEGATED_TEST);
aoqi@0 247 run(tester, ARGS1, TEST_CMNT_DEPR, NEGATED_TEST);
aoqi@0 248 run(tester, ARGS2, TEST_ALL, NEGATED_TEST);
aoqi@0 249 run(tester, ARGS2, NO_TEST, TEST_CMNT_DEPR);
aoqi@0 250 run(tester, ARGS3, TEST_ALL, NEGATED_TEST);
aoqi@0 251 run(tester, ARGS3, TEST_NODEPR, TEST_NOCMNT_NODEPR);
aoqi@0 252 run(tester, ARGS4, TEST_ALL, NEGATED_TEST);
aoqi@0 253 run(tester, ARGS4, TEST_NOCMNT_NODEPR, TEST_CMNT_DEPR);
aoqi@0 254 tester.printSummary();
aoqi@0 255 }
aoqi@0 256
aoqi@0 257 /**
aoqi@0 258 * {@inheritDoc}
aoqi@0 259 */
aoqi@0 260 public String getBugId() {
aoqi@0 261 return BUG_ID;
aoqi@0 262 }
aoqi@0 263
aoqi@0 264 /**
aoqi@0 265 * {@inheritDoc}
aoqi@0 266 */
aoqi@0 267 public String getBugName() {
aoqi@0 268 return getClass().getName();
aoqi@0 269 }
aoqi@0 270 }

mercurial