Class DmnEngineRule
java.lang.Object
org.finos.fluxnova.bpm.dmn.engine.test.DmnEngineRule
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
public class DmnEngineRule
extends Object
implements org.junit.jupiter.api.extension.BeforeEachCallback
JUnit extension for
DmnEngine initialization.
Usage:
public class YourDmnTest {
@RegisterExtension
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
-
Field Details
-
dmnEngine
-
dmnEngineConfiguration
-
-
Constructor Details
-
DmnEngineRule
public DmnEngineRule() -
DmnEngineRule
-
-
Method Details
-
getDmnEngine
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-