Package org.flowable.eventregistry.test
Annotation Type EventConfigurationResource
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface EventConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for theFlowableEventExtension.This annotation can be used to create a custom annotation that would provide the configuration resource to the
UsageFlowableEventExtension.
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.@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) { ... } ... }- Author:
- Filip Hrisafov
-
-
Element Detail
-
value
String value
The location of the resource that should be used to create the EventRegistryEngine.- Default:
- "flowable.eventregistry.cfg.xml"
-
-