@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Inherited @Repeatable(value=DataObjectDefinitionDeployments.class) public @interface DataObjectDefinitionDeployment
resources()
are
provided, then an data object definition containing the name of the test class and method would be used to deploy. There are 2 use cases for this annotation:
TestInstance.Lifecycle#PER_CLASS
is used,
then the definitions will be deployed before all tests and removed after all tests.
@DataObjectDefinitionDeployment
class YourTest {
@BeforeEach
void setUp(DataObjectEngine dataObjectEngine) {
...
}
@Test
@DataObjectDefinitionDeployment
void myTest() {
...
}
...
}
Copyright © 2019. All rights reserved.