From afdd80235cab22c7a412eaa703c3dfc0db2ef466 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 17 Nov 2009 14:34:43 +0000 Subject: [PATCH] SEC-1272: does not register default event handler DefaultAuthenticationEventPublisher. Fixed Spring RC1 - RC2 regression problem with test (addApplicationListener() behaviour has changed). --- .../AuthenticationManagerBeanDefinitionParserTests.java | 1 - 1 file changed, 1 deletion(-) diff --git a/config/src/test/java/org/springframework/security/config/authentication/AuthenticationManagerBeanDefinitionParserTests.java b/config/src/test/java/org/springframework/security/config/authentication/AuthenticationManagerBeanDefinitionParserTests.java index bf6782c9a7..1d3a7f0ddb 100644 --- a/config/src/test/java/org/springframework/security/config/authentication/AuthenticationManagerBeanDefinitionParserTests.java +++ b/config/src/test/java/org/springframework/security/config/authentication/AuthenticationManagerBeanDefinitionParserTests.java @@ -44,7 +44,6 @@ public class AuthenticationManagerBeanDefinitionParserTests { setContext(CONTEXT, "3.0"); AuthListener listener = new AuthListener(); appContext.addApplicationListener(listener); - appContext.refresh(); ProviderManager pm = (ProviderManager) appContext.getBeansOfType(ProviderManager.class).values().toArray()[0]; Object eventPublisher = FieldUtils.getFieldValue(pm, "eventPublisher");