public abstract class ContractTestBase extends Object
Modifier and Type | Field and Description |
---|---|
protected ConnectorFacade |
_connFacade |
protected static String |
LOG_SEPARATOR |
Constructor and Description |
---|
ContractTestBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
init()
Initialize the environment needed to run the test.
|
protected static final String LOG_SEPARATOR
protected ConnectorFacade _connFacade
@BeforeEach public void init()
@AfterEach 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 © 2022. All rights reserved.