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.

Usage

 @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
    Modifier and Type
    Optional Element
    Description
    The location of the resource that should be used to create the EventRegistryEngine.
  • Element Details

    • value

      String value
      The location of the resource that should be used to create the EventRegistryEngine.
      Default:
      "flowable.eventregistry.cfg.xml"