Class AbstractFlowableTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.flowable.form.engine.impl.test.AbstractTestCase
com.flowable.form.engine.impl.test.AbstractFlowableTestCase
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
SpringFlowableTestCase
public abstract class AbstractFlowableTestCase extends AbstractTestCase
- Author:
- Tom Baeyens, Joram Barrez
-
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 FormEngine
formEngine
protected FormEngineConfiguration
formEngineConfiguration
protected org.flowable.form.api.FormService
formService
protected org.flowable.form.api.FormManagementService
managementService
protected org.flowable.form.api.FormRepositoryService
repositoryService
Fields inherited from class com.flowable.form.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
closeDownFormEngine()
protected abstract void
initializeFormEngine()
protected void
initializeServices()
protected void
nullifyServices()
void
runBare()
Methods inherited from class com.flowable.form.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
-
formEngine
-
deploymentIdFromDeploymentAnnotation
protected java.lang.String deploymentIdFromDeploymentAnnotation -
deploymentIdsForAutoCleanup
protected java.util.List<java.lang.String> deploymentIdsForAutoCleanup -
exception
protected java.lang.Throwable exception -
formEngineConfiguration
-
managementService
protected org.flowable.form.api.FormManagementService managementService -
repositoryService
protected org.flowable.form.api.FormRepositoryService repositoryService -
formService
protected org.flowable.form.api.FormService formService
-
-
Constructor Details
-
AbstractFlowableTestCase
public AbstractFlowableTestCase()
-
-
Method Details
-
initializeFormEngine
protected abstract void initializeFormEngine() -
closeDownFormEngine
protected void closeDownFormEngine() -
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()
-