public interface IDatabaseTester
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(IDatabaseConnection connection)
Deprecated.
since 2.4.4 define a user defined
setOperationListener(IOperationListener) in advance |
IDatabaseConnection |
getConnection()
Returns the test database connection.
|
IDataSet |
getDataSet()
Returns the test dataset.
|
DatabaseOperation |
getSetUpOperation()
Gets the DatabaseOperation to call when starting the test.
|
DatabaseOperation |
getTearDownOperation()
Gets the DatabaseOperation to call when ending the test.
|
void |
onSetup()
TestCases must call this method inside setUp()
|
void |
onTearDown()
TestCases must call this method inside tearDown()
|
void |
setDataSet(IDataSet dataSet)
Sets the test dataset to use.
|
void |
setOperationListener(IOperationListener operationListener) |
void |
setSchema(String schema)
Deprecated.
since 2.4.3 Should not be used anymore. Every concrete
IDatabaseTester implementation that needs a schema
has the possibility to set it somehow in the constructor |
void |
setSetUpOperation(DatabaseOperation setUpOperation)
Sets the DatabaseOperation to call when starting the test.
|
void |
setTearDownOperation(DatabaseOperation tearDownOperation)
Sets the DatabaseOperation to call when ending the test.
|
@Deprecated void closeConnection(IDatabaseConnection connection) throws Exception
setOperationListener(IOperationListener) in advanceExceptionIDatabaseConnection getConnection() throws Exception
ExceptionIDataSet getDataSet()
DatabaseOperation getSetUpOperation()
DatabaseOperation getTearDownOperation()
void setDataSet(IDataSet dataSet)
@Deprecated void setSchema(String schema)
IDatabaseTester implementation that needs a schema
has the possibility to set it somehow in the constructorvoid setSetUpOperation(DatabaseOperation setUpOperation)
void setTearDownOperation(DatabaseOperation tearDownOperation)
void onSetup()
throws Exception
Exceptionvoid onTearDown()
throws Exception
Exceptionvoid setOperationListener(IOperationListener operationListener)
operationListener - The operation listener that is invoked on specific events in
the IDatabaseTester.Copyright © 2002-2017. All Rights Reserved.