mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-13 13:53:29 +00:00
Fix CsrfBeanDefinitionParserTests Merge
Issue: gh-6423
This commit is contained in:
parent
41a7d82211
commit
da17016bbd
@ -28,11 +28,11 @@ public class CsrfBeanDefinitionParserTests {
|
||||
|
||||
@Test
|
||||
public void registerDataValueProcessorOnlyIfNotRegistered() throws Exception {
|
||||
try (ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext()) {
|
||||
context.setAllowBeanDefinitionOverriding(false);
|
||||
context.setConfigLocation(this.xml("RegisterDataValueProcessorOnyIfNotRegistered"));
|
||||
context.refresh();
|
||||
}
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext();
|
||||
context.setAllowBeanDefinitionOverriding(false);
|
||||
context.setConfigLocation(this.xml("RegisterDataValueProcessorOnyIfNotRegistered"));
|
||||
context.refresh();
|
||||
context.close();
|
||||
}
|
||||
|
||||
private String xml(String configName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user