Package zendeskapi.models.requests

Examples of zendeskapi.models.requests.GroupCommentResponse


    Comment newComment = new Comment();
    newComment.setBody("something more to say");
    irrById.getRequest().setComment(newComment);
   
    API.getRequests().updateRequest(irrById.getRequest());
    GroupCommentResponse gcr = API.getRequests().getRequestCommentsById(irr.getRequest().getId());
    Assert.assertEquals(gcr.getComments().get(gcr.getComments().size()-1).getBody().replace("\n", ""), "something more to say");
   
    IndividualCommentResponse icr = API.getRequests().getSpecificRequestComment(irr.getRequest().getId(), gcr.getComments().get(gcr.getComments().size()-1).getId());
    Assert.assertTrue(icr.getComment().getId().longValue() == gcr.getComments().get(gcr.getComments().size()-1).getId().longValue());
   
    Assert.assertTrue(API.getTickets().delete(irrById.getRequest().getId()));
  }
View Full Code Here

TOP

Related Classes of zendeskapi.models.requests.GroupCommentResponse

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.