List of usage examples for org.apache.shiro.session.mgt.eis CachingSessionDAO getActiveSessions
public Collection<Session> getActiveSessions()
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)); }