Minor updates to test XML context implementation.
This commit is contained in:
parent
a4a0aab66f
commit
6ae61f95db
|
@ -273,7 +273,7 @@ public class GlobalMethodSecurityBeanDefinitionParserTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setContext(String context, ApplicationContext parent) {
|
private void setContext(String context, ApplicationContext parent) {
|
||||||
appContext = new InMemoryXmlApplicationContext(context, "3.0", parent);
|
appContext = new InMemoryXmlApplicationContext(context, parent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,9 @@ public class InMemoryXmlApplicationContext extends AbstractXmlApplicationContext
|
||||||
this(xml, "3.0", null);
|
this(xml, "3.0", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public InMemoryXmlApplicationContext(String xml, ApplicationContext parent) {
|
||||||
|
this(xml, "3.0", parent);
|
||||||
|
}
|
||||||
|
|
||||||
public InMemoryXmlApplicationContext(String xml, String secVersion, ApplicationContext parent) {
|
public InMemoryXmlApplicationContext(String xml, String secVersion, ApplicationContext parent) {
|
||||||
String fullXml = BEANS_OPENING + secVersion + ".xsd'>\n" + xml + BEANS_CLOSE;
|
String fullXml = BEANS_OPENING + secVersion + ".xsd'>\n" + xml + BEANS_CLOSE;
|
||||||
|
|
Loading…
Reference in New Issue