Package com.atlassian.jira.rest.client.domain.input

Examples of com.atlassian.jira.rest.client.domain.input.TransitionInput


    final String errorMsg = doesJiraServeCorrectlyErrorMessagesForBadRequestWhileTransitioningIssue()
        ? expectedErrorMsg : null;
    assertErrorCode(Response.Status.BAD_REQUEST, errorMsg, new Runnable() {
      @Override
      public void run() {
        client.getIssueClient().transition(issue, new TransitionInput(transitionFound.getId(), comment), pm);
      }
    });
  }
View Full Code Here


  private void testTransitionImpl(Comment comment) {
    final Issue issue = client.getIssueClient().getIssue("TST-1", pm);
    final Iterable<Transition> transitions = client.getIssueClient().getTransitions(issue, pm);
    Transition transitionFound = TestUtil.getTransitionByName(transitions, "Estimate");
    DateTime now = new DateTime();
    client.getIssueClient().transition(issue, new TransitionInput(transitionFound.getId(), comment), pm);

    final Issue changedIssue = client.getIssueClient().getIssue("TST-1", pm);
    final Comment lastComment = Iterables.getLast(changedIssue.getComments());
    assertEquals(comment.getBody(), lastComment.getBody());
    assertEquals(USER_ADMIN, lastComment.getAuthor());
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.domain.input.TransitionInput

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.