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