Search in sources :

Example 6 with SessionRegistryImpl

use of org.springframework.security.core.session.SessionRegistryImpl in project spring-security by spring-projects.

the class ConcurrentSessionFilterTests method setLogoutHandlersWhenNullThenThrowsException.

@Test(expected = IllegalArgumentException.class)
public void setLogoutHandlersWhenNullThenThrowsException() {
    ConcurrentSessionFilter filter = new ConcurrentSessionFilter(new SessionRegistryImpl());
    filter.setLogoutHandlers(null);
}
Also used : SessionRegistryImpl(org.springframework.security.core.session.SessionRegistryImpl) ConcurrentSessionFilter(org.springframework.security.web.session.ConcurrentSessionFilter) Test(org.junit.Test)

Aggregations

SessionRegistryImpl (org.springframework.security.core.session.SessionRegistryImpl)6 Test (org.junit.Test)5 ConcurrentSessionFilter (org.springframework.security.web.session.ConcurrentSessionFilter)5 FilterChain (javax.servlet.FilterChain)3 MockFilterChain (org.springframework.mock.web.MockFilterChain)3 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)3 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)3 MockHttpSession (org.springframework.mock.web.MockHttpSession)3 SessionRegistry (org.springframework.security.core.session.SessionRegistry)3 SimpleRedirectSessionInformationExpiredStrategy (org.springframework.security.web.session.SimpleRedirectSessionInformationExpiredStrategy)2 Date (java.util.Date)1 SecurityContextLogoutHandler (org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler)1