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.