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.
| 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 |
dmnEngine
protected DmnEngine dmnEngine
dmnEngineConfiguration
protected DmnEngineConfiguration dmnEngineConfiguration
DmnEngineRule
public DmnEngineRule()
- Creates a
DmnEngine with the default DmnEngineConfiguration
DmnEngineRule
public DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
- Creates a
DmnEngine with the given DmnEngineConfiguration
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.