public abstract class AbstractDatabaseTester extends SimpleAssert implements IDatabaseTester
| Constructor and Description |
|---|
AbstractDatabaseTester() |
| Modifier and Type | Method and Description |
|---|---|
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() |
assertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, failclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConnectionpublic void closeConnection(IDatabaseConnection connection) throws Exception
IDatabaseTestercloseConnection in interface IDatabaseTesterExceptionpublic IDataSet getDataSet()
IDatabaseTestergetDataSet in interface IDatabaseTesterpublic void onSetup()
throws Exception
IDatabaseTesteronSetup in interface IDatabaseTesterExceptionpublic void onTearDown()
throws Exception
IDatabaseTesteronTearDown in interface IDatabaseTesterExceptionpublic void setDataSet(IDataSet dataSet)
IDatabaseTestersetDataSet in interface IDatabaseTesterpublic void setSchema(String schema)
IDatabaseTestersetSchema in interface IDatabaseTesterpublic void setSetUpOperation(DatabaseOperation setUpOperation)
IDatabaseTestersetSetUpOperation in interface IDatabaseTesterpublic void setTearDownOperation(DatabaseOperation tearDownOperation)
IDatabaseTestersetTearDownOperation in interface IDatabaseTesterprotected String getSchema()
protected DatabaseOperation getSetUpOperation()
protected DatabaseOperation getTearDownOperation()
Copyright © 2002-2012. All Rights Reserved.