Annotation Type ContentConfigurationResource


@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
public @interface ContentConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for the FlowableContentExtension.

This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableContentExtension.

Usage

 @Target({ElementType.TYPE})
 @Retention(RetentionPolicy.RUNTIME)
 @Documented
 @ConfigurationResource("flowable.custom.content.cfg.xm")
 public @interface MyCustomResource {

 }

 @ExtendWith(FlowableContentExtension.class)
 @MyCustomResource
 class YourTest {

   @BeforeEach
   void setUp(ContentEngine contentEngine) {
     ...
   }

   @Test
   void myTest(CoreContentService contentService) {
     ...
   }
   ...
 }
 
In this example the configuration flowable.custom.content.cfg.xml will be used to create the ContentEngine NB: This only works for the tests with JUnit Jupiter.
Author:
Filip Hrisafov
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    java.lang.String value
    The location of the resource that should be used to create the ProcessEngine.
  • Element Details

    • value

      java.lang.String value
      The location of the resource that should be used to create the ProcessEngine.
      Default:
      "flowable.content.cfg.xml"