Package com.atlassian.jira.rest.client

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


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

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

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


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

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

    final Issue issueWithComments = issueClient.getIssue(issueKey, pm);
    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.