@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface AppConfigurationResource
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.public abstract String value