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 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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates aDmnEnginewith the defaultDmnEngineConfigurationDmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration) Creates aDmnEnginewith the givenDmnEngineConfiguration -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstarting(org.junit.runner.Description description) Methods inherited from class org.junit.rules.TestWatcher
apply, failed, finished, skipped, skipped, succeeded
-
Field Details
-
dmnEngine
-
dmnEngineConfiguration
-
-
Constructor Details
-
DmnEngineRule
public DmnEngineRule()Creates aDmnEnginewith the defaultDmnEngineConfiguration -
DmnEngineRule
Creates aDmnEnginewith the givenDmnEngineConfiguration
-
-
Method Details
-
getDmnEngine
- Returns:
- the
DmnEngine
-
starting
protected void starting(org.junit.runner.Description description) - Overrides:
startingin classorg.junit.rules.TestWatcher
-