Package org.operaton.bpm.dmn.engine.test
Class DmnEngineExtension
java.lang.Object
org.operaton.bpm.dmn.engine.test.DmnEngineExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
- Direct Known Subclasses:
DmnEngineTestExtension
public class DmnEngineExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeEachCallback
JUnit 5 extension for
DmnEngine initialization.
Usage:
public class YourDmnTest {
public class YourDmnTest {
@RegisterExtension
public static DmnEngineExtension dmnEngineExtension = new DmnEngineExtension();
...
}
The DMN engine will be made available to the test class
through the getters of the dmnEngineExtension (see getDmnEngine()).
The DMN engine will be initialized with the default DMN engine configuration.
To specify a different configuration, pass the configuration to the
DmnEngineExtension(DmnEngineConfiguration) constructor.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates aDmnEnginewith the defaultDmnEngineConfigurationDmnEngineExtension(DmnEngineConfiguration dmnEngineConfiguration) Creates aDmnEnginewith the givenDmnEngineConfiguration -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
-
Field Details
-
dmnEngine
-
dmnEngineConfiguration
-
-
Constructor Details
-
DmnEngineExtension
public DmnEngineExtension()Creates aDmnEnginewith the defaultDmnEngineConfiguration -
DmnEngineExtension
Creates aDmnEnginewith the givenDmnEngineConfiguration
-
-
Method Details
-
getDmnEngine
- Returns:
- the
DmnEngine
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-