Package org.camunda.bpm.dmn.engine.test
Class DmnEngineRule
java.lang.Object
org.junit.rules.TestWatcher
org.camunda.bpm.dmn.engine.test.DmnEngineRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class DmnEngineRule
extends org.junit.rules.TestWatcher
JUnit rule for
DmnEngine
initialization.
Usage:
public class YourDmnTest { @Rule public DmnEngineRule dmnEngineRule = new DmnEngineRule(); ... }
The DMN engine will be made available to the test class
through the getters of the dmnEngineRule
(see getDmnEngine()
).
The DMN engine will be initialized with the default DMN engine configuration.
To specify a different configuration, pass the configuration to the
DmnEngineRule(DmnEngineConfiguration)
constructor.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates aDmnEngine
with the defaultDmnEngineConfiguration
DmnEngineRule
(DmnEngineConfiguration dmnEngineConfiguration) Creates aDmnEngine
with the givenDmnEngineConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
starting
(org.junit.runner.Description description) Methods inherited from class org.junit.rules.TestWatcher
apply, failed, finished, skipped, skipped, succeeded
-
Field Details
-
dmnEngine
-
dmnEngineConfiguration
-
-
Constructor Details
-
DmnEngineRule
public DmnEngineRule()Creates aDmnEngine
with the defaultDmnEngineConfiguration
-
DmnEngineRule
Creates aDmnEngine
with the givenDmnEngineConfiguration
-
-
Method Details
-
getDmnEngine
- Returns:
- the
DmnEngine
-
starting
protected void starting(org.junit.runner.Description description) - Overrides:
starting
in classorg.junit.rules.TestWatcher
-