diff --git a/core/src/main/java/org/springframework/security/util/InMemoryXmlApplicationContext.java b/core/src/main/java/org/springframework/security/util/InMemoryXmlApplicationContext.java index b0bbfa229c..37559c2cba 100644 --- a/core/src/main/java/org/springframework/security/util/InMemoryXmlApplicationContext.java +++ b/core/src/main/java/org/springframework/security/util/InMemoryXmlApplicationContext.java @@ -9,11 +9,11 @@ import org.springframework.core.io.Resource; */ public class InMemoryXmlApplicationContext extends AbstractXmlApplicationContext { private static final String BEANS_OPENING = - "\n"; + "\n"; private static final String BEANS_CLOSE = "\n"; Resource inMemoryXml; @@ -31,8 +31,4 @@ public class InMemoryXmlApplicationContext extends AbstractXmlApplicationContext protected Resource[] getConfigResources() { return new Resource[] {inMemoryXml}; } - - public static void main(String[] args) { - new InMemoryXmlApplicationContext(""); - } } diff --git a/core/src/test/java/org/springframework/security/config/LdapServerBeanDefinitionParserTests.java b/core/src/test/java/org/springframework/security/config/LdapServerBeanDefinitionParserTests.java index c2d1712c9a..3831e40285 100644 --- a/core/src/test/java/org/springframework/security/config/LdapServerBeanDefinitionParserTests.java +++ b/core/src/test/java/org/springframework/security/config/LdapServerBeanDefinitionParserTests.java @@ -3,7 +3,6 @@ package org.springframework.security.config; import org.springframework.security.util.InMemoryXmlApplicationContext; import org.springframework.security.ldap.SpringSecurityContextSource; -import org.springframework.ldap.core.support.BaseLdapPathContextSource; import org.springframework.ldap.core.LdapTemplate; import org.junit.Test; @@ -38,8 +37,8 @@ public class LdapServerBeanDefinitionParserTests { @Test public void useOfUrlAttributeCreatesCorrectContextSource() { // Create second "server" with a url pointing at embedded one - appCtx = new InMemoryXmlApplicationContext("" + - ""); + appCtx = new InMemoryXmlApplicationContext("" + + ""); // Check the default context source is still there. appCtx.getBean(BeanIds.CONTEXT_SOURCE); @@ -54,7 +53,7 @@ public class LdapServerBeanDefinitionParserTests { @Test public void loadingSpecificLdifFileIsSuccessful() { appCtx = new InMemoryXmlApplicationContext( - ""); + ""); SpringSecurityContextSource contextSource = (SpringSecurityContextSource) appCtx.getBean(BeanIds.CONTEXT_SOURCE); LdapTemplate template = new LdapTemplate(contextSource);