|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.dbunit.DatabaseTestCase
public abstract class DatabaseTestCase
Constructor Summary | |
---|---|
DatabaseTestCase()
|
|
DatabaseTestCase(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
closeConnection(IDatabaseConnection connection)
Close the specified connection. |
protected abstract IDatabaseConnection |
getConnection()
Returns the test database connection. |
protected IDatabaseTester |
getDatabaseTester()
Gets the IDatabaseTester for this testCase. |
protected abstract IDataSet |
getDataSet()
Returns the test dataset. |
protected DatabaseOperation |
getSetUpOperation()
Returns the database operation executed in test setup. |
protected DatabaseOperation |
getTearDownOperation()
Returns the database operation executed in test cleanup. |
protected IDatabaseTester |
newDatabaseTester()
Creates a IDatabaseTester for this testCase. |
protected void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatabaseTestCase()
public DatabaseTestCase(java.lang.String name)
Method Detail |
---|
protected abstract IDatabaseConnection getConnection() throws java.lang.Exception
java.lang.Exception
protected abstract IDataSet getDataSet() throws java.lang.Exception
java.lang.Exception
protected IDatabaseTester newDatabaseTester() throws java.lang.Exception
DefaultDatabaseTester
is used by default.
java.lang.Exception
protected IDatabaseTester getDatabaseTester() throws java.lang.Exception
java.lang.Exception
protected void closeConnection(IDatabaseConnection connection) throws java.lang.Exception
java.lang.Exception
protected DatabaseOperation getSetUpOperation() throws java.lang.Exception
java.lang.Exception
protected DatabaseOperation getTearDownOperation() throws java.lang.Exception
java.lang.Exception
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |