public abstract class ObjectClassRunner extends ContractTestBase
ObjectClass
s.Modifier and Type | Field and Description |
---|---|
protected DataProvider |
dataProvider |
_connFacade, LOG_SEPARATOR, OBJECTCLASS_DATAPROVIDER, TESTSUITE
Constructor and Description |
---|
ObjectClassRunner() |
Modifier and Type | Method and Description |
---|---|
Iterator<Object[]> |
data(org.testng.ITestContext context)
Return all the base
ObjectClass s. |
void |
dispose()
Dispose the test environment, do the cleanup
|
ObjectClassInfo |
getObjectClassInfo(ObjectClass objectClass)
Gets
ObjectClassInfo for object class returned by ObjectClassRunner . |
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
is supported by connector or not, supported means that the ObjectClass is included in the Schema
|
void |
testContract(ObjectClass objectClass)
Main contract test entry point, it calls
testRun(ObjectClass) 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
|
BeforeClass, getAPIOperations, getConnectorFacade, getDataProvider
@Inject protected DataProvider dataProvider
public void dispose()
dispose
in class ContractTestBase
public void testContract(ObjectClass objectClass)
testRun(ObjectClass)
method
in configured number of iterations, runs the iteration only if the
operation is supported by the connectorprotected abstract void testRun(ObjectClass objectClass)
public Iterator<Object[]> data(org.testng.ITestContext context)
ObjectClass
s.public Schema getSchema()
public abstract String getTestName()
public ObjectClassInfo getObjectClassInfo(ObjectClass objectClass)
ObjectClassInfo
for object class returned by ObjectClassRunner
.ObjectClassInfo
public boolean isObjectClassSupported(ObjectClass objectClass)
public OperationOptions getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
getOperationOptionsByOp
in class ContractTestBase
OperationOptions
Copyright © 2019. All rights reserved.