< prev index next >

test/langtools/jdk/javadoc/doclet/testOptions/TestOptions.java

Print this page




 184                 "-linksource",
 185                 "-javafx",
 186                 "--disable-javafx-strict-checks",
 187                 "-sourcepath", testSrc,
 188                 "-package",
 189                 "linksource");
 190         checkExit(Exit.OK);
 191 
 192         checkOutput("linksource/AnnotationTypeField.html", true,
 193                 "<pre>@Documented\npublic @interface <a href="
 194                 + "\"../src-html/linksource/AnnotationTypeField.html#line.31\">"
 195                 + "AnnotationTypeField</a></pre>",
 196                 "<h3>DEFAULT_NAME</h3>\n<pre>static final&nbsp;java.lang.String&nbsp;"
 197                 + "<a href=\"../src-html/linksource/AnnotationTypeField.html#line.32\">"
 198                 + "DEFAULT_NAME</a></pre>",
 199                 "<h3>name</h3>\n<pre>java.lang.String&nbsp;<a href="
 200                 + "\"../src-html/linksource/AnnotationTypeField.html#line.34\">name</a></pre>");
 201 
 202         checkOutput("src-html/linksource/AnnotationTypeField.html", true,
 203                 "<title>Source code</title>",
 204                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">"
 205                 + "@Documented public @interface AnnotationTypeField {</a>");
 206 
 207         checkOutput("linksource/Properties.html", true,
 208                 "<pre>public class <a href=\"../src-html/linksource/Properties.html#line.29\">"
 209                 + "Properties</a>",
 210                 "<pre>public&nbsp;java.lang.Object <a href="
 211                 + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a></pre>",
 212                 "<pre class=\"methodSignature\">public&nbsp;java.lang.Object&nbsp;<a href="
 213                 + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a>()</pre>");
 214 
 215         checkOutput("src-html/linksource/Properties.html", true,
 216                 "<title>Source code</title>",
 217                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
 218                 + "public Object someProperty() {</a>");
 219 
 220         checkOutput("linksource/SomeClass.html", true,
 221                 "<pre>public class <a href=\"../src-html/linksource/SomeClass.html#line.29\">"
 222                 + "SomeClass</a>\nextends java.lang.Object</pre>",
 223                 "<pre>public&nbsp;int <a href=\"../src-html/linksource/SomeClass.html#line.31\">"
 224                 + "field</a></pre>",
 225                 "<pre>public&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.33\">"
 226                 + "SomeClass</a>()</pre>",
 227                 "<pre class=\"methodSignature\">public&nbsp;int&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.36\">"
 228                 + "method</a>()</pre>");
 229 
 230         checkOutput("src-html/linksource/SomeClass.html", true,
 231                 "<title>Source code</title>",
 232                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">"
 233                 + "public class SomeClass {</a>",
 234                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
 235                 + "public int field;</a>",
 236                 "<span class=\"sourceLineNo\">033</span><a id=\"line.33\">    "
 237                 + "public SomeClass() {</a>",
 238                 "<span class=\"sourceLineNo\">036</span><a id=\"line.36\">    "
 239                 + "public int method() {</a>");
 240 
 241         checkOutput("linksource/SomeEnum.html", true,
 242                 "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
 243                 + "title=\"enum in linksource\">SomeEnum</a> <a href="
 244                 + "\"../src-html/linksource/SomeEnum.html#line.29\">VALUE1</a></pre>",
 245                 "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
 246                 + "title=\"enum in linksource\">SomeEnum</a> <a href="
 247                 + "\"../src-html/linksource/SomeEnum.html#line.30\">VALUE2</a></pre>");
 248 
 249         checkOutput("src-html/linksource/SomeEnum.html", true,
 250                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">    VALUE1,</a>",
 251                 "<span class=\"sourceLineNo\">030</span><a id=\"line.30\">    VALUE2</a>");
 252     }
 253 
 254     @Test
 255     public void testNoQualifier() {
 256         javadoc("-d", "out-10",
 257                 "-noqualifier", "pkg",
 258                 "-sourcepath", testSrc,
 259                 "pkg", "deprecated");
 260         checkExit(Exit.OK);
 261 
 262         checkOutput("pkg/Foo.html", true,
 263                 "<li>Foo</li>");
 264         checkOutput("deprecated/Foo.html", true,
 265                 "<li>deprecated.Foo</li>");
 266 
 267         javadoc("-d", "out-10a",
 268                 "-noqualifier", "all",
 269                 "-sourcepath", testSrc,
 270                 "pkg", "deprecated");
 271         checkExit(Exit.OK);


 184                 "-linksource",
 185                 "-javafx",
 186                 "--disable-javafx-strict-checks",
 187                 "-sourcepath", testSrc,
 188                 "-package",
 189                 "linksource");
 190         checkExit(Exit.OK);
 191 
 192         checkOutput("linksource/AnnotationTypeField.html", true,
 193                 "<pre>@Documented\npublic @interface <a href="
 194                 + "\"../src-html/linksource/AnnotationTypeField.html#line.31\">"
 195                 + "AnnotationTypeField</a></pre>",
 196                 "<h3>DEFAULT_NAME</h3>\n<pre>static final&nbsp;java.lang.String&nbsp;"
 197                 + "<a href=\"../src-html/linksource/AnnotationTypeField.html#line.32\">"
 198                 + "DEFAULT_NAME</a></pre>",
 199                 "<h3>name</h3>\n<pre>java.lang.String&nbsp;<a href="
 200                 + "\"../src-html/linksource/AnnotationTypeField.html#line.34\">name</a></pre>");
 201 
 202         checkOutput("src-html/linksource/AnnotationTypeField.html", true,
 203                 "<title>Source code</title>",
 204                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">"
 205                 + "@Documented public @interface AnnotationTypeField {</a>");
 206 
 207         checkOutput("linksource/Properties.html", true,
 208                 "<pre>public class <a href=\"../src-html/linksource/Properties.html#line.29\">"
 209                 + "Properties</a>",
 210                 "<pre>public&nbsp;java.lang.Object <a href="
 211                 + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a></pre>",
 212                 "<pre>public&nbsp;java.lang.Object&nbsp;<a href="
 213                 + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a>()</pre>");
 214 
 215         checkOutput("src-html/linksource/Properties.html", true,
 216                 "<title>Source code</title>",
 217                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
 218                 + "public Object someProperty() {</a>");
 219 
 220         checkOutput("linksource/SomeClass.html", true,
 221                 "<pre>public class <a href=\"../src-html/linksource/SomeClass.html#line.29\">"
 222                 + "SomeClass</a>\nextends java.lang.Object</pre>",
 223                 "<pre>public&nbsp;int <a href=\"../src-html/linksource/SomeClass.html#line.31\">"
 224                 + "field</a></pre>",
 225                 "<pre>public&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.33\">"
 226                 + "SomeClass</a>()</pre>",
 227                 "<pre>public&nbsp;int&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.36\">"
 228                 + "method</a>()</pre>");
 229 
 230         checkOutput("src-html/linksource/SomeClass.html", true,
 231                 "<title>Source code</title>",
 232                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">"
 233                 + "public class SomeClass {</a>",
 234                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
 235                 + "public int field;</a>",
 236                 "<span class=\"sourceLineNo\">033</span><a id=\"line.33\">    "
 237                 + "public SomeClass() {</a>",
 238                 "<span class=\"sourceLineNo\">036</span><a id=\"line.36\">    "
 239                 + "public int method() {</a>");
 240 
 241         checkOutput("linksource/SomeEnum.html", true,
 242                 "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
 243                 + "title=\"enum in linksource\">SomeEnum</a> <a href="
 244                 + "\"../src-html/linksource/SomeEnum.html#line.29\">VALUE1</a></pre>",
 245                 "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
 246                 + "title=\"enum in linksource\">SomeEnum</a> <a href="
 247                 + "\"../src-html/linksource/SomeEnum.html#line.30\">VALUE2</a></pre>");
 248 
 249         checkOutput("src-html/linksource/SomeEnum.html", true,
 250                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">    VALUE1,</a>",
 251                 "<span class=\"sourceLineNo\">030</span><a id=\"line.30\">    VALUE2</a>");
 252     }
 253 
 254     @Test
 255     public void testNoQualifier() {
 256         javadoc("-d", "out-10",
 257                 "-noqualifier", "pkg",
 258                 "-sourcepath", testSrc,
 259                 "pkg", "deprecated");
 260         checkExit(Exit.OK);
 261 
 262         checkOutput("pkg/Foo.html", true,
 263                 "<li>Foo</li>");
 264         checkOutput("deprecated/Foo.html", true,
 265                 "<li>deprecated.Foo</li>");
 266 
 267         javadoc("-d", "out-10a",
 268                 "-noqualifier", "all",
 269                 "-sourcepath", testSrc,
 270                 "pkg", "deprecated");
 271         checkExit(Exit.OK);
< prev index next >