@Test public void changePasswordLdapTest() throws Exception { sut = new AuthenticationManagerImpl(true, list).getObject(); sut.changePassword(user, PASSWORD); verify(authenticationManagerLdap).changePassword(user, PASSWORD); }
public AuthenticationManager getObject() throws Exception { AuthenticationManager authenticationManager = null; for (AuthenticationManager authManager : this.authenticationManagers) { if (authManager instanceof AuthenticationManagerLdapImpl && ldapProviderEnabled) { authenticationManager = authManager; } if (authManager instanceof AuthenticationManagerDaoImpl && !ldapProviderEnabled) { authenticationManager = authManager; } } return authenticationManager; }
AuthenticationManagerImpl implements FactoryBean { public AuthenticationManager getObject() throws Exception { AuthenticationManager authenticationManager = null; for (AuthenticationManager authManager : this.authenticationManagers) { if (authManager instanceof AuthenticationManagerLdapImpl && ldapProviderEnabled) { authenticationManager = authManager; } if (authManager instanceof AuthenticationManagerDaoImpl && !ldapProviderEnabled) { authenticationManager = authManager; } } return authenticationManager; } }
AuthenticationManagerImpl implements FactoryBean { public AuthenticationManager getObject() throws Exception { AuthenticationManager authenticationManager = null; for (AuthenticationManager authManager : this.authenticationManagers) { if (authManager instanceof AuthenticationManagerLdapImpl && ldapProviderEnabled) { authenticationManager = authManager; } if (authManager instanceof AuthenticationManagerDaoImpl && !ldapProviderEnabled) { authenticationManager = authManager; } } return authenticationManager; } AuthenticationManagerImpl(boolean ldapProviderEnabled, List<AuthenticationManager> authenticationManagers); }
AuthenticationManagerImpl implements FactoryBean { public AuthenticationManager getObject() throws Exception { AuthenticationManager authenticationManager = null; for (AuthenticationManager authManager : this.authenticationManagers) { if (authManager instanceof AuthenticationManagerLdapImpl && ldapProviderEnabled) { authenticationManager = authManager; } if (authManager instanceof AuthenticationManagerDaoImpl && !ldapProviderEnabled) { authenticationManager = authManager; } } return authenticationManager; } AuthenticationManagerImpl(boolean ldapProviderEnabled, List<AuthenticationManager> authenticationManagers); AuthenticationManager getObject(); Class getObjectType(); boolean isSingleton(); }
AuthenticationManagerImpl implements FactoryBean { public AuthenticationManager getObject() throws Exception { AuthenticationManager authenticationManager = null; for (AuthenticationManager authManager : this.authenticationManagers) { if (authManager instanceof AuthenticationManagerLdapImpl && ldapProviderEnabled) { authenticationManager = authManager; } if (authManager instanceof AuthenticationManagerDaoImpl && !ldapProviderEnabled) { authenticationManager = authManager; } } return authenticationManager; } AuthenticationManagerImpl(boolean ldapProviderEnabled, List<AuthenticationManager> authenticationManagers); AuthenticationManager getObject(); Class getObjectType(); boolean isSingleton();  }