Package com.agiletec.plugins.jpwtt.aps.system.services.ticket.model

Examples of com.agiletec.plugins.jpwtt.aps.system.services.ticket.model.TicketOperation


      result = this.executeAction("admin", actionCode, ticketCode, params);
      assertEquals(Action.SUCCESS, result);
      assertEquals(Ticket.STATES_ASSIGNABLE, this._ticketManager.getTicket(ticketCode).getStatus());
      List<TicketOperation> operations = this._ticketManager.getTicketOperations(ticketCode);
      assertEquals(1, operations.size());
      TicketOperation operation = operations.get(0);
      assertEquals(TicketOperation.OPERATIONS_SETASSIGNABLE, operation.getOperationCode());
      assertEquals(null, operation.getNote());

      result = this.executeAction("admin", actionCode, t2.getCode(), params);
      assertEquals("opNotAllowed", result);
      assertEquals(1, this.getAction().getActionErrors().size());
View Full Code Here


      assertEquals(Action.SUCCESS, result);
      Ticket ticket = this._ticketManager.getTicket(current.getCode());
      assertEquals(Ticket.STATES_ASSIGNED, ticket.getStatus());
      List<TicketOperation> operations = this._ticketManager.getTicketOperations(current.getCode());
      assertEquals(1, operations.size());
      TicketOperation operation = operations.get(0);
      assertEquals(TicketOperation.OPERATIONS_ANSWER, operation.getOperationCode());
      assertEquals("note", operation.getNote());

      current = t1;
      result = this.executeAction("admin", actionCode, current.getCode(), params);
      assertEquals("opNotAllowed", result);
      assertEquals(1, this.getAction().getActionErrors().size());
View Full Code Here

      assertEquals(1, ticket.getOpInterventionType());
      assertEquals(0, ticket.getUserInterventionType());
      assertEquals(1, ticket.getPriority());
      List<TicketOperation> operations = this._ticketManager.getTicketOperations(current.getCode());
      assertEquals(1, operations.size());
      TicketOperation operation = operations.get(0);
      assertEquals(TicketOperation.OPERATIONS_UPDATE, operation.getOperationCode());
      assertEquals("note", operation.getNote());

      current = t1;
      result = this.executeAction("admin", actionCode, current.getCode(), params);
      assertEquals("opNotAllowed", result);
      assertEquals(1, this.getAction().getActionErrors().size());
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpwtt.aps.system.services.ticket.model.TicketOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.