Minor updates to test XML context implementation.

This commit is contained in:
Luke Taylor 2009-07-31 19:37:05 +00:00
parent a4a0aab66f
commit 6ae61f95db
2 changed files with 4 additions and 1 deletions

View File

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

View File

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