Package org.flowable.cmmn.engine.test
Annotation Interface CmmnConfigurationResource
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
public @interface CmmnConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for the
FlowableCmmnExtension
.
This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableCmmnExtension
.
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@CmmnConfigurationResource("flowable.custom.cmmn.cfg.xm")
public @interface MyCustomResource {
}
@FlowableCmmnTest
@MyCustomResource
class YourTest {
@BeforeEach
void setUp(CmmnEngine cmmnEngine) {
...
}
@Test
void myTest(CmmnRuntimeService cmmnRuntimeService) {
...
}
...
}
In this example the configuration flowable.custom.cmmn.cfg.xml will be used to create the CmmnEngine
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 CmmnEngine.- Default:
- "flowable.cmmn.cfg.xml"
-