@Retention(value=RUNTIME) public @interface Deployment
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
}
@Deployment(resources = { "org/example/processOne.bpmn20.xml" },
tenantId = "example")
public void testForATenantDeploymentWithASingleResource() {
// a deployment will be available in the engine repository
// containing the single resource for the specified tenant
}
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
extraResources
Specify resources that are extra, on top of the automatically detected test resources.
|
String[] |
resources
Specify all the resources that make up the deployment.
|
String |
tenantId
Specify tenantId to deploy for
|
boolean |
validateBpmn
Whether the model should be validated during deployment.
|
public abstract String[] resources
public abstract String[] extraResources
public abstract String tenantId
Copyright © 2022 Flowable. All rights reserved.