Example usage for org.apache.shiro.session.mgt.eis CachingSessionDAO getActiveSessions

List of usage examples for org.apache.shiro.session.mgt.eis CachingSessionDAO getActiveSessions

Introduction

In this page you can find the example usage for org.apache.shiro.session.mgt.eis CachingSessionDAO getActiveSessions.

Prototype

public Collection<Session> getActiveSessions() 

Source Link

Document

Returns all active sessions in the system.

Usage

From source file:org.sonatype.nexus.security.StatelessAndStatefulWebSessionManagerTest.java

License:Open Source License

protected void initCache(CachingSessionDAO sessionDAO) {
    // init the cache safely by calling GetActiveSessions
    sessionDAO.getActiveSessions();

    // verify 0 active sessions to start
    MatcherAssert.assertThat(sessionDAO.getActiveSessions().size(), equalTo(0));
}