com.evolveum.midpoint.test
Class AbstractIntegrationTest
java.lang.Object
org.springframework.test.context.testng.AbstractTestNGSpringContextTests
com.evolveum.midpoint.test.AbstractIntegrationTest
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener
- Direct Known Subclasses:
- AbstractModelIntegrationTest
public abstract class AbstractIntegrationTest
- extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
- Author:
- Radovan Semancik
Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests |
applicationContext, logger |
Method Summary |
protected
|
addObject(Class<T> type,
PrismObject<T> object,
OperationResult result)
|
protected
|
addObject(Class<T> type,
PrismObject<T> object,
String contextDesc,
OperationResult result)
|
protected
|
addObjectFromFile(String filePath,
Class<T> type,
OperationResult parentResult)
|
protected
|
addObjectsFromFile(String filePath,
Class<T> type,
OperationResult parentResult)
|
protected PrismObject<ResourceType> |
addResourceFromFile(String filePath,
String connectorType,
OperationResult result)
|
protected void |
applySyncSettings(AccountSynchronizationSettingsType syncSettings)
|
protected void |
assumeAssignmentPolicy(AssignmentPolicyEnforcementType policy)
|
protected void |
fillInConnectorRef(PrismObject<ResourceType> resourcePrism,
String connectorType,
OperationResult result)
|
protected PrismObject<ConnectorType> |
findConnectorByType(String connectorType,
OperationResult result)
|
protected PrismObject<ConnectorType> |
findConnectorByTypeAndVersion(String connectorType,
String connectorVersion,
OperationResult result)
|
protected AssignmentPolicyEnforcementType |
getAssignmentPolicyEnforcementType(SystemConfigurationType systemConfiguration)
|
protected SystemConfigurationType |
getSystemConfiguration()
|
abstract void |
initSystem(Task initTask,
OperationResult initResult)
|
void |
initSystemConditional()
|
protected boolean |
isSystemInitialized()
|
protected
|
parseObjectType(File file)
|
protected
|
parseObjectType(File file,
Class<T> clazz)
|
protected
|
parseObjectTypeFromFile(String fileName,
Class<T> clazz)
|
protected static ObjectType |
unmarshallJaxbFromFile(String filePath)
|
protected static
|
unmarshallJaxbFromFile(String filePath,
Class<T> clazz)
|
Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests |
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMON_DIR_NAME
protected static final String COMMON_DIR_NAME
- See Also:
- Constant Field Values
DEFAULT_ACCOUNT_TYPE
protected static final String DEFAULT_ACCOUNT_TYPE
- See Also:
- Constant Field Values
OPENDJ_PEOPLE_SUFFIX
protected static final String OPENDJ_PEOPLE_SUFFIX
- See Also:
- Constant Field Values
repositoryService
@Autowired(required=true)
@Qualifier(value="cacheRepositoryService")
protected RepositoryService repositoryService
initializedClasses
protected static Set<Class> initializedClasses
taskManager
@Autowired(required=true)
protected TaskManager taskManager
protector
@Autowired(required=true)
protected Protector protector
prismContext
@Autowired(required=true)
protected PrismContext prismContext
openDJController
protected static OpenDJController openDJController
derbyController
protected static DerbyController derbyController
AbstractIntegrationTest
public AbstractIntegrationTest()
initSystemConditional
public void initSystemConditional()
throws Exception
- Throws:
Exception
isSystemInitialized
protected boolean isSystemInitialized()
initSystem
public abstract void initSystem(Task initTask,
OperationResult initResult)
throws Exception
- Throws:
Exception
addObjectFromFile
protected <T extends ObjectType> PrismObject<T> addObjectFromFile(String filePath,
Class<T> type,
OperationResult parentResult)
throws SchemaException,
ObjectAlreadyExistsException
- Throws:
SchemaException
ObjectAlreadyExistsException
addObject
protected <T extends ObjectType> void addObject(Class<T> type,
PrismObject<T> object,
OperationResult result)
throws SchemaException,
ObjectAlreadyExistsException
- Throws:
SchemaException
ObjectAlreadyExistsException
addObject
protected <T extends ObjectType> void addObject(Class<T> type,
PrismObject<T> object,
String contextDesc,
OperationResult result)
throws SchemaException,
ObjectAlreadyExistsException
- Throws:
SchemaException
ObjectAlreadyExistsException
addObjectsFromFile
protected <T extends ObjectType> List<PrismObject<T>> addObjectsFromFile(String filePath,
Class<T> type,
OperationResult parentResult)
throws SchemaException,
ObjectAlreadyExistsException
- Throws:
SchemaException
ObjectAlreadyExistsException
parseObjectTypeFromFile
protected <T extends ObjectType> T parseObjectTypeFromFile(String fileName,
Class<T> clazz)
throws SchemaException
- Throws:
SchemaException
parseObjectType
protected <T extends ObjectType> T parseObjectType(File file)
throws SchemaException
- Throws:
SchemaException
parseObjectType
protected <T extends ObjectType> T parseObjectType(File file,
Class<T> clazz)
throws SchemaException
- Throws:
SchemaException
unmarshallJaxbFromFile
protected static <T> T unmarshallJaxbFromFile(String filePath,
Class<T> clazz)
throws FileNotFoundException,
JAXBException,
SchemaException
- Throws:
FileNotFoundException
JAXBException
SchemaException
unmarshallJaxbFromFile
protected static ObjectType unmarshallJaxbFromFile(String filePath)
throws FileNotFoundException,
JAXBException,
SchemaException
- Throws:
FileNotFoundException
JAXBException
SchemaException
addResourceFromFile
protected PrismObject<ResourceType> addResourceFromFile(String filePath,
String connectorType,
OperationResult result)
throws FileNotFoundException,
JAXBException,
SchemaException,
ObjectAlreadyExistsException
- Throws:
FileNotFoundException
JAXBException
SchemaException
ObjectAlreadyExistsException
findConnectorByType
protected PrismObject<ConnectorType> findConnectorByType(String connectorType,
OperationResult result)
throws SchemaException
- Throws:
SchemaException
findConnectorByTypeAndVersion
protected PrismObject<ConnectorType> findConnectorByTypeAndVersion(String connectorType,
String connectorVersion,
OperationResult result)
throws SchemaException
- Throws:
SchemaException
fillInConnectorRef
protected void fillInConnectorRef(PrismObject<ResourceType> resourcePrism,
String connectorType,
OperationResult result)
throws SchemaException
- Throws:
SchemaException
getSystemConfiguration
protected SystemConfigurationType getSystemConfiguration()
throws ObjectNotFoundException,
SchemaException
- Throws:
ObjectNotFoundException
SchemaException
assumeAssignmentPolicy
protected void assumeAssignmentPolicy(AssignmentPolicyEnforcementType policy)
throws ObjectNotFoundException,
SchemaException,
ObjectAlreadyExistsException
- Throws:
ObjectNotFoundException
SchemaException
ObjectAlreadyExistsException
getAssignmentPolicyEnforcementType
protected AssignmentPolicyEnforcementType getAssignmentPolicyEnforcementType(SystemConfigurationType systemConfiguration)
applySyncSettings
protected void applySyncSettings(AccountSynchronizationSettingsType syncSettings)
throws ObjectNotFoundException,
SchemaException,
ObjectAlreadyExistsException
- Throws:
ObjectNotFoundException
SchemaException
ObjectAlreadyExistsException
Copyright © 2013 evolveum. All Rights Reserved.