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

Examples of com.atlassian.jira.rest.client.domain.BasicIssue


  final SearchResultJsonParser parser = new SearchResultJsonParser();

  @Test
  public void testParse() throws Exception {
    final SearchResult searchResult = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/search/issues1.json"));
    final ArrayList<BasicIssue> issues = Lists.newArrayList(new BasicIssue(toUri("http://localhost:8090/jira/rest/api/latest/issue/TST-7"), "TST-7"));

    assertEquals(new SearchResult(0, 50, 1, issues), searchResult);
  }
View Full Code Here


    assertEquals(9, searchResult.getTotal());
    assertEquals(8, searchResult.getMaxResults());
    assertEquals(0, searchResult.getStartIndex());
    assertEquals(8, Iterables.size(searchResult.getIssues()));
    assertEquals(new BasicIssue(toUri("http://localhost:8090/jira/rest/api/latest/issue/RST-1"), "RST-1"), Iterables.getLast(searchResult.getIssues()));
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.domain.BasicIssue

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.