|
||||||||||
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.ow2.bonita.pvm.test.base.PVMTestCase
org.ow2.bonita.pvm.test.base.EnvironmentFactoryTestCase
org.ow2.bonita.pvm.test.base.EnvironmentTestCase
org.ow2.bonita.pvm.test.base.EnvironmentDbTestCase
public class EnvironmentDbTestCase
for tests that use persistence inside environment blocks. An environment is opened in the setUp and closed in the tearDown. DB is cleaned inbetween tests. Extra convenience methods for usage inside an environment block are provided.
Field Summary |
---|
Fields inherited from class org.ow2.bonita.pvm.test.base.EnvironmentTestCase |
---|
environment |
Fields inherited from class org.ow2.bonita.pvm.test.base.PVMTestCase |
---|
LOG |
Constructor Summary | |
---|---|
EnvironmentDbTestCase()
|
|
EnvironmentDbTestCase(java.lang.String configResource)
|
Method Summary | ||
---|---|---|
void |
beginCacheTest()
|
|
void |
endCacheTest()
|
|
DbSession |
getDbSession()
|
|
void |
newTransaction()
|
|
ExecutionImpl |
reload(Execution execution)
|
|
PVMProcessDefinitionImpl |
reload(OpenProcessDefinition processDefinition)
|
|
|
reload(T object,
java.lang.Class<T> persistentClass)
|
|
void |
rollbackAndBeginNewTransaction()
|
|
void |
setUp()
|
|
void |
tearDown()
|
Methods inherited from class org.ow2.bonita.pvm.test.base.EnvironmentFactoryTestCase |
---|
getEnvironmentFactory |
Methods inherited from class org.ow2.bonita.pvm.test.base.PVMTestCase |
---|
assertTextPresent, openEnvironment, runTest |
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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentDbTestCase()
public EnvironmentDbTestCase(java.lang.String configResource)
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class EnvironmentTestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class EnvironmentTestCase
java.lang.Exception
public DbSession getDbSession()
public void rollbackAndBeginNewTransaction()
public void newTransaction()
public void beginCacheTest()
public void endCacheTest()
public PVMProcessDefinitionImpl reload(OpenProcessDefinition processDefinition)
public <T> T reload(T object, java.lang.Class<T> persistentClass)
public ExecutionImpl reload(Execution execution)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |