use of com.evolveum.icf.dummy.resource.DummyResource in project midpoint by Evolveum.
the class AbstractModelIntegrationTest method assertDummyGroupMember.
protected void assertDummyGroupMember(String dummyInstanceName, String dummyGroupName, String accountId) throws ConnectException, FileNotFoundException, SchemaViolationException, ConflictException {
DummyResource dummyResource = DummyResource.getInstance(dummyInstanceName);
DummyGroup group = dummyResource.getGroupByName(dummyGroupName);
assertNotNull("No dummy group " + dummyGroupName, group);
IntegrationTestTools.assertGroupMember(group, accountId);
}
use of com.evolveum.icf.dummy.resource.DummyResource in project midpoint by Evolveum.
the class TestInbounds method test000Sanity.
@Test
public void test000Sanity() throws Exception {
// GIVEN
Task task = getTestTask();
// WHEN
when();
OperationResult testResult = modelService.testResource(RESOURCE_DUMMY_ORANGE_OID, task);
// THEN
then();
TestUtil.assertSuccess("Test orange resource", testResult);
DummyResource dummyResourceOrange = getDummyResource(RESOURCE_DUMMY_ORANGE_NAME);
assertEquals("Wrong ORANGE useless string", IntegrationTestTools.CONST_USELESS, dummyResourceOrange.getUselessString());
}
use of com.evolveum.icf.dummy.resource.DummyResource in project midpoint by Evolveum.
the class AbstractModelIntegrationTest method assertNoDummyGroupMember.
protected void assertNoDummyGroupMember(String dummyInstanceName, String dummyGroupName, String accountId) throws ConnectException, FileNotFoundException, SchemaViolationException, ConflictException {
DummyResource dummyResource = DummyResource.getInstance(dummyInstanceName);
DummyGroup group = dummyResource.getGroupByName(dummyGroupName);
IntegrationTestTools.assertNoGroupMember(group, accountId);
}
use of com.evolveum.icf.dummy.resource.DummyResource in project midpoint by Evolveum.
the class TestNotifyChange method initSystem.
@Override
public void initSystem(Task initTask, OperationResult initResult) throws Exception {
super.initSystem(initTask, initResult);
// Resources
DummyResourceContoller dummyResourceCtlGrouper = DummyResourceContoller.create(RESOURCE_GROUPER_ID, resourceDummyGrouper);
DummyResource dummyResourceGrouper = dummyResourceCtlGrouper.getDummyResource();
dummyResourceGrouper.setSyncStyle(DummySyncStyle.SMART);
dummyResourceGrouper.populateWithDefaultSchema();
resourceDummyGrouper = importAndGetObjectFromFile(ResourceType.class, RESOURCE_GROUPER_FILE, RESOURCE_GROUPER_OID, initTask, initResult);
dummyResourceCtlGrouper.setResource(resourceDummyGrouper);
}
Aggregations