Closed
Description
Phil Webb opened SPR-13955 and commented
The @ContextConfiguration
annotation is often not really needed if working with a single config. For example:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class MyTest {
@Test
public void sometest() throws Exception {
}
@Configuration
static class Config {
@Bean
public String myBean() {
return "Hello";
}
}
}
Issue Links:
- Allow AbstractTestContextBootstrapper to provide default ContextConfigurationAttributes [SPR-13949] #18521 Allow AbstractTestContextBootstrapper to provide default ContextConfigurationAttributes
- Allow AbstractTestContextBootstrapper to provide default ContextConfigurationAttributes [SPR-13949] #18521 Allow AbstractTestContextBootstrapper to provide default ContextConfigurationAttributes ("supersedes")
Referenced from: commits 2244461