Class ContractTestBase
- java.lang.Object
-
- org.identityconnectors.contract.test.ContractTestBase
-
- Direct Known Subclasses:
DiscoverConfigurationApiOpTests
,ObjectClassRunner
,SchemaApiOpTests
,ScriptOnConnectorApiOpTests
,ScriptOnResourceApiOpTests
,TestApiOpTests
,ValidateApiOpTests
public abstract class ContractTestBase extends Object
Base class of all contract tests.- Author:
- Zdenek Louzensky
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectorFacade
_connFacade
protected static String
LOG_SEPARATOR
-
Constructor Summary
Constructors Constructor Description ContractTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose the test environment, do the cleanup.abstract Set<Class<? extends APIOperation>>
getAPIOperations()
Ask the subclasses for theAPIOperation
.ConnectorFacade
getConnectorFacade()
Always need aConnectorFacade
.static DataProvider
getDataProvider()
Gets preconfiguredDataProvider
instanceOperationOptions
getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation.void
init()
Initialize the environment needed to run the test.
-
-
-
Field Detail
-
LOG_SEPARATOR
protected static final String LOG_SEPARATOR
- See Also:
- Constant Field Values
-
_connFacade
protected ConnectorFacade _connFacade
-
-
Method Detail
-
init
@BeforeEach public void init()
Initialize the environment needed to run the test. Called once per test method (@Before).
-
dispose
@AfterEach public void dispose()
Dispose the test environment, do the cleanup. Called once per test method (@After).
-
getAPIOperations
public abstract Set<Class<? extends APIOperation>> getAPIOperations()
Ask the subclasses for theAPIOperation
. Method returns set of required API operations that are prerequisites for running certain contract test.
-
getDataProvider
public static DataProvider getDataProvider()
Gets preconfiguredDataProvider
instance- Returns:
DataProvider
-
getConnectorFacade
public ConnectorFacade getConnectorFacade()
Always need aConnectorFacade
.
-
getOperationOptionsByOp
public OperationOptions getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation. Should be used in all tests requiring OperationOptions unless it's special case.- Returns:
OperationOptions
-
-