Annotation Type 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
    e.g.
    
     @UserDefinitionDeployment
     class YourTest {
    
       @BeforeEach
       void setUp(CoreIdmEngine idmEngine) {
           ...
       }
    
       @Test
       @UserDefinitionDeployment
       void myTest(RuntimeService runtimeService) {
           ...
       }
    
       ...
     }
     
    Author:
    Filip Hrisafov
    • Element Detail

      • resources

        String[] resources
        Default:
        {}
      • tenantId

        String tenantId
        Default:
        ""