Closed
Description
Stepan Koltsov opened SPR-7769 and commented
have test:
@RunWith(SpringJUnit4ClassRunner.class)
@Import(SomeTestContext.class)
public class SomeTest {
....
}
get exception:
Caused by: java.lang.IllegalArgumentException: Can not load an ApplicationContext with a NULL 'contextLoader'. Consider annotating your test class with @ContextConfiguration.
at org.springframework.util.Assert.notNull(Assert.java:112)
at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:276)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
... 24 more
Affects: 3.0.2
Issue Links:
- Provide TestContext support for @Configuration classes [SPR-6184] #10852 Provide TestContext support for
@Configuration
classes ("duplicates")