From 6ae61f95db856fd233602f8b793b6f9705359f2f Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Fri, 31 Jul 2009 19:37:05 +0000 Subject: [PATCH] Minor updates to test XML context implementation. --- .../method/GlobalMethodSecurityBeanDefinitionParserTests.java | 2 +- .../security/config/util/InMemoryXmlApplicationContext.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java b/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java index fc41a8aadd..687dec9473 100644 --- a/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java +++ b/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java @@ -273,7 +273,7 @@ public class GlobalMethodSecurityBeanDefinitionParserTests { } private void setContext(String context, ApplicationContext parent) { - appContext = new InMemoryXmlApplicationContext(context, "3.0", parent); + appContext = new InMemoryXmlApplicationContext(context, parent); } } diff --git a/config/src/test/java/org/springframework/security/config/util/InMemoryXmlApplicationContext.java b/config/src/test/java/org/springframework/security/config/util/InMemoryXmlApplicationContext.java index 83cdb6f29a..f5e50f03e5 100644 --- a/config/src/test/java/org/springframework/security/config/util/InMemoryXmlApplicationContext.java +++ b/config/src/test/java/org/springframework/security/config/util/InMemoryXmlApplicationContext.java @@ -26,6 +26,9 @@ public class InMemoryXmlApplicationContext extends AbstractXmlApplicationContext this(xml, "3.0", null); } + public InMemoryXmlApplicationContext(String xml, ApplicationContext parent) { + this(xml, "3.0", parent); + } public InMemoryXmlApplicationContext(String xml, String secVersion, ApplicationContext parent) { String fullXml = BEANS_OPENING + secVersion + ".xsd'>\n" + xml + BEANS_CLOSE;