Annotation Type WorkObjectDeploymentAnnotation


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

Usage:

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

    Optional Elements 
    Modifier and Type Optional Element Description
    java.lang.String[] resources
    Specify resources that make up the process definition.
    java.lang.String tenantId  
  • Element Details

    • resources

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

      java.lang.String tenantId
      Default:
      ""