use of com.sun.identity.entitlement.ResourceSaveIndexes in project OpenAM by OpenRock.
the class ResourceNameIndexTest method testPathParent.
@Test
public void testPathParent() throws Exception {
ResourceNameIndexGenerator gen = new ResourceNameIndexGenerator();
Map<String, Set<String>> map = parseResources("resourceNameIndexPathParent");
for (String k : map.keySet()) {
Set<String> expectedResult = map.get(k);
ResourceSaveIndexes indexes = gen.getIndexes(k);
if (!indexes.getParentPathIndexes().equals(expectedResult)) {
String msg = "ResourceNameIndexTest.testPathParent: " + k + " failed.";
UnittestLog.logError(msg);
throw new Exception(msg);
}
}
}
Aggregations