From 5a3f5fcd786f8f92f702bf7edf11373b16cee7af Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 2 Oct 2007 14:49:08 +0000 Subject: [PATCH] Minor changes to improve robustess of LDAP tests. --- .../security/config/LdapBeanDefinitionParserTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/org/springframework/security/config/LdapBeanDefinitionParserTests.java b/core/src/test/java/org/springframework/security/config/LdapBeanDefinitionParserTests.java index 874df2e60a..06f761f770 100644 --- a/core/src/test/java/org/springframework/security/config/LdapBeanDefinitionParserTests.java +++ b/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