org.camunda.bpm.dmn.engine.test
Class DmnEngineRule

java.lang.Object
  extended by org.junit.rules.TestWatcher
      extended by 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
protected  DmnEngine dmnEngine
           
protected  DmnEngineConfiguration dmnEngineConfiguration
           
 
Constructor Summary
DmnEngineRule()
          Creates a DmnEngine with the default DmnEngineConfiguration
DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
          Creates a DmnEngine with the given DmnEngineConfiguration
 
Method Summary
 DmnEngine getDmnEngine()
           
protected  void starting(org.junit.runner.Description description)
           
 
Methods inherited from class org.junit.rules.TestWatcher
apply, failed, finished, skipped, skipped, succeeded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dmnEngine

protected DmnEngine dmnEngine

dmnEngineConfiguration

protected DmnEngineConfiguration dmnEngineConfiguration
Constructor Detail

DmnEngineRule

public DmnEngineRule()
Creates a DmnEngine with the default DmnEngineConfiguration


DmnEngineRule

public DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
Creates a DmnEngine with the given DmnEngineConfiguration

Method Detail

getDmnEngine

public DmnEngine getDmnEngine()
Returns:
the DmnEngine

starting

protected void starting(org.junit.runner.Description description)
Overrides:
starting in class org.junit.rules.TestWatcher


Copyright © 2017 camunda services GmbH. All rights reserved.