Ver Fonte

SEC-1272: <authentication-manager> does not register default event handler DefaultAuthenticationEventPublisher. Fixed Spring RC1 - RC2 regression problem with test (addApplicationListener() behaviour has changed).

Luke Taylor há 15 anos atrás
pai
commit
afdd80235c

+ 0 - 1
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");