Annotation Type AppConfigurationResource


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

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

    Usage
    
     @Target({ElementType.TYPE})
     @Retention(RetentionPolicy.RUNTIME)
     @Documented
     @ConfigurationResource("flowable.custom.app.cfg.xm")
     public @interface MyCustomResource {
    
     }
    
     @ExtendWith(FlowableAppExtension.class)
     @MyCustomResource
     class YourTest {
    
       @BeforeEach
       void setUp(AppEngine appEngine) {
         ...
       }
    
       @Test
       void myTest(AppService appService) {
         ...
       }
       ...
     }
     
    In this example the configuration flowable.custom.app.cfg.xml will be used to create the AppEngine. NB: This only works for the tests with JUnit Jupiter.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      The location of the resource that should be used to create the AppEngine.
    • Element Detail

      • value

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