Add protected setApplicationContext(:ConfigurableApplicationContext):ConfigurableApplicationContext method.

This commit is contained in:
John Blum
2018-08-28 16:50:17 -07:00
parent 7b8614f545
commit a8190ae205

View File

@@ -66,6 +66,13 @@ public abstract class SpringApplicationContextIntegrationTestsSupport extends In
return applicationContext;
}
protected <T extends ConfigurableApplicationContext> T setApplicationContext(T applicationContext) {
this.applicationContext = applicationContext;
return applicationContext;
}
@SuppressWarnings("unchecked")
protected <T extends ConfigurableApplicationContext> T getApplicationContext() {
return (T) this.applicationContext;