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 forDmnEngine
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
(seegetDmnEngine()
). The DMN engine will be initialized with the default DMN engine configuration. To specify a different configuration, pass the configuration to theDmnEngineRule(DmnEngineConfiguration)
constructor.
-
-
Field Summary
Fields Modifier and Type Field Description protected DmnEngine
dmnEngine
protected DmnEngineConfiguration
dmnEngineConfiguration
-
Constructor Summary
Constructors Constructor Description DmnEngineRule()
Creates aDmnEngine
with the defaultDmnEngineConfiguration
DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
Creates aDmnEngine
with the givenDmnEngineConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmnEngine
getDmnEngine()
protected void
starting(org.junit.runner.Description description)
-
-
-
Field Detail
-
dmnEngine
protected DmnEngine dmnEngine
-
dmnEngineConfiguration
protected DmnEngineConfiguration dmnEngineConfiguration
-
-
Constructor Detail
-
DmnEngineRule
public DmnEngineRule()
Creates aDmnEngine
with the defaultDmnEngineConfiguration
-
DmnEngineRule
public DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
Creates aDmnEngine
with the givenDmnEngineConfiguration
-
-