org.activiti.engine.test
注释类型 Deployment


@Retention(value=RUNTIME)
public @interface Deployment

Annotation for a test method to create and delete a deployment around a test method.

Usage:

 package org.example;
 
 ...
 
 public class ExampleTest {
 
   @Deployment
   public void testForADeploymentWithASingleResource() {
     // a deployment will be available in the engine repository
     // containing the single resource org/example/ExampleTest.testForADeploymentWithASingleResource.bpmn20.xml
   }
 
   @Deployment(resources = { 
     "org/example/processOne.bpmn20.xml",
     "org/example/processTwo.bpmn20.xml",
     "org/example/some.other.resource" })
   public void testForADeploymentWithASingleResource() {
     // a deployment will be available in the engine repository
     // containing the three resources
   }
 

作者:
Dave Syer, Tom Baeyens

可选元素摘要
 String[] resources
          Specify resources that make up the process definition.
 

resources

public abstract String[] resources
Specify resources that make up the process definition.

默认值:
{}


Copyright © 2013 Alfresco. All rights reserved.