36 import javadoc.tester.JavadocTester; 37 38 public class TestMemberSummary extends JavadocTester { 39 40 public static void main(String... args) throws Exception { 41 TestMemberSummary tester = new TestMemberSummary(); 42 tester.runTests(); 43 } 44 45 @Test 46 public void test() { 47 javadoc("-d", "out", 48 "-private", 49 "-sourcepath", testSrc, 50 "pkg","pkg2"); 51 checkExit(Exit.OK); 52 53 checkOutput("pkg/PublicChild.html", true, 54 // Check return type in member summary. 55 "<code><a href=\"PublicChild.html\" title=\"class in pkg\">PublicChild</a></code></td>\n" 56 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\"><a href=\"#returnTypeTest()\">" 57 + "returnTypeTest</a></span>()</code>", 58 // Check return type in member detail. 59 "<div class=\"memberSignature\"><span class=\"modifiers\">public</span> " 60 + "<span class=\"returnType\"><a href=\"PublicChild.html\" title=\"class in pkg\">" 61 + "PublicChild</a></span> <span class=\"memberName\">returnTypeTest</span>()</div>", 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[])\">f</a>"); 76 } 77 } | 36 import javadoc.tester.JavadocTester; 37 38 public class TestMemberSummary extends JavadocTester { 39 40 public static void main(String... args) throws Exception { 41 TestMemberSummary tester = new TestMemberSummary(); 42 tester.runTests(); 43 } 44 45 @Test 46 public void test() { 47 javadoc("-d", "out", 48 "-private", 49 "-sourcepath", testSrc, 50 "pkg","pkg2"); 51 checkExit(Exit.OK); 52 53 checkOutput("pkg/PublicChild.html", true, 54 // Check return type in member summary. 55 "<code><a href=\"PublicChild.html\" title=\"class in pkg\">PublicChild</a></code></td>\n" 56 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\"><a href=\"#returnTypeTest()\">" 57 + "returnTypeTest</a></span>()</code>", 58 // Check return type in member detail. 59 "<div class=\"memberSignature\"><span class=\"modifiers\">public</span> " 60 + "<span class=\"returnType\"><a href=\"PublicChild.html\" title=\"class in pkg\">" 61 + "PublicChild</a></span> <span class=\"memberName\">returnTypeTest</span>()</div>", 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 "<section class=\"detail\" id=\"f(T[])\">\n" 74 + "<h3 id=\"f(java.lang.Object[])\">f</h3>\n"); 75 } 76 } |