Examples of GitHubIssues


Examples of org.eclipse.mylyn.github.internal.GitHubIssues

    gson = new Gson();
  }

  @Test
  public void unmarshalIssues() {
    GitHubIssues issues = gson.fromJson(
        getResource("resources/issues.json"), GitHubIssues.class);

    assertTrue(issues != null);
    assertTrue(issues.getIssues() != null);
   
    assertEquals(10,issues.getIssues().length);
   
    GitHubIssue issue = issues.getIssues()[9];
    //{"number":10,"votes":0,"created_at":"2010/02/04 21:03:54 -0800","body":"test description 2 ","title":"test issue for testing mylyn github connector2",
    // "updated_at":"2010/02/04 21:09:37 -0800","closed_at":null,"user":"dgreen99","labels":[],"state":"open"}]}
    assertEquals("10",issue.getNumber());
    assertEquals("2010/02/04 21:03:54 -0800",issue.getCreated_at());
    assertEquals("test description 2 ",issue.getBody());
View Full Code Here

Examples of org.eclipse.mylyn.github.internal.GitHubIssues

   */
  @SuppressWarnings("restriction")
  @Test
  public void searchIssues() throws Exception {
    final GitHubService service = new GitHubService();
    final GitHubIssues issues = service.searchIssues(TEST_USER,
        TEST_PROJECT, "open", "test");
    assertEquals(0, issues.getIssues().length);
  }
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.