Class ObjectClassRunner
java.lang.Object
org.identityconnectors.contract.test.ContractTestBase
org.identityconnectors.contract.test.ObjectClassRunner
- Direct Known Subclasses:
AttributeTests
,AuthenticationApiOpTests
,CreateApiOpTests
,DeleteApiOpTests
,GetApiOpTests
,MultiOpTests
,ResolveUsernameApiOpTests
,SearchApiOpTests
,SyncApiOpTests
,UpdateApiOpTests
,UpdateDeltaApiOpTests
Simple base class that will run through all the
ObjectClass
s.-
Field Summary
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade, LOG_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetObjectClassInfo
(ObjectClass objectClass) GetsObjectClassInfo
for object class returned byinvalid reference
ObjectClassRunner#getSupportedObjectClass
getOperationOptionsByOp
(ObjectClass objectClass, Class<? extends APIOperation> clazz) Gets OperationOptions suitable for specified operation.Need a schemaabstract String
Gets Test nameboolean
isObjectClassSupported
(ObjectClass objectClass) Identifier which tells if the tested ObjectClass (get byinvalid reference
ObjectClassRunner#objectClass
protected static Stream
<org.junit.jupiter.params.provider.Arguments> Return all the baseObjectClass
s.void
testContract
(ObjectClass objectClass) Main contract test entry point, it callsinvalid reference
#testRun()
protected abstract void
testRun
(ObjectClass objectClass) This method will be called configured number of timesMethods inherited from class org.identityconnectors.contract.test.ContractTestBase
dispose, getAPIOperations, getConnectorFacade, getDataProvider, init
-
Constructor Details
-
ObjectClassRunner
public ObjectClassRunner()
-
-
Method Details
-
testContract
Main contract test entry point, it callsinvalid reference
#testRun()
-
testRun
This method will be called configured number of times -
objectClasses
Return all the baseObjectClass
s. -
getSchema
Need a schema -
getTestName
Gets Test name- Returns:
- Test Name
-
getObjectClassInfo
GetsObjectClassInfo
for object class returned byinvalid reference
ObjectClassRunner#getSupportedObjectClass
- Returns:
ObjectClassInfo
-
isObjectClassSupported
Identifier which tells if the tested ObjectClass (get byinvalid reference
ObjectClassRunner#objectClass
-
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.- Overrides:
getOperationOptionsByOp
in classContractTestBase
- Returns:
OperationOptions
-