|
||||||||||
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)
Close the specified connection. |
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 |
setSchema(java.lang.String schema)
Sets the schema value. |
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
java.lang.Exception
IDatabaseConnection getConnection() throws java.lang.Exception
java.lang.Exception
IDataSet getDataSet()
void setDataSet(IDataSet dataSet)
void setSchema(java.lang.String schema)
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.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |