test/langtools/jdk/javadoc/doclet/testSystemPropertyTaglet/TestSystemPropertyTaglet.java
changeset 53097 2e82ca64b25d
parent 52648 12956ca371c2
child 53879 e7cb0348fa1c
equal deleted inserted replaced
53096:58154bf80f90 53097:2e82ca64b25d
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 5076751
    26  * @bug 5076751
    27  * @summary System properties documentation needed in javadocs
    27  * @summary System properties documentation needed in javadocs
    28  * @library /tools/lib ../lib
    28  * @library /tools/lib ../../lib
    29  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    29  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @build JavadocTester toolbox.ToolBox builder.ClassBuilder
    30  * @build javadoc.tester.* toolbox.ToolBox builder.ClassBuilder
    31  * @run main TestSystemPropertyTaglet
    31  * @run main TestSystemPropertyTaglet
    32  */
    32  */
    33 
    33 
    34 
    34 
    35 import java.nio.file.Path;
    35 import java.nio.file.Path;
    36 import java.nio.file.Paths;
    36 import java.nio.file.Paths;
    37 
    37 
    38 import builder.ClassBuilder;
    38 import builder.ClassBuilder;
    39 import builder.ClassBuilder.MethodBuilder;
    39 import builder.ClassBuilder.MethodBuilder;
    40 import toolbox.ToolBox;
    40 import toolbox.ToolBox;
       
    41 
       
    42 import javadoc.tester.JavadocTester;
    41 
    43 
    42 public class TestSystemPropertyTaglet extends JavadocTester {
    44 public class TestSystemPropertyTaglet extends JavadocTester {
    43 
    45 
    44     final ToolBox tb;
    46     final ToolBox tb;
    45 
    47 
    51     TestSystemPropertyTaglet() {
    53     TestSystemPropertyTaglet() {
    52         tb = new ToolBox();
    54         tb = new ToolBox();
    53     }
    55     }
    54 
    56 
    55     @Test
    57     @Test
    56     void test(Path base) throws Exception {
    58     public void test(Path base) throws Exception {
    57         Path srcDir = base.resolve("src");
    59         Path srcDir = base.resolve("src");
    58         Path outDir = base.resolve("out");
    60         Path outDir = base.resolve("out");
    59 
    61 
    60         MethodBuilder method = MethodBuilder
    62         MethodBuilder method = MethodBuilder
    61                 .parse("public void func(A a) {}")
    63                 .parse("public void func(A a) {}")
    95                 "{\"l\":\"user.name\",\"h\":\"pkg.A\",\"d\":\"System Property\","
    97                 "{\"l\":\"user.name\",\"h\":\"pkg.A\",\"d\":\"System Property\","
    96                 + "\"u\":\"pkg/A.html#user.name\"}");
    98                 + "\"u\":\"pkg/A.html#user.name\"}");
    97     }
    99     }
    98 
   100 
    99     @Test
   101     @Test
   100     void testSystemProperytWithinATag(Path base) throws Exception {
   102     public void testSystemProperytWithinATag(Path base) throws Exception {
   101         Path srcDir = base.resolve("src");
   103         Path srcDir = base.resolve("src");
   102         Path outDir = base.resolve("out");
   104         Path outDir = base.resolve("out");
   103 
   105 
   104         new ClassBuilder(tb, "pkg2.A")
   106         new ClassBuilder(tb, "pkg2.A")
   105                 .setModifiers("public", "class")
   107                 .setModifiers("public", "class")