public void testGetObjectType() { DataCollection allItems = getDefaultCollection(); int count = 0; while (allItems.next()) { ObjectType type = allItems.getObjectType(); assertEquals("Somehow failed to retrieve correct object type.", getDefaultObjectType(), type); count++; } assertTrue("No data objects?", count > 0); }
public void testGetObjectType() { DataCollection allItems = getDefaultCollection(); int count = 0; while (allItems.next()) { ObjectType type = allItems.getObjectType(); s_log.info("Type: " + type.getQualifiedName()); assertEquals("Somehow failed to retrieve a Node?", "Node", type.getName()); count++; } assertTrue("No data objects?", count > 0); }