Browse Source

Minor changes to improve robustess of LDAP tests.

Luke Taylor 18 years ago
parent
commit
5a3f5fcd78

+ 3 - 1
core/src/test/java/org/springframework/security/config/LdapBeanDefinitionParserTests.java

@@ -25,7 +25,9 @@ public class LdapBeanDefinitionParserTests {
     @AfterClass
     public static void closeContext() {
         // Make sure apache ds shuts down
-        appContext.close();
+        if (appContext != null) {
+            appContext.close();
+        }
     }
 
     @Test