|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.assertion.SimpleAssert
org.dbunit.AbstractDatabaseTester
public abstract class AbstractDatabaseTester
Basic implementation of IDatabaseTester.
Implementations of IDatabaseTester may use this class as a starting point.
Constructor Summary | |
---|---|
AbstractDatabaseTester()
|
Method Summary | |
---|---|
void |
closeConnection(IDatabaseConnection connection)
Close the specified connection. |
IDataSet |
getDataSet()
Returns the test dataset. |
protected String |
getSchema()
Returns the schema value. |
protected DatabaseOperation |
getSetUpOperation()
Returns the DatabaseOperation to call when starting the test. |
protected DatabaseOperation |
getTearDownOperation()
Returns 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 |
setSchema(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. |
String |
toString()
|
Methods inherited from class org.dbunit.assertion.SimpleAssert |
---|
assertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.dbunit.IDatabaseTester |
---|
getConnection |
Constructor Detail |
---|
public AbstractDatabaseTester()
Method Detail |
---|
public void closeConnection(IDatabaseConnection connection) throws Exception
IDatabaseTester
closeConnection
in interface IDatabaseTester
Exception
public IDataSet getDataSet()
IDatabaseTester
getDataSet
in interface IDatabaseTester
public void onSetup() throws Exception
IDatabaseTester
onSetup
in interface IDatabaseTester
Exception
public void onTearDown() throws Exception
IDatabaseTester
onTearDown
in interface IDatabaseTester
Exception
public void setDataSet(IDataSet dataSet)
IDatabaseTester
setDataSet
in interface IDatabaseTester
public void setSchema(String schema)
IDatabaseTester
setSchema
in interface IDatabaseTester
public void setSetUpOperation(DatabaseOperation setUpOperation)
IDatabaseTester
setSetUpOperation
in interface IDatabaseTester
public void setTearDownOperation(DatabaseOperation tearDownOperation)
IDatabaseTester
setTearDownOperation
in interface IDatabaseTester
protected String getSchema()
protected DatabaseOperation getSetUpOperation()
protected DatabaseOperation getTearDownOperation()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |