Ticket ticket = this._ticketManager.getTicket(current.getCode());
assertEquals(Ticket.STATES_ASSIGNED, ticket.getStatus());
assertEquals("admin", ticket.getWttOperator());
List<TicketOperation> operations = this._ticketManager.getTicketOperations(current.getCode());
assertEquals(1, operations.size());
TicketOperation operation = operations.get(0);
assertEquals(TicketOperation.OPERATIONS_TAKEINCHARGE, operation.getOperationCode());
assertEquals("admin", operation.getOperator());
// t2 ASSIGNABLE
current = t2;
result = this.executeAction("admin", actionCode, current.getCode());
assertEquals("opNotAllowed", result);
ticket = this._ticketManager.getTicket(current.getCode());
this.compareTickets(current, ticket);
assertEquals(0, this._ticketManager.getTicketOperations(current.getCode()).size());
// t3 ASSIGNED
current = t3;
result = this.executeAction("admin", actionCode, current.getCode());
assertEquals("opNotAllowed", result);
ticket = this._ticketManager.getTicket(current.getCode());
this.compareTickets(current, ticket);
assertEquals(0, this._ticketManager.getTicketOperations(current.getCode()).size());
// t4 ASSIGNABLE
current = t4;
result = this.executeAction("mainEditor", actionCode, current.getCode());
assertEquals(Action.SUCCESS, result);
ticket = this._ticketManager.getTicket(current.getCode());
assertEquals(Ticket.STATES_ASSIGNED, ticket.getStatus());
assertEquals("mainEditor", ticket.getWttOperator());
operations = this._ticketManager.getTicketOperations(current.getCode());
assertEquals(1, operations.size());
operation = operations.get(0);
assertEquals(TicketOperation.OPERATIONS_TAKEINCHARGE, operation.getOperationCode());
assertEquals("mainEditor", operation.getOperator());
// t5 CLOSED
current = t5;
result = this.executeAction("admin", actionCode, current.getCode());
assertEquals("opNotAllowed", result);