Class AbstractFlowableTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.flowable.workobject.engine.impl.test.AbstractTestCase
com.flowable.workobject.engine.impl.test.AbstractFlowableTestCase
- All Implemented Interfaces:
junit.framework.Test
public abstract class AbstractFlowableTestCase extends AbstractTestCase
- Author:
- Tijs Rademakers
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
deploymentIdFromDeploymentAnnotation
protected java.util.List<java.lang.String>
deploymentIdsForAutoCleanup
protected java.lang.Throwable
exception
protected WorkObjectManagementService
managementService
protected WorkObjectRepositoryService
repositoryService
protected WorkObjectEngine
workObjectEngine
protected WorkObjectEngineConfiguration
workObjectEngineConfiguration
protected WorkObjectService
workObjectService
Fields inherited from class com.flowable.workobject.engine.impl.test.AbstractTestCase
EMPTY_LINE, isEmptyLinesEnabled, LOGGER
-
Constructor Summary
Constructors Constructor Description AbstractFlowableTestCase()
-
Method Summary
Modifier and Type Method Description protected void
assertAndEnsureCleanDb()
Each test is assumed to clean up all DB content it entered.protected void
closeDownWorkObjectEngine()
protected void
initializeServices()
protected abstract void
initializeWorkObjectEngine()
protected void
nullifyServices()
void
runBare()
Methods inherited from class com.flowable.workobject.engine.impl.test.AbstractTestCase
assertTextPresent, assertTextPresentIgnoreCase, runTest
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, setName, setUp, tearDown, toString
-
Field Details
-
workObjectEngine
-
deploymentIdFromDeploymentAnnotation
protected java.lang.String deploymentIdFromDeploymentAnnotation -
deploymentIdsForAutoCleanup
protected java.util.List<java.lang.String> deploymentIdsForAutoCleanup -
exception
protected java.lang.Throwable exception -
workObjectEngineConfiguration
-
managementService
-
repositoryService
-
workObjectService
-
-
Constructor Details
-
AbstractFlowableTestCase
public AbstractFlowableTestCase()
-
-
Method Details
-
initializeWorkObjectEngine
protected abstract void initializeWorkObjectEngine() -
closeDownWorkObjectEngine
protected void closeDownWorkObjectEngine() -
nullifyServices
protected void nullifyServices() -
runBare
public void runBare() throws java.lang.Throwable- Overrides:
runBare
in classjunit.framework.TestCase
- Throws:
java.lang.Throwable
-
assertAndEnsureCleanDb
protected void assertAndEnsureCleanDb() throws java.lang.ThrowableEach test is assumed to clean up all DB content it entered. After a test method executed, this method scans all tables to see if the DB is completely clean. It throws AssertionFailed in case the DB is not clean. If the DB is not clean, it is cleaned by performing a create a drop.- Throws:
java.lang.Throwable
-
initializeServices
protected void initializeServices()
-