spring-framework / org.springframework.test.context.junit4 / AbstractJUnit4SpringContextTests / setApplicationContext

setApplicationContext

fun setApplicationContext(applicationContext: ApplicationContext): Unit

Set the ApplicationContext to be used by this test instance, provided via ApplicationContextAware semantics.

Parameters

applicationContext - the ApplicationContext that this test runs in