|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.dbunit.DatabaseTestCase
org.dbunit.AbstractDatabaseTest
public abstract class AbstractDatabaseTest
Field Summary | |
---|---|
protected IDatabaseConnection |
_connection
|
protected org.slf4j.Logger |
logger
|
Constructor Summary | |
---|---|
AbstractDatabaseTest(String s)
|
Method Summary | |
---|---|
protected void |
closeConnection(IDatabaseConnection connection)
|
protected ITable |
createOrderedTable(String tableName,
String orderByColumn)
|
static boolean |
environmentHasFeature(TestFeature feature)
|
protected IDatabaseConnection |
getConnection()
|
protected IDatabaseTester |
getDatabaseTester()
|
protected IDataSet |
getDataSet()
|
protected DatabaseEnvironment |
getEnvironment()
|
protected void |
runTest()
|
protected boolean |
runTest(String testName)
This method is used so sub-classes can disable the tests according to some characteristics of the environment |
protected void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class org.dbunit.DatabaseTestCase |
---|
getSetUpOperation, getTearDownOperation, newDatabaseTester |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, 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 |
Field Detail |
---|
protected IDatabaseConnection _connection
protected final org.slf4j.Logger logger
Constructor Detail |
---|
public AbstractDatabaseTest(String s)
Method Detail |
---|
protected DatabaseEnvironment getEnvironment() throws Exception
Exception
protected ITable createOrderedTable(String tableName, String orderByColumn) throws Exception
Exception
protected void setUp() throws Exception
setUp
in class DatabaseTestCase
Exception
protected IDatabaseTester getDatabaseTester() throws Exception
getDatabaseTester
in class DatabaseTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class DatabaseTestCase
Exception
protected IDatabaseConnection getConnection() throws Exception
getConnection
in class DatabaseTestCase
Exception
protected IDataSet getDataSet() throws Exception
getDataSet
in class DatabaseTestCase
Exception
protected void closeConnection(IDatabaseConnection connection) throws Exception
closeConnection
in class DatabaseTestCase
Exception
protected boolean runTest(String testName)
testName
- name of the test to be checked
protected void runTest() throws Throwable
runTest
in class junit.framework.TestCase
Throwable
public static boolean environmentHasFeature(TestFeature feature)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |