public abstract class ObjectClassRunner extends ContractTestBase
ObjectClasss._connFacade, LOG_SEPARATOR| Constructor and Description |
|---|
ObjectClassRunner() |
| Modifier and Type | Method and Description |
|---|---|
ObjectClassInfo |
getObjectClassInfo(ObjectClass objectClass)
Gets
ObjectClassInfo for object class returned by ObjectClassRunner#getSupportedObjectClass. |
OperationOptions |
getOperationOptionsByOp(ObjectClass objectClass,
Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation.
|
Schema |
getSchema()
Need a schema
|
abstract String |
getTestName()
Gets Test name
|
boolean |
isObjectClassSupported(ObjectClass objectClass)
Identifier which tells if the tested ObjectClass (get by
ObjectClassRunner#objectClass
is supported by connector or not, supported means that the ObjectClass is included in the Schema |
protected static Stream<org.junit.jupiter.params.provider.Arguments> |
objectClasses()
Return all the base
ObjectClasss. |
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 |
protected abstract void |
testRun(ObjectClass objectClass)
This method will be called configured number of times
|
dispose, getAPIOperations, getConnectorFacade, getDataProvider, init@ParameterizedTest @MethodSource(value="objectClasses") public void testContract(ObjectClass objectClass)
#testRun() method
in configured number of iterations, runs the iteration only if the
operation is supported by the connectorprotected abstract void testRun(ObjectClass objectClass)
protected static Stream<org.junit.jupiter.params.provider.Arguments> objectClasses()
ObjectClasss.public Schema getSchema()
public abstract String getTestName()
public ObjectClassInfo getObjectClassInfo(ObjectClass objectClass)
ObjectClassInfo for object class returned by ObjectClassRunner#getSupportedObjectClass.ObjectClassInfopublic boolean isObjectClassSupported(ObjectClass objectClass)
ObjectClassRunner#objectClass
is supported by connector or not, supported means that the ObjectClass is included in the Schemapublic OperationOptions getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
getOperationOptionsByOp in class ContractTestBaseOperationOptionsCopyright © 2022. All rights reserved.