|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) public @interface Deployment
Annotation for a test method or class to create and delete a deployment around a test method.
Usage - Example 1 (method-level annotation):
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
}
Usage - Example 2 (class-level annotation):
package org.example;
...
@Deployment
public class ExampleTest2 {
public void testForADeploymentWithASingleResource() {
// a deployment will be available in the engine repository
// containing the single resource org/example/ExampleTest2.bpmn20.xml
}
@Deployment(resources = "org/example/process.bpmn20.xml")
public void testForADeploymentWithASingleResource() {
// the method-level annotation overrides the class-level annotation
}
| Optional Element Summary | |
|---|---|
String[] |
resources
Specify resources that make up the process definition. |
public abstract String[] resources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||