@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Inherited @Repeatable(value=PolicyDefinitionDeployments.class) public @interface PolicyDefinitionDeployment
resources()
are
provided, then a policy definition containing the name of the test class and method would be used to deploy. There are 2 use cases for this annotation:
@PolicyDefinitionDeployment
class YourTest {
@BeforeEach
void setUp(PolicyEngine policyEngine) {
...
}
@Test
@PolicyDefinitionDeployment
void myTest(PolicyRepositoryService repositoryService) {
...
}
...
}
Copyright © 2019. All rights reserved.