Class AbstractFlowableDmnTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.flowable.dmn.engine.impl.test.AbstractDmnTestCase
-
- org.flowable.dmn.engine.impl.test.AbstractFlowableDmnTestCase
-
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
PluggableFlowableDmnTestCase,ResourceFlowableDmnTestCase
public abstract class AbstractFlowableDmnTestCase extends AbstractDmnTestCase
- Author:
- Tom Baeyens, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdeploymentIdFromDeploymentAnnotationprotected List<String>deploymentIdsForAutoCleanupprotected DmnEnginedmnEngineprotected DmnEngineConfigurationdmnEngineConfigurationprotected Throwableexceptionprotected DmnHistoryServicehistoryServiceprotected DmnManagementServicemanagementServiceprotected DmnRepositoryServicerepositoryServiceprotected DmnDecisionServiceruleService-
Fields inherited from class org.flowable.dmn.engine.impl.test.AbstractDmnTestCase
EMPTY_LINE, isEmptyLinesEnabled, LOGGER
-
-
Constructor Summary
Constructors Constructor Description AbstractFlowableDmnTestCase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidassertAndEnsureCleanDb()Each test is assumed to clean up all DB content it entered.protected voidcloseDownDmnEngine()protected abstract voidinitializeDmnEngine()protected voidinitializeServices()protected voidnullifyServices()voidrunBare()-
Methods inherited from class org.flowable.dmn.engine.impl.test.AbstractDmnTestCase
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
-
dmnEngine
protected DmnEngine dmnEngine
-
deploymentIdFromDeploymentAnnotation
protected String deploymentIdFromDeploymentAnnotation
-
exception
protected Throwable exception
-
dmnEngineConfiguration
protected DmnEngineConfiguration dmnEngineConfiguration
-
managementService
protected DmnManagementService managementService
-
repositoryService
protected DmnRepositoryService repositoryService
-
ruleService
protected DmnDecisionService ruleService
-
historyService
protected DmnHistoryService historyService
-
-
Method Detail
-
initializeDmnEngine
protected abstract void initializeDmnEngine()
-
closeDownDmnEngine
protected void closeDownDmnEngine()
-
nullifyServices
protected void nullifyServices()
-
runBare
public void runBare() throws Throwable- Overrides:
runBarein classjunit.framework.TestCase- Throws:
Throwable
-
assertAndEnsureCleanDb
protected void assertAndEnsureCleanDb() throws 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:
Throwable
-
initializeServices
protected void initializeServices()
-
-