I have a Spring test that uses:
@RunWith(SpringJUnit4ClassRunner.class)
Unlike the older way of testing, extending from the Spring test base classes, there appears to be no obvious way to access to the ApplicationContext that has been loaded by Spring using @ContextConfiguration
How can I access the ApplicationContext object from my test methods?
Thanks!
From the Integration Testing section of the Spring Documentation