Package com.flowable.idm.engine.test
Annotation Interface UserDefinitionDeployment
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Inherited
@Repeatable(UserDefinitionDeployments.class)
public @interface UserDefinitionDeployment
Annotation that can be used to trigger a deployment of user definitions for the provided test. If no
resources()
are
provided, then a user definition containing the name of the test class and method would be used to deploy. There are 2 use cases for this annotation:
- Class level - The user definitions will be deployed before all tests, and they will be removed after all tests
- Method level - The user definitions will be deployed before the test and will be removed after the test
@UserDefinitionDeployment
class YourTest {
@BeforeEach
void setUp(CoreIdmEngine idmEngine) {
...
}
@Test
@UserDefinitionDeployment
void myTest(RuntimeService runtimeService) {
...
}
...
}
- Author:
- Filip Hrisafov
-
Optional Element Summary