@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface DmnConfigurationResource
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.public abstract String value
Copyright © 2021 Flowable. All rights reserved.