예제 #1
0
  @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));
  }
예제 #2
0
 @Test(expected = NotFoundException.class)
 public void test0notFound() throws NotFoundException {
   store.expireSession("asdf");
 }