Package org.flowable.dmn.engine.test
Annotation Interface DmnConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for the
FlowableDmnExtension
.
This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableDmnExtension
.
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@DmnConfigurationResource("flowable.custom.dmn.cfg.xm")
public @interface MyCustomResource {
}
@FlowableDmnTest
@MyCustomResource
class YourTest {
@BeforeEach
void setUp(DmnEngine dmnEngine) {
...
}
@Test
void myTest(DmnRuleService dmnRuleService) {
...
}
...
}
In this example the configuration flowable.custom.dmn.cfg.xml will be used to create the DmnEngine
NB: This only works for the tests with JUnit Jupiter.- Author:
- Filip Hrisafov
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe location of the resource that should be used to create the DmnEngine.- Default:
- "flowable.dmn.cfg.xml"
-