use of com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CredentialsCapabilityType in project midpoint by Evolveum.
the class TestUcfOpenDj method test410Capabilities.
@Test
public void test410Capabilities() throws Exception {
// GIVEN
OperationResult result = new OperationResult(contextName());
// WHEN
Collection<Object> capabilities = cc.fetchCapabilities(result);
// THEN
result.computeStatus("getCapabilities failed");
TestUtil.assertSuccess("getCapabilities failed (result)", result);
assertFalse("Empty capabilities returned", capabilities.isEmpty());
CredentialsCapabilityType capCred = CapabilityUtil.getCapability(capabilities, CredentialsCapabilityType.class);
assertNotNull("password capability not present", capCred.getPassword());
PagedSearchCapabilityType capPage = CapabilityUtil.getCapability(capabilities, PagedSearchCapabilityType.class);
assertNotNull("paged search capability not present", capPage);
}
Aggregations