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 String
deploymentIdFromDeploymentAnnotation
protected List<String>
deploymentIdsForAutoCleanup
protected Throwable
exception
protected FormEngine
formEngine
protected FormEngineConfiguration
formEngineConfiguration
protected FormService
formService
protected FormManagementService
managementService
protected 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
All Methods Instance Methods Abstract Methods Concrete Methods 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 Detail
-
formEngine
protected FormEngine formEngine
-
deploymentIdFromDeploymentAnnotation
protected String deploymentIdFromDeploymentAnnotation
-
exception
protected Throwable exception
-
formEngineConfiguration
protected FormEngineConfiguration formEngineConfiguration
-
managementService
protected FormManagementService managementService
-
repositoryService
protected FormRepositoryService repositoryService
-
formService
protected FormService formService
-
-
Method Detail
-
initializeFormEngine
protected abstract void initializeFormEngine()
-
closeDownFormEngine
protected void closeDownFormEngine()
-
nullifyServices
protected void nullifyServices()
-
runBare
public void runBare() throws Throwable
- Overrides:
runBare
in classjunit.framework.TestCase
- Throws:
Throwable
-
assertAndEnsureCleanDb
protected void assertAndEnsureCleanDb() throws Throwable
Each 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:
Throwable
-
initializeServices
protected void initializeServices()
-
-