Add failing test for #3905 Fix Assert usage

This commit is contained in:
Ruben Dijkstra 2016-06-01 11:53:48 +02:00 committed by Rob Winch
parent e8f4ee8a39
commit 364db6762e
1 changed files with 9 additions and 0 deletions

View File

@ -418,6 +418,15 @@ public class AbstractAuthenticationProcessingFilterTests {
assertThat(response.getStatus()).isEqualTo(HttpServletResponse.SC_UNAUTHORIZED);
}
/**
* https://github.com/spring-projects/spring-security/pull/3905
*/
@Test(expected = IllegalArgumentException.class)
public void setRememberMeServicesShouldntAllowNulls() {
AbstractAuthenticationProcessingFilter filter = new MockAuthenticationFilter();
filter.setRememberMeServices(null);
}
// ~ Inner Classes
// ==================================================================================================