Class AbstractFlowableTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.flowable.content.engine.impl.test.AbstractContentTestCase
-
- com.flowable.content.engine.impl.test.AbstractFlowableTestCase
-
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
SpringFlowableTestCase
public abstract class AbstractFlowableTestCase extends AbstractContentTestCase
- Author:
- Tom Baeyens, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentEngine
contentEngine
protected ContentEngineConfiguration
contentEngineConfiguration
protected ContentService
contentService
protected Throwable
exception
protected ContentManagementService
managementService
-
Fields inherited from class com.flowable.content.engine.impl.test.AbstractContentTestCase
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
closeDownContentEngine()
protected abstract void
initializeContentEngine()
protected void
initializeServices()
protected void
nullifyServices()
void
runBare()
-
Methods inherited from class com.flowable.content.engine.impl.test.AbstractContentTestCase
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
-
contentEngine
protected ContentEngine contentEngine
-
exception
protected Throwable exception
-
contentEngineConfiguration
protected ContentEngineConfiguration contentEngineConfiguration
-
managementService
protected ContentManagementService managementService
-
contentService
protected ContentService contentService
-
-
Method Detail
-
initializeContentEngine
protected abstract void initializeContentEngine()
-
closeDownContentEngine
protected void closeDownContentEngine()
-
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()
-
-