@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface FormConfigurationResource
FlowableFormExtension
.
This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableFormExtension
.
@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) {
...
}
...
}
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.public abstract String value