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

Examples of com.atlassian.jira.rest.client.api.domain.BasicPriority


  }

  @Test
  public void testParseWithoutId() throws Exception {
    final BasicPriorityJsonParser parser = new BasicPriorityJsonParser();
    final BasicPriority basicPriority = parser.parse(ResourceUtil
        .getJsonObjectFromResource("/json/priority/valid-without-id.json"));
    Assert.assertEquals(new BasicPriority(TestUtil
        .toUri("http://localhost:8090/jira/rest/api/latest/priority/3"), null, "XMajor"), basicPriority);
  }
View Full Code Here


    assertEquals(Long.valueOf(10040), issue.getId());
    assertEquals(toUri("http://localhost:8090/jira/rest/api/latest/issue/10040"), issue.getSelf());
    assertEquals("A task where someone will vote", issue.getSummary());
    assertNull(issue.getDescription()); // by default search doesn't retrieve description

    final BasicPriority expectedPriority = new BasicPriority(toUri("http://localhost:8090/jira/rest/api/2/priority/3"), 3L, "Major");
    assertEquals(expectedPriority, issue.getPriority());

    final BasicStatus expectedStatus = new BasicStatus(toUri("http://localhost:8090/jira/rest/api/2/status/1"), "Open");
    assertEquals(expectedStatus, issue.getStatus());
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.api.domain.BasicPriority

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.