Package com.flowable.content.engine.test
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 theFlowableContentExtension
.This annotation can be used to create a custom annotation that would provide the configuration resource to the
UsageFlowableContentExtension
.
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.@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) { ... } ... }
- Author:
- Filip Hrisafov
-
-
Element Detail
-
value
String value
The location of the resource that should be used to create the ProcessEngine.- Default:
- "flowable.content.cfg.xml"
-
-