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
ObjectClasss.-
Field Summary
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade, LOG_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetObjectClassInfo(ObjectClass objectClass) GetsObjectClassInfofor object class returned by.invalid reference
ObjectClassRunner#getSupportedObjectClassgetOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz) Gets OperationOptions suitable for specified operation.Need a schemaabstract StringGets Test namebooleanisObjectClassSupported(ObjectClass objectClass) Identifier which tells if the tested ObjectClass (get byis supported by connector or not, supported means that the ObjectClass is included in the Schemainvalid reference
ObjectClassRunner#objectClassprotected static Stream<org.junit.jupiter.params.provider.Arguments> Return all the baseObjectClasss.voidtestContract(ObjectClass objectClass) Main contract test entry point, it callsmethod in configured number of iterations, runs the iteration only if the operation is supported by the connectorinvalid reference
#testRun()protected abstract voidtestRun(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 callsmethod in configured number of iterations, runs the iteration only if the operation is supported by the connectorinvalid reference
#testRun() -
testRun
This method will be called configured number of times -
objectClasses
Return all the baseObjectClasss. -
getSchema
Need a schema -
getTestName
Gets Test name- Returns:
- Test Name
-
getObjectClassInfo
GetsObjectClassInfofor object class returned by.invalid reference
ObjectClassRunner#getSupportedObjectClass- Returns:
ObjectClassInfo
-
isObjectClassSupported
Identifier which tells if the tested ObjectClass (get byis supported by connector or not, supported means that the ObjectClass is included in the Schemainvalid 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:
getOperationOptionsByOpin classContractTestBase- Returns:
OperationOptions
-