Category implements WikiConstants { protected String getCategoryInfo() throws WikiApiException { StringBuilder sb = new StringBuilder(1000); sb.append("ID : ").append(__getId()).append(LF); sb.append("PageID : ").append(getPageId()).append(LF); sb.append("Name : ").append(getTitle()).append(LF); sb.append("In-Links").append(LF); for (Category parent : getParents()) { sb.append(" ").append(parent.getTitle()).append(LF); } sb.append("Out-Links").append(LF); for (Category child : getChildren()) { sb.append(" ").append(child.getTitle()).append(LF); } sb.append("Pages").append(LF); for (Page page : getArticles()) { sb.append(" ").append(page.getTitle()).append(LF); } return sb.toString(); } protected  Category(Wikipedia wiki, long id); protected  Category(Wikipedia wiki, int pageID);  Category(Wikipedia wiki, String pName); int getPageId(); Set<Category> getParents(); int getNumberOfParents(); Set<Integer> getParentIDs(); Set<Category> getChildren(); int getNumberOfChildren(); Set<Integer> getChildrenIDs(); Title getTitle(); Set<Page> getArticles(); Set<Integer> getArticleIds(); int getNumberOfPages(); Iterable <Category> getDescendants(); Set<Category> getSiblings();  }
@Test public void testGetCategoryInfo() { try { Category p = new Category(wiki, "UKP"); assertNotNull(p); String categoryInfo = p.getCategoryInfo(); assertNotNull(categoryInfo); assertTrue(categoryInfo.length() > 0); } catch (WikiApiException e) { fail("A WikiApiException occurred while getting the page info: " + e.getLocalizedMessage()); } }