Annotation Interface DmnDeployment


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

Usage:

package org.example;

...

public class ExampleTest {

  @DmnDeployment
  public void testForADeploymentWithASingleResource() {
    // a deployment will be available in the engine repository
    // containing the single resource org/example/ExampleTest.testForADeploymentWithASingleResource.bpmn20.xml
  }

  @DmnDeployment(resources = { 
    "org/example/decisionOne.dmn",
    "org/example/decisionTwo.dmn"})
  public void testForADeploymentWithASingleResource() {
    // a deployment will be available in the engine repository the resources
  }
Author:
Tijs Rademakers
  • Optional Element Summary

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

    • resources

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