Ejemplo n.º 1
0
 @Test
 public void testLogoutTypeNull() {
   this.registeredService.setLogoutType(null);
   final Collection<LogoutRequest> logoutRequests = this.logoutManager.performLogout(tgt);
   assertEquals(1, logoutRequests.size());
   final LogoutRequest logoutRequest = logoutRequests.iterator().next();
   assertEquals(ID, logoutRequest.getTicketId());
 }
Ejemplo n.º 2
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());
 }
Ejemplo n.º 3
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());
 }