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.
|
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.
|
void closeConnection(IDatabaseConnection connection) throws Exception
setOperationListener(IOperationListener)
in advanceException
IDatabaseConnection getConnection() throws Exception
Exception
IDataSet getDataSet()
void setDataSet(IDataSet dataSet)
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
Exception
void onTearDown() throws Exception
Exception
void setOperationListener(IOperationListener operationListener)
operationListener
- The operation listener that is invoked on
specific events in the IDatabaseTester
.Copyright © 2002–2016. All rights reserved.