Ver Fonte

SpringTestContext.getContext()

Add accessor method for SpringTestContext.getContext()

Fixes gh-4796
Rob Winch há 7 anos atrás
pai
commit
1506dcd413

+ 4 - 0
config/src/test/java/org/springframework/security/config/test/SpringTestContext.java

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