@Test public void test10expire() throws NotFoundException { String token = store.newToken("*****@*****.**", "domain.com"); assertThat(token, is(notNullValue())); assertThat(token.length(), is(not(0))); assertThat(store.getSessions().size(), is(1)); Session s = store.getSessions().get(0); store.expireSession(s.getId()); assertThat(store.getSessions().isEmpty(), is(true)); }
@Test(expected = NotFoundException.class) public void test0notFound() throws NotFoundException { store.expireSession("asdf"); }