|
||||||||||
| 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()
|
|
AbstractDatabaseTester(java.lang.String schema)
|
|
| Method Summary | |
|---|---|
void |
closeConnection(IDatabaseConnection connection)
Close the specified connection. |
IDataSet |
getDataSet()
Returns the test dataset. |
protected java.lang.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 |
setOperationListener(IOperationListener operationListener)
|
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. |
java.lang.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()
public AbstractDatabaseTester(java.lang.String schema)
schema - The schema to be tested. Can be null| Method Detail |
|---|
public void closeConnection(IDatabaseConnection connection)
throws java.lang.Exception
IDatabaseTester
closeConnection in interface IDatabaseTesterjava.lang.Exceptionpublic IDataSet getDataSet()
IDatabaseTester
getDataSet in interface IDatabaseTester
public void onSetup()
throws java.lang.Exception
IDatabaseTester
onSetup in interface IDatabaseTesterjava.lang.Exception
public void onTearDown()
throws java.lang.Exception
IDatabaseTester
onTearDown in interface IDatabaseTesterjava.lang.Exceptionpublic void setDataSet(IDataSet dataSet)
IDatabaseTester
setDataSet in interface IDatabaseTesterpublic void setSchema(java.lang.String schema)
IDatabaseTester
setSchema in interface IDatabaseTesterpublic void setSetUpOperation(DatabaseOperation setUpOperation)
IDatabaseTester
setSetUpOperation in interface IDatabaseTesterpublic void setTearDownOperation(DatabaseOperation tearDownOperation)
IDatabaseTester
setTearDownOperation in interface IDatabaseTesterprotected java.lang.String getSchema()
protected DatabaseOperation getSetUpOperation()
protected DatabaseOperation getTearDownOperation()
public void setOperationListener(IOperationListener operationListener)
setOperationListener in interface IDatabaseTesteroperationListener - The operation listener that is invoked on
specific events in the IDatabaseTester.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||