public abstract class ContractTestBase extends Object
Modifier and Type | Field and Description |
---|---|
protected ConnectorFacade |
_connFacade |
protected static String |
LOG_SEPARATOR |
static String |
OBJECTCLASS_DATAPROVIDER
Name of TestNG DataProvider to iterate over the supported ObjectClasses
|
static String |
TESTSUITE
Name of the ConfigObject
|
Constructor and Description |
---|
ContractTestBase() |
Modifier and Type | Method and Description |
---|---|
void |
BeforeClass(org.testng.ITestContext context) |
void |
dispose()
Dispose the test environment, do the cleanup.
|
abstract Set<Class<? extends APIOperation>> |
getAPIOperations()
Ask the subclasses for the
APIOperation . |
ConnectorFacade |
getConnectorFacade()
Always need a
ConnectorFacade . |
static DataProvider |
getDataProvider()
Gets preconfigured
DataProvider instance |
OperationOptions |
getOperationOptionsByOp(ObjectClass objectClass,
Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation.
|
public static final String TESTSUITE
public static final String OBJECTCLASS_DATAPROVIDER
protected static final String LOG_SEPARATOR
@Inject protected ConnectorFacade _connFacade
public void BeforeClass(org.testng.ITestContext context) throws Exception
Exception
public void dispose()
public abstract Set<Class<? extends APIOperation>> getAPIOperations()
APIOperation
.
Method returns set of required API operations that are prerequisites for
running certain contract test.public static DataProvider getDataProvider()
DataProvider
instanceDataProvider
public ConnectorFacade getConnectorFacade()
ConnectorFacade
.public OperationOptions getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
OperationOptions
Copyright © 2019. All rights reserved.