@Test void givenValidProviders_whenTheClassIsCreated_thenTheProvidersArePassedToSpring() { AuthProviderInitializer authProviderInitializer = new AuthProviderInitializer( loginAuthProvider, tokenAuthenticationProvider, certificateAuthenticationProvider ); AuthenticationManagerBuilder authenticationManagerBuilder = mock(AuthenticationManagerBuilder.class); authProviderInitializer.configure(authenticationManagerBuilder); verify(authenticationManagerBuilder).authenticationProvider(loginAuthProvider); verify(authenticationManagerBuilder).authenticationProvider(tokenAuthenticationProvider); verify(authenticationManagerBuilder).authenticationProvider(certificateAuthenticationProvider); }
public void configure(AuthenticationManagerBuilder auth) { auth.authenticationProvider(loginAuthProvider); auth.authenticationProvider(tokenAuthenticationProvider); auth.authenticationProvider(certificateAuthenticationProvider); }
AuthProviderInitializer { public void configure(AuthenticationManagerBuilder auth) { auth.authenticationProvider(loginAuthProvider); auth.authenticationProvider(tokenAuthenticationProvider); auth.authenticationProvider(certificateAuthenticationProvider); } }
AuthProviderInitializer { public void configure(AuthenticationManagerBuilder auth) { auth.authenticationProvider(loginAuthProvider); auth.authenticationProvider(tokenAuthenticationProvider); auth.authenticationProvider(certificateAuthenticationProvider); } AuthProviderInitializer(CompoundAuthProvider loginAuthProvider,
                                   TokenAuthenticationProvider tokenAuthenticationProvider,
                                   CertificateAuthenticationProvider certificateAuthenticationProvider); }
AuthProviderInitializer { public void configure(AuthenticationManagerBuilder auth) { auth.authenticationProvider(loginAuthProvider); auth.authenticationProvider(tokenAuthenticationProvider); auth.authenticationProvider(certificateAuthenticationProvider); } AuthProviderInitializer(CompoundAuthProvider loginAuthProvider,
                                   TokenAuthenticationProvider tokenAuthenticationProvider,
                                   CertificateAuthenticationProvider certificateAuthenticationProvider); void configure(AuthenticationManagerBuilder auth); }
AuthProviderInitializer { public void configure(AuthenticationManagerBuilder auth) { auth.authenticationProvider(loginAuthProvider); auth.authenticationProvider(tokenAuthenticationProvider); auth.authenticationProvider(certificateAuthenticationProvider); } AuthProviderInitializer(CompoundAuthProvider loginAuthProvider,
                                   TokenAuthenticationProvider tokenAuthenticationProvider,
                                   CertificateAuthenticationProvider certificateAuthenticationProvider); void configure(AuthenticationManagerBuilder auth);  }