Examples of GithubIssue


Examples of com.atlauncher.reporter.GithubIssue

import org.junit.Test;

public final class TestGithubIssue{
    @Test
    public void test(){
        GithubIssue issue = new GithubIssue("Test", "Test");
        System.out.println(issue);
    }
View Full Code Here

Examples of com.marcusilgner.ghcity.models.GithubIssue

               throw new RuntimeException("Error fetching issue data", e);
           }
        }

        private IssueData parseIssue(final InputStream _json) {
            GithubIssue issue = Json.fromJson(_json, GithubIssue.class);
            String url = getUrl(host, id);
            IssueData result = new IssueData(id, issue.title, issue.state, url, issue.isResolved());
            return result;
        }
View Full Code Here

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

    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());
    assertEquals("test issue for testing mylyn github connector2",issue.getTitle());
    assertEquals("2010/02/04 21:09:37 -0800",issue.getUpdated_at());
    assertNull(issue.getClosed_at());
    assertEquals("dgreen99",issue.getUser());
    assertEquals("open",issue.getState());
  }
View Full Code Here

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

   * Test the GitHubService implementation for opening a new issue.
   */
  @Test
  public void openIssue() throws Exception {
    final GitHubService service = new GitHubService();
    final GitHubIssue issue = new GitHubIssue();
    issue.setUser(TEST_USER);
    issue.setBody("This is a test body");
    issue.setTitle("Issue Title");
    GitHubIssue newIssue = service.openIssue(TEST_USER, TEST_PROJECT, issue,
        new GitHubCredentials(TEST_USER,API_KEY));
    assertTrue(newIssue != null);
    assertEquals(issue.getUser(),newIssue.getUser());
    assertEquals(issue.getBody(),newIssue.getBody());
    assertEquals(issue.getTitle(),newIssue.getTitle());
    assertTrue(newIssue.getNumber() != null && newIssue.getNumber().length() > 0);
  }
View Full Code Here

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

   * Test the GitHubService implementation for opening a new issue.
   */
  @Test
  public void editIssue() throws Exception {
    final GitHubService service = new GitHubService();
    final GitHubIssue issue = new GitHubIssue();
    issue.setUser(TEST_USER);
    issue.setBody("This is a test body");
    issue.setTitle("Issue Title");
    GitHubIssue newIssue = service.openIssue(TEST_USER, TEST_PROJECT, issue,
        new GitHubCredentials(TEST_USER,API_KEY));
    assertTrue(newIssue != null);
   
    newIssue.setTitle(newIssue.getTitle()+" - modified");
    newIssue.setBody(newIssue.getBody()+" - modified");
   
    service.editIssue(TEST_USER, TEST_PROJECT, issue, new GitHubCredentials(TEST_USER,API_KEY));
   
    GitHubIssue showIssue = service.showIssue(TEST_USER, TEST_PROJECT, issue.getNumber());
   
    assertTrue(showIssue != null);
    assertEquals(newIssue.getTitle(),showIssue.getTitle());
  }
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.