Open
Description
Justin Knowles opened SPR-14378 and commented
@TestPropertySource
allows you to set test-suite / class-level properties, but I want test-level properties so I can test drive classes with @ConditionalOnProperty
and @Value(${var:default})
type annotations for correct behavior.
I have considered creating separate test suites for each test, but that seems unnatural. I currently manually manage the context within the test to validate the behavior.
Issue Links:
- Support @ActiveProfiles at method level [SPR-9338] #13977 Support
@ActiveProfiles
at method level - Support @ContextConfiguration at method level [SPR-12031] #16647 Support
@ContextConfiguration
at method level
8 votes, 14 watchers