@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface ContentConfigurationResource
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.public abstract String value