public abstract class ObjectClassRunner extends ContractTestBase
ObjectClasss._connFacade| Constructor and Description |
|---|
ObjectClassRunner(ObjectClass oclass)
Base class for running
ObjectClass across a test. |
| Modifier and Type | Method and Description |
|---|---|
static List<Object[]> |
data()
Return all the base
ObjectClasss. |
void |
dispose()
Dispose the test environment, do the cleanup
|
ObjectClass |
getObjectClass()
Returns object class which is currently tested.
|
ObjectClassInfo |
getObjectClassInfo()
Gets
ObjectClassInfo for object class returned by getSupportedObjectClass(). |
OperationOptions |
getOperationOptionsByOp(Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation.
|
Schema |
getSchema()
Need a schema
|
ObjectClass |
getSupportedObjectClass()
Always returns supported object class by connector operation.
|
abstract String |
getTestName()
Gets Test name
|
void |
init()
Initialize the environment needed to run the test
|
boolean |
isObjectClassSupported()
Identifier which tells if the tested ObjectClass (get by
getObjectClass()
is supported by connector or not, supported means that the ObjectClass is included in the Schema |
void |
testContract()
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 |
abstract void |
testRun()
This method will be called configured number of times
|
getAPIOperations, getConnectorFacade, getDataProviderpublic ObjectClassRunner(ObjectClass oclass)
ObjectClass across a test.public void init()
init in class ContractTestBasepublic void dispose()
dispose in class ContractTestBasepublic void testContract()
testRun() method
in configured number of iterations, runs the iteration only if the
operation is supported by the connectorpublic abstract void testRun()
public static List<Object[]> data()
ObjectClasss.public ObjectClass getObjectClass()
public ObjectClass getSupportedObjectClass()
public Schema getSchema()
public abstract String getTestName()
public ObjectClassInfo getObjectClassInfo()
ObjectClassInfo for object class returned by getSupportedObjectClass().ObjectClassInfopublic boolean isObjectClassSupported()
getObjectClass()
is supported by connector or not, supported means that the ObjectClass is included in the Schemapublic OperationOptions getOperationOptionsByOp(Class<? extends APIOperation> clazz)
getOperationOptionsByOp in class ContractTestBaseOperationOptionsCopyright © 2013. All Rights Reserved.