use of com.evolveum.midpoint.testing.story.sysperf.TestSystemPerformance.TARGET_DIR in project midpoint by Evolveum.
the class SourcesConfiguration method generateDummyTestResources.
private List<DummyTestResource> generateDummyTestResources() {
List<DummyTestResource> resources = new ArrayList<>();
for (int i = 0; i < numberOfResources; i++) {
boolean primary = i == 0;
String oid = UUID.randomUUID().toString();
String resourceDefinitionFile = createResourceDefinition(i, oid, primary);
resources.add(new DummyTestResource(TARGET_DIR, resourceDefinitionFile, oid, getResourceInstance(i), controller -> {
if (primary) {
createAttributes(controller, A_SINGLE_NAME, singleValuedMappings, false);
controller.addAttrDef(controller.getDummyResource().getAccountObjectClass(), A_ROLE, String.class, false, true);
}
createAttributes(controller, A_MULTI_NAME, multiValuedMappings, true);
}));
}
return resources;
}
Aggregations