Annotation Interface ChannelDeploymentAnnotation


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

Usage:

 package org.example;
 
 ...
 
 public class ExampleTest {
 
   @ChannelDeploymentAnnotation
   public void testForADeploymentWithASingleResource() {
     // a deployment will be available in the engine repository
     // containing the single resource org/example/ExampleTest.event
   }
 
   @ChannelDeploymentAnnotation(resources = { 
     "org/example/one.channel",
     "org/example/two.channel"})
   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 channel definition.
     
  • Element Details

    • resources

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

      String tenantId
      Default:
      ""