Annotation Type TenantDeployment


@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Inherited
public @interface TenantDeployment
Annotation that can be used to trigger a deployment of a tenant for the provided test. If no resources() are provided, then a tenant setup 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 tenants will be deployed before all tests, and they will be removed after all tests
  • Method level - The tenants will be deployed before the test and will be removed after the test
e.g.

 @TenantDeployment
 class YourTest {

   @Test
   @TenantDeployment
   void myTest() {
       ...
   }

   ...
 }
 
Author:
Filip Hrisafov
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    boolean enableMultiTenancy  
    java.lang.String[] resources