37 import javadoc.tester.JavadocTester; 38 39 public class TestMemberSummary extends JavadocTester { 40 41 public static void main(String... args) throws Exception { 42 TestMemberSummary tester = new TestMemberSummary(); 43 tester.runTests(); 44 } 45 46 @Test 47 public void test() { 48 javadoc("-d", "out", 49 "-private", 50 "-sourcepath", testSrc, 51 "pkg","pkg2"); 52 checkExit(Exit.OK); 53 54 checkOutput("pkg/PublicChild.html", true, 55 // Check return type in member summary. 56 "<code><a href=\"PublicChild.html\" title=\"class in pkg\">PublicChild</a></code></td>\n" 57 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\"><a href=\"#returnTypeTest()\">" 58 + "returnTypeTest</a></span>()</code>", 59 // Check return type in member detail. 60 "<pre class=\"methodSignature\">public <a href=\"PublicChild.html\" title=\"class in pkg\">" 61 + "PublicChild</a> returnTypeTest()</pre>", 62 "<th class=\"colConstructorName\" scope=\"row\"><code><span class=\"memberNameLink\">" 63 + "<a href=\"#%3Cinit%3E()\">PublicChild</a></span>()</code></th>"); 64 65 checkOutput("pkg/PrivateParent.html", true, 66 "<td class=\"colFirst\"><code>private </code></td>\n" 67 + "<th class=\"colConstructorName\" scope=\"row\"><code><span class=\"memberNameLink\">" 68 + "<a href=\"#%3Cinit%3E(int)\">PrivateParent</a></span>(int i)</code>" 69 + "</th>"); 70 71 // Legacy anchor dimensions (6290760) 72 checkOutput("pkg2/A.html", true, 73 "<a id=\"f(java.lang.Object[])\">\n" 74 + "<!-- -->\n" 75 + "</a><a id=\"f(T[])\">\n" 76 + "<!-- -->\n" 77 + "</a>"); 78 } 79 } | 37 import javadoc.tester.JavadocTester; 38 39 public class TestMemberSummary extends JavadocTester { 40 41 public static void main(String... args) throws Exception { 42 TestMemberSummary tester = new TestMemberSummary(); 43 tester.runTests(); 44 } 45 46 @Test 47 public void test() { 48 javadoc("-d", "out", 49 "-private", 50 "-sourcepath", testSrc, 51 "pkg","pkg2"); 52 checkExit(Exit.OK); 53 54 checkOutput("pkg/PublicChild.html", true, 55 // Check return type in member summary. 56 "<code><a href=\"PublicChild.html\" title=\"class in pkg\">PublicChild</a></code></td>\n" 57 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\"><a href=\"#returnTypeTest()\">" 58 + "returnTypeTest</a></span>()</code>", 59 // Check return type in member detail. 60 "<div class=\"memberSignature\"><span class=\"modifiers\">public</span> " 61 + "<span class=\"returnType\"><a href=\"PublicChild.html\" title=\"class in pkg\">" 62 + "PublicChild</a></span> <span class=\"memberName\">returnTypeTest</span>()</div>", 63 "<th class=\"colConstructorName\" scope=\"row\"><code><span class=\"memberNameLink\">" 64 + "<a href=\"#%3Cinit%3E()\">PublicChild</a></span>()</code></th>"); 65 66 checkOutput("pkg/PrivateParent.html", true, 67 "<td class=\"colFirst\"><code>private </code></td>\n" 68 + "<th class=\"colConstructorName\" scope=\"row\"><code><span class=\"memberNameLink\">" 69 + "<a href=\"#%3Cinit%3E(int)\">PrivateParent</a></span>(int i)</code>" 70 + "</th>"); 71 72 // Legacy anchor dimensions (6290760) 73 checkOutput("pkg2/A.html", true, 74 "<a id=\"f(java.lang.Object[])\">\n" 75 + "<!-- -->\n" 76 + "</a><a id=\"f(T[])\">\n" 77 + "<!-- -->\n" 78 + "</a>"); 79 } 80 } |