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