SEC-1272: <authentication-manager> does not register default event handler DefaultAuthenticationEventPublisher. Fixed Spring RC1 - RC2 regression problem with test (addApplicationListener() behaviour has changed).
This commit is contained in:
parent
b39db5b711
commit
afdd80235c
|
@ -44,7 +44,6 @@ public class AuthenticationManagerBeanDefinitionParserTests {
|
||||||
setContext(CONTEXT, "3.0");
|
setContext(CONTEXT, "3.0");
|
||||||
AuthListener listener = new AuthListener();
|
AuthListener listener = new AuthListener();
|
||||||
appContext.addApplicationListener(listener);
|
appContext.addApplicationListener(listener);
|
||||||
appContext.refresh();
|
|
||||||
|
|
||||||
ProviderManager pm = (ProviderManager) appContext.getBeansOfType(ProviderManager.class).values().toArray()[0];
|
ProviderManager pm = (ProviderManager) appContext.getBeansOfType(ProviderManager.class).values().toArray()[0];
|
||||||
Object eventPublisher = FieldUtils.getFieldValue(pm, "eventPublisher");
|
Object eventPublisher = FieldUtils.getFieldValue(pm, "eventPublisher");
|
||||||
|
|
Loading…
Reference in New Issue