SpringTestContext.getContext()
Add accessor method for SpringTestContext.getContext() Fixes gh-4796
This commit is contained in:
@@ -51,6 +51,10 @@ public class SpringTestContext implements Closeable {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ConfigurableApplicationContext getContext() {
|
||||
return this.context;
|
||||
}
|
||||
|
||||
public void autowire() {
|
||||
this.context.refresh();
|
||||
this.context.getBeanFactory().autowireBean(this.test);
|
||||
|
||||
Reference in New Issue
Block a user