Package com.flowable.content.engine.test
Annotation Interface 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
.
@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
-
Element Details
-
value
String valueThe location of the resource that should be used to create the ProcessEngine.- Default:
- "flowable.content.cfg.xml"
-