コード例 #1
0
 @Test
 public void testDoLogout() throws Exception {
   accountService.addUser(testUser);
   accountService.doLogin(TEST_SESSION_ID, testLoginRequest);
   final boolean result = accountService.doLogout(TEST_SESSION_ID);
   assertTrue(result);
 }
コード例 #2
0
 @Test
 public void testDoLogoutNoSessionFail() throws Exception {
   final boolean result = accountService.doLogout(INVALID_SESSION_ID);
   assertFalse(result);
 }