public void testGetXWikiTagObject() throws Exception
{
List<XWikiObjectSummary> xwikiObjects = rpc.getObjects(TestConstants.TEST_PAGE_WITH_OBJECTS);
XWikiObjectSummary tagsObjectSummary = null;
for (XWikiObjectSummary xwikiObjectSummary : xwikiObjects) {
if (xwikiObjectSummary.getClassName().equals("XWiki.TagClass")) {
tagsObjectSummary = xwikiObjectSummary;
}
}
XWikiObject tagsObject = rpc.getObject(tagsObjectSummary);
TestUtils.banner("TEST: getXWikiTagObject()");
System.out.format("%s\n", tagsObject);
assertEquals(tagsObjectSummary.getPageId(), tagsObject.getPageId());
assertEquals(tagsObjectSummary.getId(), tagsObject.getId());
assertEquals(tagsObjectSummary.getClassName(), tagsObject.getClassName());
}