public class DmnEngineRule
extends org.junit.rules.TestWatcher
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.
Modifier and Type | Field and Description |
---|---|
protected DmnEngine |
dmnEngine |
protected DmnEngineConfiguration |
dmnEngineConfiguration |
Constructor and Description |
---|
DmnEngineRule()
Creates a
DmnEngine with the default DmnEngineConfiguration |
DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
Creates a
DmnEngine with the given DmnEngineConfiguration |
Modifier and Type | Method and Description |
---|---|
DmnEngine |
getDmnEngine() |
protected void |
starting(org.junit.runner.Description description) |
protected DmnEngine dmnEngine
protected DmnEngineConfiguration dmnEngineConfiguration
public DmnEngineRule()
DmnEngine
with the default DmnEngineConfiguration
public DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
DmnEngine
with the given DmnEngineConfiguration
Copyright © 2018. All rights reserved.