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:
Referenced from: commits 2244461
Phil Webb opened SPR-13955 and commented
The
@ContextConfigurationannotation is often not really needed if working with a single config. For example:Issue Links:
Referenced from: commits 2244461