Package com.flowable.app.engine.test
Annotation Interface AppConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for the
FlowableAppExtension
.
This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableAppExtension
.
@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) {
...
}
...
}
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.-
Optional Element Summary
-
Element Details
-
value
String valueThe location of the resource that should be used to create the AppEngine.- Default:
- "flowable.app.cfg.xml"
-