Annotation Interface PlatformDeployment
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Inherited
@Repeatable(PlatformDeployments.class)
public @interface PlatformDeployment
Annotation that can be used to trigger a deployment of query definitions for the provided test. If no
resources()
are
provided, then an query definition containing the name of the test class and method would be used to deploy. There are 2 use cases for this annotation:
- Class level - The query definitions will be deployed before all tests, and they will be removed after all tests
- Method level - The query definitions will be deployed before the test and will be removed after the test
@QueryDefinitionDeployment
class YourTest {
@BeforeEach
void setUp(PlatformEngine platformEngine) {
...
}
@Test
@QueryDefinitionDeployment
void myTest(ServiceService serviceService) {
...
}
...
}
- Author:
- Yvo Swillens
-
Optional Element Summary