Package com.flowable.app.engine.test
Annotation Type AppConfigurationResource
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface AppConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for theFlowableAppExtension
.This annotation can be used to create a custom annotation that would provide the configuration resource to the
UsageFlowableAppExtension
.
In this example the configuration flowable.custom.app.cfg.xml will be used to create the AppEngine. NB: This only works for the tests with JUnit Jupiter.@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @ConfigurationResource("flowable.custom.app.cfg.xm") public @interface MyCustomResource { } @ExtendWith(FlowableAppExtension.class) @MyCustomResource class YourTest { @BeforeEach void setUp(AppEngine appEngine) { ... } @Test void myTest(AppService appService) { ... } ... }
-
-
Element Detail
-
value
String value
The location of the resource that should be used to create the AppEngine.- Default:
- "flowable.app.cfg.xml"
-
-