Examples of deleteIssue()


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

    final String issueKey = "TST-1";
    final Issue issue = issueClient.getIssue(issueKey).claim();
    assertEquals(issueKey, issue.getKey());

    // delete issue
    issueClient.deleteIssue(issueKey, false).claim();

    // verify
    assertThatIssueNotExists(issueKey);
  }
View Full Code Here

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

    assertEquals(issueKey, issue.getKey());
    final BasicIssue subtask = addSubtaskToIssue(issue);
    System.out.println(subtask);

    // delete issue
    issueClient.deleteIssue(issueKey, true).claim();

    // verify
    assertThatIssueNotExists(issueKey);
    assertThatIssueNotExists(subtask.getKey());
  }
View Full Code Here

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

    System.out.println(subtask);

    // delete issue
    expectedException.expect(rceWithSingleError(400, String.format("The issue '%s' has subtasks.  "
        + "You must specify the 'deleteSubtasks' parameter to delete this issue and all its subtasks.", issueKey)));
    issueClient.deleteIssue(issueKey, false).claim();
  }

  @Test
  public void testDeleteIssueWhenNoSuchIssue() {
    final IssueRestClient issueClient = client.getIssueClient();
View Full Code Here

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

    final String issueKey = "TST-999";
    assertThatIssueNotExists(issueKey);

    // delete issue should thrown 404
    expectedException.expect(rceWithSingleError(404, "Issue Does Not Exist"));
    issueClient.deleteIssue(issueKey, false).claim();
  }

  @Test
  public void testDeleteIssueWithoutDeletePermission() {
    setAnonymousMode();
View Full Code Here

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

    final Issue issue = issueClient.getIssue(issueKey).claim();
    assertEquals(issueKey, issue.getKey());

    // delete issue should thrown 401
    expectedException.expect(rceWithSingleError(401, "You do not have permission to delete issues in this project."));
    issueClient.deleteIssue(issueKey, false).claim();
  }

  @Test
  public void testTransitionWithNumericCustomFieldAndInteger() throws Exception {
    final Issue issue = client.getIssueClient().getIssue("TST-1").claim();
View Full Code Here

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

    final String issueKey = "TST-1";
    final Issue issue = issueClient.getIssue(issueKey).claim();
    assertEquals(issueKey, issue.getKey());

    // delete issue
    issueClient.deleteIssue(issueKey, false).claim();

    // verify
    assertThatIssueNotExists(issueKey);
  }
View Full Code Here

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

    assertEquals(issueKey, issue.getKey());
    final BasicIssue subtask = addSubtaskToIssue(issue);
    System.out.println(subtask);

    // delete issue
    issueClient.deleteIssue(issueKey, true).claim();

    // verify
    assertThatIssueNotExists(issueKey);
    assertThatIssueNotExists(subtask.getKey());
  }
View Full Code Here

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

    System.out.println(subtask);

    // delete issue
    expectedException.expect(rceWithSingleError(400, String.format("The issue '%s' has subtasks.  "
        + "You must specify the 'deleteSubtasks' parameter to delete this issue and all its subtasks.", issueKey)));
    issueClient.deleteIssue(issueKey, false).claim();
  }

  @Test
  public void testDeleteIssueWhenNoSuchIssue() {
    final IssueRestClient issueClient = client.getIssueClient();
View Full Code Here

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

    final String issueKey = "TST-999";
    assertThatIssueNotExists(issueKey);

    // delete issue should thrown 404
    expectedException.expect(rceWithSingleError(404, "Issue Does Not Exist"));
    issueClient.deleteIssue(issueKey, false).claim();
  }

  @Test
  public void testDeleteIssueWithoutDeletePermission() {
    setAnonymousMode();
View Full Code Here

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

    final Issue issue = issueClient.getIssue(issueKey).claim();
    assertEquals(issueKey, issue.getKey());

    // delete issue should thrown 401
    expectedException.expect(rceWithSingleError(401, "You do not have permission to delete issues in this project."));
    issueClient.deleteIssue(issueKey, false).claim();
  }

  @Test
  public void testUpdateField() {
    final Issue issue = client.getIssueClient().getIssue("TST-1").claim();
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.