Package org.flowable.engine.test
Annotation Type ConfigurationResource
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface ConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for theFlowableExtension
.This annotation can be used to create a custom annotation that would provide the configuration resource to the
UsageFlowableExtension
.
In this example the configuration flowable.custom.cfg.xml will be used to create the ProcessEngine NB: This only works for the tests with JUnit Jupiter.@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @ConfigurationResource("flowable.custom.cfg.xm") public @interface MyCustomResource { } @FlowableTest @MyCustomResource class YourTest { @BeforeEach void setUp(ProcessEngine processEngine) { ... } @Test void myTest(RuntimeService runtimeService) { ... } ... }
- Author:
- Filip Hrisafov
-
-
Element Detail
-
value
String value
The location of the resource that should be used to create the ProcessEngine.- Default:
- "flowable.cfg.xml"
-
-