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
|
@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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user