Annotation Interface EventDeploymentAnnotation


@Retention(RUNTIME) public @interface EventDeploymentAnnotation
Annotation for a test method to create and delete a deployment around a test method.

Usage:

 package org.example;
 
 ...
 
 public class ExampleTest {
 
   @EventDeploymentAnnotation
   public void testForADeploymentWithASingleResource() {
     // a deployment will be available in the engine repository
     // containing the single resource org/example/ExampleTest.event
   }
 
   @EventDeploymentAnnotation(resources = { 
     "org/example/one.event",
     "org/example/two.event"})
   public void testForADeploymentWithASingleResource() {
     // a deployment will be available in the engine repository
     // containing the three resources
   }
 
Author:
Tijs Rademakers
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specify resources that make up the event definition.
     
  • Element Details

    • resources

      String[] resources
      Specify resources that make up the event definition.
      Default:
      {}
    • tenantId

      String tenantId
      Default:
      ""