Esempio n. 1
0
 @Test
 public void testLogoutTypeNotSet() {
   final Collection<LogoutRequest> logoutRequests = this.logoutManager.performLogout(tgt);
   assertEquals(1, logoutRequests.size());
   final LogoutRequest logoutRequest = logoutRequests.iterator().next();
   assertEquals(ID, logoutRequest.getTicketId());
   assertEquals(this.simpleWebApplicationServiceImpl, logoutRequest.getService());
   assertEquals(LogoutRequestStatus.SUCCESS, logoutRequest.getStatus());
 }
Esempio n. 2
0
 @Test
 public void testLogoutTypeFront() {
   this.registeredService.setLogoutType(LogoutType.FRONT_CHANNEL);
   final Collection<LogoutRequest> logoutRequests = this.logoutManager.performLogout(tgt);
   assertEquals(1, logoutRequests.size());
   final LogoutRequest logoutRequest = logoutRequests.iterator().next();
   assertEquals(ID, logoutRequest.getTicketId());
   assertEquals(this.simpleWebApplicationServiceImpl, logoutRequest.getService());
   assertEquals(LogoutRequestStatus.NOT_ATTEMPTED, logoutRequest.getStatus());
 }