|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDatabaseTester
This interface defines the behavior of a DatabaseTester, which is responsible for adding DBUnit features as composition on existing test cases (instead of extending DBTestCase directly).
| Method Summary | |
|---|---|
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(java.lang.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. |
| Method Detail |
|---|
void closeConnection(IDatabaseConnection connection)
throws java.lang.Exception
setOperationListener(IOperationListener) in advance
java.lang.Exception
IDatabaseConnection getConnection()
throws java.lang.Exception
java.lang.ExceptionIDataSet getDataSet()
void setDataSet(IDataSet dataSet)
void setSchema(java.lang.String schema)
IDatabaseTester implementation that needs a schema has the possibility to set it somehow in the constructor
void setSetUpOperation(DatabaseOperation setUpOperation)
void setTearDownOperation(DatabaseOperation tearDownOperation)
void onSetup()
throws java.lang.Exception
java.lang.Exception
void onTearDown()
throws java.lang.Exception
java.lang.Exceptionvoid setOperationListener(IOperationListener operationListener)
operationListener - The operation listener that is invoked on
specific events in the IDatabaseTester.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||