Add failing test for #3905 Fix Assert usage
This commit is contained in:
parent
e8f4ee8a39
commit
364db6762e
|
@ -418,6 +418,15 @@ public class AbstractAuthenticationProcessingFilterTests {
|
||||||
assertThat(response.getStatus()).isEqualTo(HttpServletResponse.SC_UNAUTHORIZED);
|
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
|
// ~ Inner Classes
|
||||||
// ==================================================================================================
|
// ==================================================================================================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue