use of com.sun.identity.entitlement.ResourceSearchIndexes in project OpenAM by OpenRock.
the class ResourceNameSplitTest method testPath.
@Test
public boolean testPath() throws Exception {
ResourceNameSplitter splitter = new ResourceNameSplitter();
Map<String, Set<String>> map = parseResource("resourceNameSplitURI");
for (String k : map.keySet()) {
Set<String> set = map.get(k);
ResourceSearchIndexes comp = splitter.getIndexes(k, null);
Set<String> results = comp.getPathIndexes();
if (!results.equals(set)) {
String msg = "ResourceNameSplitTest.testPath: " + k + " failed.";
UnittestLog.logError(msg);
throw new Exception(msg);
}
}
return true;
}
Aggregations