|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
it.openutils.testing.junit.SpringTestCase
it.openutils.testing.junit.DbUnitTestCase
public abstract class DbUnitTestCase
Base class for running DAO tests.
| Field Summary | |
|---|---|
protected static org.dbunit.dataset.IDataSet |
truncateDataSet
|
| Fields inherited from class it.openutils.testing.junit.SpringTestCase |
|---|
ctx, log |
| Constructor Summary | |
|---|---|
DbUnitTestCase()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the full test name. |
protected org.hibernate.SessionFactory |
getSessionFactory()
return the current Hibernate SessionFactory |
protected boolean |
mimicSessionFilter()
Should use deferred close emulating the spring OpenSessionInView filter? |
protected void |
setUp()
|
protected void |
tearDown()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.dbunit.dataset.IDataSet truncateDataSet
| Constructor Detail |
|---|
public DbUnitTestCase()
| Method Detail |
|---|
protected boolean mimicSessionFilter()
true
true if deferred close should be used
protected void setUp()
throws java.lang.Exception
setUp in class SpringTestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic java.lang.String getName()
getName in class junit.framework.TestCaseTestCase.getName()protected org.hibernate.SessionFactory getSessionFactory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||