@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface EventConfigurationResource
FlowableEventExtension.
This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableEventExtension.
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@ConfigurationResource("flowable.custom.eventregistry.cfg.xm")
public @interface MyCustomResource {
}
@ExtendWith(FlowableEventExtension.class)
@MyCustomResource
class YourTest {
@BeforeEach
void setUp(EventRegistryEngine eventRegistryEngine) {
...
}
@Test
void myTest(EventRepositoryService eventRepositoryService) {
...
}
...
}
In this example the configuration flowable.custom.eventregistry.cfg.xml will be used to create the EventRegistryEngine
NB: This only works for the tests with JUnit Jupiter.public abstract String value
Copyright © 2021 Flowable. All rights reserved.