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 Details

  • Constructor Details

    • DmnEngineRule

      public DmnEngineRule()
    • DmnEngineRule

      public DmnEngineRule(DmnEngineConfiguration dmnEngineConfiguration)
  • Method Details

    • getDmnEngine

      public DmnEngine getDmnEngine()
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback