Is it possible to overwrite the parameter values of an annotation used in a custom annotation?
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@SpringBootTest(classes = [HOW_TO_CHANGE_THESE])
@ComponentScan(basePackages = {[HOW_TO_CHANGE_THESE]})
@ActiveProfiles("testing")
public @interface IntegrationTest {
}
My intention was to reduce the number of annotations in my tests, while setting default values to all tests of this type. I would like to use it like this:
@IntegrationTest(classes="...", basePackages="...")
class AbcTest {
}
Thanks in advance!