SpringTestContext.getContext()

Add accessor method for SpringTestContext.getContext()

Fixes gh-4796
This commit is contained in:
Rob Winch 2017-11-03 22:53:18 -05:00
parent db35dc6c03
commit 1506dcd413

View File

@ -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);