public abstract class AbstractDatabaseTester extends SimpleAssert implements IDatabaseTester
| Constructor and Description |
|---|
AbstractDatabaseTester() |
AbstractDatabaseTester(String schema) |
| 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 |
setOperationListener(IOperationListener operationListener) |
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 AbstractDatabaseTester()
public AbstractDatabaseTester(String schema)
schema - The schema to be tested. Can be nullpublic 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()
public void setOperationListener(IOperationListener operationListener)
setOperationListener in interface IDatabaseTesteroperationListener - The operation listener that is invoked on
specific events in the IDatabaseTester.Copyright © 2002-2015. All Rights Reserved.