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.StringdeploymentIdFromDeploymentAnnotationprotected java.util.List<java.lang.String>deploymentIdsForAutoCleanupprotected java.lang.Throwableexceptionprotected FormEngineformEngineprotected FormEngineConfigurationformEngineConfigurationprotected org.flowable.form.api.FormServiceformServiceprotected org.flowable.form.api.FormManagementServicemanagementServiceprotected org.flowable.form.api.FormRepositoryServicerepositoryServiceFields 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 voidassertAndEnsureCleanDb()Each test is assumed to clean up all DB content it entered.protected voidcloseDownFormEngine()protected abstract voidinitializeFormEngine()protected voidinitializeServices()protected voidnullifyServices()voidrunBare()Methods inherited from class com.flowable.form.engine.impl.test.AbstractTestCase
assertTextPresent, assertTextPresentIgnoreCase, runTestMethods 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:
runBarein 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()
-