org.ow2.bonita.pvm.test.base
Class DbTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ow2.bonita.pvm.test.base.PVMTestCase
              extended by org.ow2.bonita.pvm.test.base.EnvironmentFactoryTestCase
                  extended by org.ow2.bonita.pvm.test.base.DbTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class DbTestCase
extends EnvironmentFactoryTestCase

for tests that use persistence through a command service. The DB is cleaned inbetween tests. No environment is created.

Author:
Tom Baeyens

Field Summary
protected  CommandService commandService
           
protected  ExecutionService executionService
           
protected  ManagementService managementService
           
protected  ProcessService processService
           
 
Fields inherited from class org.ow2.bonita.pvm.test.base.PVMTestCase
LOG
 
Constructor Summary
DbTestCase()
           
DbTestCase(java.lang.String configResource)
           
 
Method Summary
 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
 

Field Detail

commandService

protected CommandService commandService

processService

protected ProcessService processService

executionService

protected ExecutionService executionService

managementService

protected ManagementService managementService
Constructor Detail

DbTestCase

public DbTestCase()

DbTestCase

public DbTestCase(java.lang.String configResource)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class PVMTestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class PVMTestCase
Throws:
java.lang.Exception


Copyright © 2009 OW2 Consortium. All Rights Reserved.