Class ContractTestBase
java.lang.Object
org.identityconnectors.contract.test.ContractTestBase
- Direct Known Subclasses:
DiscoverConfigurationApiOpTests
,ObjectClassRunner
,SchemaApiOpTests
,ScriptOnConnectorApiOpTests
,ScriptOnResourceApiOpTests
,TestApiOpTests
,ValidateApiOpTests
Base class of all contract tests.
- Author:
- Zdenek Louzensky
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose the test environment, do the cleanup.abstract Set
<Class<? extends APIOperation>> Ask the subclasses for theAPIOperation
.Always need aConnectorFacade
.static DataProvider
Gets preconfiguredDataProvider
instancegetOperationOptionsByOp
(ObjectClass objectClass, Class<? extends APIOperation> clazz) Gets OperationOptions suitable for specified operation.void
init()
Initialize the environment needed to run the test.
-
Field Details
-
LOG_SEPARATOR
- See Also:
-
_connFacade
-
-
Constructor Details
-
ContractTestBase
public ContractTestBase()
-
-
Method Details
-
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
Ask the subclasses for theAPIOperation
. Method returns set of required API operations that are prerequisites for running certain contract test. -
getDataProvider
Gets preconfiguredDataProvider
instance- Returns:
DataProvider
-
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
-