ViewHelper { public String href(String id) { if(id != null && id.toLowerCase().matches("^https?: { return id; } return String.format("#%s",id); }  String sectionHeaderText(int section, int subsection, FunctionDocumentation functionDocumentation); String sectionAnchor(int section, int subsection); String sectionNumber(int section, int subsection); String href(String id); String href(ItemDocumentation itemDocumentation); String href(ItemDocumentationSupport ids); String itemAnchor(ItemDocumentation itemDocumentation); String memberText(GroupDocumentation g, GroupMember m); String summarize(BaseDocumentation doc, int length, String elideText);  }
@Test public void testHrefStringArgument() { assertEquals("#null",vh.href((String)null)); assertEquals("#xyz", vh.href("xyz")); assertEquals("http: assertEquals("hTtp: assertEquals("https: assertEquals("HTTPS: }
@Test public void testHrefItemDocumentationArgument() { assertEquals("#item-" + doc.getId(), vh.href(doc)); }
@Test public void testHrefItemDocumentationSupportArgument() { ItemDocumentationSupport ids = new ItemDocumentationSupport(); ids.setItemDocumentation(doc); assertEquals("#item-" + doc.getId(), vh.href(ids)); }