public abstract class AbstractIntegrationTest
extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Modifier and Type | Field and Description |
---|---|
protected Clock |
clock |
static File |
COMMON_DIR |
static String |
COMMON_DIR_NAME |
static String |
COMMON_DIR_PATH
Deprecated.
|
protected static String |
DEFAULT_INTENT |
protected static DerbyController |
derbyController |
protected static Set<Class> |
initializedClasses |
protected org.springframework.security.authentication.encoding.LdapShaPasswordEncoder |
ldapShaPasswordEncoder |
protected static String |
OPENDJ_GROUPS_SUFFIX |
protected static String |
OPENDJ_PEOPLE_SUFFIX |
protected static OpenDJController |
openDJController |
protected PrismContext |
prismContext |
protected Protector |
protector |
protected RepositoryService |
repositoryService |
protected TaskManager |
taskManager |
Constructor and Description |
---|
AbstractIntegrationTest() |
Modifier and Type | Method and Description |
---|---|
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addBasicMetadata(PrismObject<T> object) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> |
addResourceFromFile(File file,
String connectorType,
boolean overwrite,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> |
addResourceFromFile(File file,
String connectorType,
OperationResult result) |
protected void |
applySyncSettings(Class clazz,
String oid,
QName path,
com.evolveum.midpoint.xml.ns._public.common.common_3.ProjectionPolicyType syncSettings) |
protected void |
assertAccountShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
protected void |
assertAccountShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
MatchingRule<String> nameMatchingRule,
boolean requireNormalizedIdentfiers) |
protected void |
assertAccountShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
protected void |
assertAccountShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
MatchingRule<String> matchingRule) |
protected void |
assertAccountShadowRepo(String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
protected void |
assertActivationAdministrativeStatus(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expectedStatus) |
protected void |
assertCacheHits(CachingStatistics lastStats,
CachingStatistics currentStats,
String desc,
int expectedIncrement) |
protected void |
assertCacheMisses(CachingStatistics lastStats,
CachingStatistics currentStats,
String desc,
int expectedIncrement) |
protected void |
assertConnectorCapabilitiesFetchIncrement(int expectedIncrement) |
protected void |
assertConnectorInitializationCountIncrement(int expectedIncrement) |
protected void |
assertConnectorOperationIncrement(int expectedIncrement) |
protected void |
assertConnectorSchemaParseIncrement(int expectedIncrement) |
protected void |
assertConnectorSimulatedPagingSearchIncrement(int expectedIncrement) |
protected void |
assertDummyResourceGroupMembersReadCountIncrement(String instanceName,
int expectedIncrement) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertEffectiveActivation(PrismObject<F> focus,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expected) |
protected void |
assertFilter(ObjectFilter filter,
Class<? extends ObjectFilter> expectedClass) |
protected void |
assertNoChanges(ObjectDelta<?> delta) |
protected void |
assertNoChanges(String desc,
ObjectDelta<?> delta) |
protected void |
assertObject(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object) |
protected void |
assertPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
String expectedPassword) |
protected void |
assertResourceCacheHitsIncrement(int expectedIncrement) |
protected void |
assertResourceCacheMissesIncrement(int expectedIncrement) |
protected void |
assertResourceSchemaFetchIncrement(int expectedIncrement) |
protected void |
assertResourceSchemaParseCountIncrement(int expectedIncrement) |
protected void |
assertScriptCompileIncrement(int expectedIncrement) |
protected void |
assertScriptExecutionIncrement(int expectedIncrement) |
protected void |
assertShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
protected void |
assertShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName objectClass) |
protected void |
assertShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName objectClass,
MatchingRule<String> nameMatchingRule,
boolean requireNormalizedIdentfiers) |
protected void |
assertShadowFetchOperationCountIncrement(int expectedIncrement) |
protected void |
assertShadowLockout(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
com.evolveum.midpoint.xml.ns._public.common.common_3.LockoutStatusType expectedStatus) |
protected void |
assertShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName objectClass) |
protected void |
assertShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName objectClass,
MatchingRule<String> nameMatchingRule) |
protected void |
assertShadowRepo(String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName objectClass) |
protected void |
assertShadows(int expected) |
protected void |
assertShadows(int expected,
OperationResult result) |
protected void |
assertSteadyResources() |
protected void |
assertSyncToken(String syncTaskOid,
Object expectedValue) |
protected void |
assertSyncToken(String syncTaskOid,
Object expectedValue,
OperationResult result) |
protected void |
assertSyncToken(Task task,
Object expectedValue,
OperationResult result) |
protected void |
assertUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String oid,
String name,
String fullName,
String givenName,
String familyName) |
protected void |
assertUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String oid,
String name,
String fullName,
String givenName,
String familyName,
String location) |
protected void |
assertUserLockout(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
com.evolveum.midpoint.xml.ns._public.common.common_3.LockoutStatusType expectedStatus) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertValidityStatus(PrismObject<F> focus,
com.evolveum.midpoint.xml.ns._public.common.common_3.TimeIntervalStatusType expected) |
protected void |
assumeAssignmentPolicy(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType policy) |
protected void |
assumeResourceAssigmentPolicy(String oid,
com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType policy,
boolean legalize) |
protected ObjectQuery |
createAccountShadowQuery(String identifier,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected ObjectQuery |
createAccountShadowQuerySecondaryIdentifier(String identifier,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String id) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String uid,
String name) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createShadowNameOnly(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String name) |
protected ObjectQuery |
createShadowQuerySecondaryIdentifier(ObjectClassComplexTypeDefinition rAccount,
String identifier,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected void |
deleteResourceAssigmentPolicy(String oid,
com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType policy,
boolean legalize) |
protected void |
fillInConnectorRef(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resourcePrism,
String connectorType,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
findAccountShadowByUsername(String username,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType> |
findConnectorByType(String connectorType,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType> |
findConnectorByTypeAndVersion(String connectorType,
String connectorVersion,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
findShadowByName(QName objectClass,
String name,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
findShadowByName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent,
String name,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
OperationResult result) |
protected QName |
getAccountObjectClass(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType |
getAssignmentPolicyEnforcementType(com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType systemConfiguration) |
protected RefinedAttributeDefinition |
getAttributeDefinition(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
QName objectClassName,
String attributeLocalName) |
protected QName |
getGroupObjectClass(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
protected String |
getIcfUid(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
getShadowDefinition() |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType |
getSystemConfiguration() |
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getUserDefinition() |
abstract void |
initSystem(Task initTask,
OperationResult initResult) |
void |
initSystemConditional() |
protected boolean |
isSystemInitialized() |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
parseObjectType(File file) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
parseObjectType(File file,
Class<T> clazz) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
parseObjectTypeFromFile(String fileName,
Class<T> clazz) |
protected void |
rememberConnectorCapabilitiesFetchCount() |
protected void |
rememberConnectorInitializationCount() |
protected void |
rememberConnectorOperationCount() |
protected void |
rememberConnectorSchemaParseCount() |
protected void |
rememberConnectorSimulatedPagingSearchCount() |
protected void |
rememberDummyResourceGroupMembersReadCount(String instanceName) |
protected void |
rememberResourceCacheStats() |
protected void |
rememberResourceSchemaFetchCount() |
protected void |
rememberResourceSchemaParseCount() |
protected void |
rememberScriptCompileCount() |
protected void |
rememberScriptExecutionCount() |
protected void |
rememberShadowFetchOperationCount() |
protected void |
rememberSteadyResources() |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
repoAddObject(Class<T> type,
PrismObject<T> object,
OperationResult result) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
repoAddObject(Class<T> type,
PrismObject<T> object,
String contextDesc,
OperationResult result) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
repoAddObjectFromFile(File file,
Class<T> type,
boolean metadata,
OperationResult parentResult) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
repoAddObjectFromFile(File file,
Class<T> type,
OperationResult parentResult) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
repoAddObjectFromFile(String filePath,
Class<T> type,
OperationResult parentResult) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
repoAddObjectsFromFile(File file,
Class<T> type,
OperationResult parentResult) |
protected List<PrismObject> |
repoAddObjectsFromFile(File file,
OperationResult parentResult) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
repoAddObjectsFromFile(String filePath,
Class<T> type,
OperationResult parentResult) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
repoAddShadowFromFile(File file,
OperationResult parentResult) |
protected static <T> T |
unmarshallValueFromFile(File file,
Class<T> clazz) |
protected static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType |
unmarshallValueFromFile(String filePath) |
protected static <T> T |
unmarshallValueFromFile(String filePath,
Class<T> clazz) |
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
public static final String COMMON_DIR_NAME
@Deprecated public static final String COMMON_DIR_PATH
public static final File COMMON_DIR
protected static final String DEFAULT_INTENT
protected static final String OPENDJ_PEOPLE_SUFFIX
protected static final String OPENDJ_GROUPS_SUFFIX
protected org.springframework.security.authentication.encoding.LdapShaPasswordEncoder ldapShaPasswordEncoder
@Autowired(required=true) @Qualifier(value="cacheRepositoryService") protected RepositoryService repositoryService
@Autowired(required=true) protected TaskManager taskManager
@Autowired(required=true) protected Protector protector
@Autowired(required=true) protected Clock clock
@Autowired(required=true) protected PrismContext prismContext
protected static OpenDJController openDJController
protected static DerbyController derbyController
protected boolean isSystemInitialized()
public abstract void initSystem(Task initTask, OperationResult initResult) throws Exception
Exception
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<T> repoAddObjectFromFile(String filePath, Class<T> type, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, EncryptionException, IOException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<T> repoAddObjectFromFile(File file, Class<T> type, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, EncryptionException, IOException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<T> repoAddObjectFromFile(File file, Class<T> type, boolean metadata, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, EncryptionException, IOException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> repoAddShadowFromFile(File file, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, EncryptionException, IOException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void addBasicMetadata(PrismObject<T> object)
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void repoAddObject(Class<T> type, PrismObject<T> object, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, EncryptionException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void repoAddObject(Class<T> type, PrismObject<T> object, String contextDesc, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, EncryptionException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> List<PrismObject<T>> repoAddObjectsFromFile(String filePath, Class<T> type, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, IOException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> List<PrismObject<T>> repoAddObjectsFromFile(File file, Class<T> type, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, IOException
protected List<PrismObject> repoAddObjectsFromFile(File file, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, IOException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T parseObjectTypeFromFile(String fileName, Class<T> clazz) throws SchemaException, IOException
SchemaException
IOException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T parseObjectType(File file) throws SchemaException, IOException
SchemaException
IOException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T parseObjectType(File file, Class<T> clazz) throws SchemaException, IOException
SchemaException
IOException
protected static <T> T unmarshallValueFromFile(File file, Class<T> clazz) throws IOException, JAXBException, SchemaException
IOException
JAXBException
SchemaException
protected static <T> T unmarshallValueFromFile(String filePath, Class<T> clazz) throws IOException, JAXBException, SchemaException
IOException
JAXBException
SchemaException
protected static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType unmarshallValueFromFile(String filePath) throws IOException, JAXBException, SchemaException
IOException
JAXBException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> addResourceFromFile(File file, String connectorType, OperationResult result) throws JAXBException, SchemaException, ObjectAlreadyExistsException, EncryptionException, IOException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> addResourceFromFile(File file, String connectorType, boolean overwrite, OperationResult result) throws JAXBException, SchemaException, ObjectAlreadyExistsException, EncryptionException, IOException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType> findConnectorByType(String connectorType, OperationResult result) throws SchemaException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType> findConnectorByTypeAndVersion(String connectorType, String connectorVersion, OperationResult result) throws SchemaException
SchemaException
protected void fillInConnectorRef(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resourcePrism, String connectorType, OperationResult result) throws SchemaException
SchemaException
protected com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType getSystemConfiguration() throws ObjectNotFoundException, SchemaException
protected void assumeAssignmentPolicy(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType policy) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected void assumeResourceAssigmentPolicy(String oid, com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType policy, boolean legalize) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected void deleteResourceAssigmentPolicy(String oid, com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType policy, boolean legalize) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType getAssignmentPolicyEnforcementType(com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType systemConfiguration)
protected void applySyncSettings(Class clazz, String oid, QName path, com.evolveum.midpoint.xml.ns._public.common.common_3.ProjectionPolicyType syncSettings) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected void assertNoChanges(ObjectDelta<?> delta)
protected void assertNoChanges(String desc, ObjectDelta<?> delta)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertEffectiveActivation(PrismObject<F> focus, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expected)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertValidityStatus(PrismObject<F> focus, com.evolveum.midpoint.xml.ns._public.common.common_3.TimeIntervalStatusType expected)
protected void assertShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
protected void assertObject(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object)
protected void assertUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String oid, String name, String fullName, String givenName, String familyName)
protected void assertUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String oid, String name, String fullName, String givenName, String familyName, String location)
protected void assertShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName objectClass) throws SchemaException
SchemaException
protected void assertAccountShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) throws SchemaException
SchemaException
protected void assertAccountShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, MatchingRule<String> nameMatchingRule, boolean requireNormalizedIdentfiers) throws SchemaException
SchemaException
protected QName getAccountObjectClass(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
protected QName getGroupObjectClass(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
protected void assertShadowCommon(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName objectClass, MatchingRule<String> nameMatchingRule, boolean requireNormalizedIdentfiers) throws SchemaException
SchemaException
protected void assertShadowRepo(String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName objectClass) throws ObjectNotFoundException, SchemaException
protected void assertAccountShadowRepo(String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) throws ObjectNotFoundException, SchemaException
protected void assertShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName objectClass) throws SchemaException
SchemaException
protected void assertAccountShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) throws SchemaException
SchemaException
protected void assertAccountShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, MatchingRule<String> matchingRule) throws SchemaException
SchemaException
protected void assertShadowRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName objectClass, MatchingRule<String> nameMatchingRule) throws SchemaException
SchemaException
protected String getIcfUid(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
protected void rememberResourceSchemaFetchCount()
protected void assertResourceSchemaFetchIncrement(int expectedIncrement)
protected void rememberConnectorSchemaParseCount()
protected void assertConnectorSchemaParseIncrement(int expectedIncrement)
protected void rememberConnectorCapabilitiesFetchCount()
protected void assertConnectorCapabilitiesFetchIncrement(int expectedIncrement)
protected void rememberConnectorInitializationCount()
protected void assertConnectorInitializationCountIncrement(int expectedIncrement)
protected void rememberResourceSchemaParseCount()
protected void assertResourceSchemaParseCountIncrement(int expectedIncrement)
protected void rememberScriptCompileCount()
protected void assertScriptCompileIncrement(int expectedIncrement)
protected void rememberScriptExecutionCount()
protected void assertScriptExecutionIncrement(int expectedIncrement)
protected void rememberConnectorOperationCount()
protected void assertConnectorOperationIncrement(int expectedIncrement)
protected void rememberConnectorSimulatedPagingSearchCount()
protected void assertConnectorSimulatedPagingSearchIncrement(int expectedIncrement)
protected void rememberResourceCacheStats()
protected void assertResourceCacheHitsIncrement(int expectedIncrement)
protected void assertResourceCacheMissesIncrement(int expectedIncrement)
protected void assertCacheHits(CachingStatistics lastStats, CachingStatistics currentStats, String desc, int expectedIncrement)
protected void assertCacheMisses(CachingStatistics lastStats, CachingStatistics currentStats, String desc, int expectedIncrement)
protected void assertSteadyResources()
protected void rememberSteadyResources()
protected void rememberShadowFetchOperationCount()
protected void assertShadowFetchOperationCountIncrement(int expectedIncrement)
protected void rememberDummyResourceGroupMembersReadCount(String instanceName)
protected void assertDummyResourceGroupMembersReadCountIncrement(String instanceName, int expectedIncrement)
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String id) throws SchemaException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createShadowNameOnly(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String name) throws SchemaException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String uid, String name) throws SchemaException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> findAccountShadowByUsername(String username, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> findShadowByName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent, String name, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> findShadowByName(QName objectClass, String name, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected ObjectQuery createAccountShadowQuery(String identifier, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException
SchemaException
protected ObjectQuery createAccountShadowQuerySecondaryIdentifier(String identifier, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException
SchemaException
protected ObjectQuery createShadowQuerySecondaryIdentifier(ObjectClassComplexTypeDefinition rAccount, String identifier, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException
SchemaException
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getUserDefinition()
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> getShadowDefinition()
protected RefinedAttributeDefinition getAttributeDefinition(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, QName objectClassName, String attributeLocalName) throws SchemaException
SchemaException
protected void assertPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, String expectedPassword) throws SchemaException, EncryptionException
SchemaException
EncryptionException
protected void assertFilter(ObjectFilter filter, Class<? extends ObjectFilter> expectedClass)
protected void assertSyncToken(String syncTaskOid, Object expectedValue) throws ObjectNotFoundException, SchemaException
protected void assertSyncToken(String syncTaskOid, Object expectedValue, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertSyncToken(Task task, Object expectedValue, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertShadows(int expected) throws SchemaException
SchemaException
protected void assertShadows(int expected, OperationResult result) throws SchemaException
SchemaException
protected void assertActivationAdministrativeStatus(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expectedStatus)
protected void assertShadowLockout(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, com.evolveum.midpoint.xml.ns._public.common.common_3.LockoutStatusType expectedStatus)
protected void assertUserLockout(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, com.evolveum.midpoint.xml.ns._public.common.common_3.LockoutStatusType expectedStatus)
Copyright © 2016 evolveum. All rights reserved.