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.TestWatcherJUnit rule forDmnEngineinitialization.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 DmnEnginedmnEngineprotected DmnEngineConfigurationdmnEngineConfiguration
-
Constructor Summary
Constructors Constructor Description DmnEngineRule()Creates aDmnEnginewith the defaultDmnEngineConfigurationDmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)Creates aDmnEnginewith the givenDmnEngineConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmnEnginegetDmnEngine()protected voidstarting(org.junit.runner.Description description)
-
-
-
Field Detail
-
dmnEngine
protected DmnEngine dmnEngine
-
dmnEngineConfiguration
protected DmnEngineConfiguration dmnEngineConfiguration
-
-
Constructor Detail
-
DmnEngineRule
public DmnEngineRule()
Creates aDmnEnginewith the defaultDmnEngineConfiguration
-
DmnEngineRule
public DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
Creates aDmnEnginewith the givenDmnEngineConfiguration
-
-