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
public abstract class ObjectClassRunner extends ContractTestBase
Simple base class that will run through all theObjectClass
s.
-
-
Field Summary
-
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade, LOG_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ObjectClassRunner()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ObjectClassInfo
getObjectClassInfo(ObjectClass objectClass)
GetsObjectClassInfo
for object class returned byObjectClassRunner#getSupportedObjectClass
.OperationOptions
getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation.Schema
getSchema()
Need a schemaabstract String
getTestName()
Gets Test nameboolean
isObjectClassSupported(ObjectClass objectClass)
Identifier which tells if the tested ObjectClass (get byObjectClassRunner#objectClass
is supported by connector or not, supported means that the ObjectClass is included in the Schemaprotected static Stream<org.junit.jupiter.params.provider.Arguments>
objectClasses()
Return all the baseObjectClass
s.void
testContract(ObjectClass objectClass)
Main contract test entry point, it calls#testRun()
method in configured number of iterations, runs the iteration only if the operation is supported by the connectorprotected abstract void
testRun(ObjectClass objectClass)
This method will be called configured number of times-
Methods inherited from class org.identityconnectors.contract.test.ContractTestBase
dispose, getAPIOperations, getConnectorFacade, getDataProvider, init
-
-
-
-
Method Detail
-
testContract
@ParameterizedTest @MethodSource("objectClasses") public void testContract(ObjectClass objectClass)
Main contract test entry point, it calls#testRun()
method in configured number of iterations, runs the iteration only if the operation is supported by the connector
-
testRun
protected abstract void testRun(ObjectClass objectClass)
This method will be called configured number of times
-
objectClasses
protected static Stream<org.junit.jupiter.params.provider.Arguments> objectClasses()
Return all the baseObjectClass
s.
-
getSchema
public Schema getSchema()
Need a schema
-
getTestName
public abstract String getTestName()
Gets Test name- Returns:
- Test Name
-
getObjectClassInfo
public ObjectClassInfo getObjectClassInfo(ObjectClass objectClass)
GetsObjectClassInfo
for object class returned byObjectClassRunner#getSupportedObjectClass
.- Returns:
ObjectClassInfo
-
isObjectClassSupported
public boolean isObjectClassSupported(ObjectClass objectClass)
Identifier which tells if the tested ObjectClass (get byObjectClassRunner#objectClass
is supported by connector or not, supported means that the ObjectClass is included in the Schema
-
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
-
-