Fix CsrfBeanDefinitionParserTests Merge

Issue: gh-6423
This commit is contained in:
Rob Winch 2019-01-22 14:15:37 -06:00
parent 41a7d82211
commit da17016bbd

View File

@ -28,11 +28,11 @@ public class CsrfBeanDefinitionParserTests {
@Test @Test
public void registerDataValueProcessorOnlyIfNotRegistered() throws Exception { public void registerDataValueProcessorOnlyIfNotRegistered() throws Exception {
try (ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext()) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext();
context.setAllowBeanDefinitionOverriding(false); context.setAllowBeanDefinitionOverriding(false);
context.setConfigLocation(this.xml("RegisterDataValueProcessorOnyIfNotRegistered")); context.setConfigLocation(this.xml("RegisterDataValueProcessorOnyIfNotRegistered"));
context.refresh(); context.refresh();
} context.close();
} }
private String xml(String configName) { private String xml(String configName) {