Package org.flowable.eventregistry.test
Annotation Interface 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 the
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.- Author:
- Filip Hrisafov
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe location of the resource that should be used to create the EventRegistryEngine.- Default:
- "flowable.eventregistry.cfg.xml"
-