mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 09:12:14 +00:00
SpringTestContext.getContext()
Add accessor method for SpringTestContext.getContext() Fixes gh-4796
This commit is contained in:
parent
db35dc6c03
commit
1506dcd413
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user