Initial source code modifications

This commit is contained in:
Manuel Recena
2015-11-14 12:11:24 +01:00
parent adaa8ece89
commit bafddf4baf
2 changed files with 18 additions and 3 deletions

View File

@@ -49,6 +49,15 @@ public class PullRequestTest extends AbstractGitHubApiTestBase {
assertTrue(comments.isEmpty());
}
@Test
public void testMergeCommitSHA() throws Exception {
String name = rnd.next();
GHRepository repo = gitHub.getMyself().getRepository("website");
GHPullRequest p = repo.createPullRequest(name, "feature5", "master", "## test");
GHRef ref = repo.getRef("pull/" + p.getNumber() + "/merge");
assertTrue(ref.getObject().getSha() == p.getMergeCommitSha());
}
@Test
// Requires push access to the test repo to pass
public void setLabels() throws Exception {