@Test(expected = ServletException.class) public void testDoFilter_BadArgs() throws Exception { filter.doFilter(null, null, null); }
@Test(expected = ServletException.class) public void testDoFilter_BadArgs() throws Exception { filter.doFilter(null, null, null); }
@Test(expected = ServletException.class) public void testDoFilter_BadArgs() throws Exception { filter.doFilter(null, null, null); }
@Test public void testNullSecurityToken() throws Exception { filter.setAuthenticationHandlers(ImmutableList.<AuthenticationHandler>of(nullStHandler)); filter.doFilter(request, recorder, chain); assertEquals(TEST_AUTH_HEADER, recorder.getHeader(AuthenticationServletFilter.WWW_AUTHENTICATE_HEADER)); }
@Test public void testNullSecurityToken() throws Exception { filter.setAuthenticationHandlers(ImmutableList.<AuthenticationHandler>of(nullStHandler)); filter.doFilter(request, recorder, chain); assertEquals(TEST_AUTH_HEADER, recorder.getHeader(AuthenticationServletFilter.WWW_AUTHENTICATE_HEADER)); }
@Test public void testNullSecurityToken() throws Exception { filter.setAuthenticationHandlers(ImmutableList.<AuthenticationHandler>of(nullStHandler)); filter.doFilter(request, recorder, chain); assertEquals(TEST_AUTH_HEADER, recorder.getHeader(AuthenticationServletFilter.WWW_AUTHENTICATE_HEADER)); }