@Test public void onAuthenticationSuccess_ShouldSetResponseStatusToOk() throws ServletException, IOException { MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); Authentication authentication = new TestingAuthenticationToken(null, null); successHandler.onAuthenticationSuccess(request, response, authentication); assertEquals(MockHttpServletResponse.SC_OK, response.getStatus()); }
@Override public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException { response.setStatus(HttpServletResponse.SC_OK); clearAuthenticationAttributes(request); }
RestAuthenticationSuccessHandler extends SimpleUrlAuthenticationSuccessHandler { @Override public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException { response.setStatus(HttpServletResponse.SC_OK); clearAuthenticationAttributes(request); } }
RestAuthenticationSuccessHandler extends SimpleUrlAuthenticationSuccessHandler { @Override public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException { response.setStatus(HttpServletResponse.SC_OK); clearAuthenticationAttributes(request); }  }
RestAuthenticationSuccessHandler extends SimpleUrlAuthenticationSuccessHandler { @Override public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException { response.setStatus(HttpServletResponse.SC_OK); clearAuthenticationAttributes(request); }  @Override void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
                                        Authentication authentication); }
RestAuthenticationSuccessHandler extends SimpleUrlAuthenticationSuccessHandler { @Override public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException { response.setStatus(HttpServletResponse.SC_OK); clearAuthenticationAttributes(request); }  @Override void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
                                        Authentication authentication);  }