Annotation Type TemplateDefinitionDeployment


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    @Documented
    @Inherited
    @Repeatable(TemplateDefinitionDeployments.class)
    public @interface TemplateDefinitionDeployment
    Annotation that can be used to trigger a deployment of action definitions for the provided test. If no resources() are provided, then an action 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 template definitions will be deployed before all tests, and they will be removed after all tests
    • Method level - The template definitions will be deployed before the test and will be removed after the test
    e.g.
    
     @TemplateDefinitionDeployment
     class YourTest {
    
       @BeforeEach
       void setUp(TemplateEngine templateEngine) {
           ...
       }
    
       @Test
       @TemplateDefinitionDeployment
       void myTest(TemplateService templateEngine) {
           ...
       }
    
       ...
     }
     
    Author:
    Filip Hrisafov, Yvo Hrisafov
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] resources  
      java.lang.String tenantId  
    • Element Detail

      • resources

        java.lang.String[] resources
        Default:
        {}
      • tenantId

        java.lang.String tenantId
        Default:
        ""