Package com.atlassian.jira.rest.client.api

Examples of com.atlassian.jira.rest.client.api.IssueRestClient.addComment()


  private Comment testAddCommentToIssueImpl(final String issueKey, final Comment comment) {
    final IssueRestClient issueClient = client.getIssueClient();
    final Issue issue = issueClient.getIssue(issueKey).claim();
    final List<Comment> initialComments = Lists.newArrayList(issue.getComments());

    issueClient.addComment(issue.getCommentsUri(), comment).claim();

    final Issue issueWithComments = issueClient.getIssue(issueKey).claim();
    final List<Comment> newComments = Lists.newArrayList(issueWithComments.getComments());
    newComments.removeAll(initialComments);
    assertEquals(1, Iterables.size(newComments));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.