test/langtools/jdk/javadoc/doclet/testClassLinks/TestClassLinks.java
changeset 48654 36f58bd6269f
parent 47284 355349babaf4
child 49139 771616d26ca1
equal deleted inserted replaced
48653:89111a0e6355 48654:36f58bd6269f
     1 /*
     1 /*
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    48                 "-package",
    48                 "-package",
    49                 "p");
    49                 "p");
    50         checkExit(Exit.OK);
    50         checkExit(Exit.OK);
    51 
    51 
    52         checkOutput("p/C1.html", true,
    52         checkOutput("p/C1.html", true,
    53                 "<code><a href=\"../p/C2.html\" title=\"class in p\">C2</a></code>",
    53                 "<code><a href=\"C2.html\" title=\"class in p\">C2</a></code>",
    54                 "<code><span class=\"memberNameLink\"><a href=\"../p/C1.html#C1--\">C1</a></span>()</code>");
    54                 "<code><span class=\"memberNameLink\"><a href=\"#C1--\">C1</a></span>()</code>");
    55 
    55 
    56         checkOutput("p/C2.html", true,
    56         checkOutput("p/C2.html", true,
    57                 "<code><a href=\"../p/C3.html\" title=\"class in p\">C3</a></code>",
    57                 "<code><a href=\"C3.html\" title=\"class in p\">C3</a></code>",
    58                 "<code><span class=\"memberNameLink\"><a href=\"../p/C2.html#C2--\">C2</a></span>()</code>");
    58                 "<code><span class=\"memberNameLink\"><a href=\"#C2--\">C2</a></span>()</code>");
    59 
    59 
    60         checkOutput("p/C3.html", true,
    60         checkOutput("p/C3.html", true,
    61                 "<code><a href=\"../p/I1.html\" title=\"interface in p\">I1</a></code>, "
    61                 "<code><a href=\"I1.html\" title=\"interface in p\">I1</a></code>, "
    62                 + "<code><a href=\"../p/I12.html\" title=\"interface in p\">I12</a></code>, "
    62                 + "<code><a href=\"I12.html\" title=\"interface in p\">I12</a></code>, "
    63                 + "<code><a href=\"../p/I2.html\" title=\"interface in p\">I2</a></code>, "
    63                 + "<code><a href=\"I2.html\" title=\"interface in p\">I2</a></code>, "
    64                 + "<code><a href=\"../p/IT1.html\" title=\"interface in p\">IT1</a>&lt;T&gt;</code>, "
    64                 + "<code><a href=\"IT1.html\" title=\"interface in p\">IT1</a>&lt;T&gt;</code>, "
    65                 + "<code><a href=\"../p/IT2.html\" title=\"interface in p\">IT2</a>&lt;java.lang.String&gt;</code>",
    65                 + "<code><a href=\"IT2.html\" title=\"interface in p\">IT2</a>&lt;java.lang.String&gt;</code>",
    66                 "<code><span class=\"memberNameLink\"><a href=\"../p/C3.html#C3--\">C3</a></span>()</code>");
    66                 "<code><span class=\"memberNameLink\"><a href=\"#C3--\">C3</a></span>()</code>");
    67 
    67 
    68         checkOutput("p/I1.html", true,
    68         checkOutput("p/I1.html", true,
    69                 "<code><a href=\"../p/C3.html\" title=\"class in p\">C3</a></code>",
    69                 "<code><a href=\"C3.html\" title=\"class in p\">C3</a></code>",
    70                 "<code><a href=\"../p/I12.html\" title=\"interface in p\">I12</a></code>");
    70                 "<code><a href=\"I12.html\" title=\"interface in p\">I12</a></code>");
    71 
    71 
    72         checkOutput("p/I2.html", true,
    72         checkOutput("p/I2.html", true,
    73                 "<code><a href=\"../p/C3.html\" title=\"class in p\">C3</a></code>",
    73                 "<code><a href=\"C3.html\" title=\"class in p\">C3</a></code>",
    74                 "<code><a href=\"../p/I12.html\" title=\"interface in p\">I12</a></code>");
    74                 "<code><a href=\"I12.html\" title=\"interface in p\">I12</a></code>");
    75 
    75 
    76         checkOutput("p/I12.html", true,
    76         checkOutput("p/I12.html", true,
    77                 "<code><a href=\"../p/C3.html\" title=\"class in p\">C3</a></code>",
    77                 "<code><a href=\"C3.html\" title=\"class in p\">C3</a></code>",
    78                 "<code><a href=\"../p/I1.html\" title=\"interface in p\">I1</a></code>, <code><a href=\"../p/I2.html\" title=\"interface in p\">I2</a></code>");
    78                 "<code><a href=\"I1.html\" title=\"interface in p\">I1</a></code>, <code><a href=\"I2.html\" title=\"interface in p\">I2</a></code>");
    79 
    79 
    80         checkOutput("p/IT1.html", true,
    80         checkOutput("p/IT1.html", true,
    81                 "<code><a href=\"../p/C3.html\" title=\"class in p\">C3</a></code>");
    81                 "<code><a href=\"C3.html\" title=\"class in p\">C3</a></code>");
    82 
    82 
    83         checkOutput("p/IT2.html", true,
    83         checkOutput("p/IT2.html", true,
    84                 "code><a href=\"../p/C3.html\" title=\"class in p\">C3</a></code>");
    84                 "code><a href=\"C3.html\" title=\"class in p\">C3</a></code>");
    85 
    85 
    86     }
    86     }
    87 
    87 
    88 }
    88 }