Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKelvin Zhu2020-05-29 06:47:29 +0000
committerKelvin Zhu2020-05-29 07:01:20 +0000
commit112ee876a0daa41838dd2a9ba553a88731f6f3c5 (patch)
treedc5c41b91129165408d2e6da650e68720a4e084f /org.eclipse.egit.github.core.tests/src/org/eclipse
parent00d08fc2ba0e6bc720b6c23c50d6725317aeef0c (diff)
downloadegit-github-112ee876a0daa41838dd2a9ba553a88731f6f3c5.tar.gz
egit-github-112ee876a0daa41838dd2a9ba553a88731f6f3c5.tar.xz
egit-github-112ee876a0daa41838dd2a9ba553a88731f6f3c5.zip
Adding the mergeableState field to pull requests
Making it so that the mergeableState field is available as part of pull requests whose possible values are documented at https://developer.github.com/v4/enum/mergestatestatus/ Change-Id: I81157e39f4251e96eb205b4a4934e59cf7383b86 Signed-off-by: Kelvin Zhu <kelvinzhu2000@yahoo.com>
Diffstat (limited to 'org.eclipse.egit.github.core.tests/src/org/eclipse')
-rwxr-xr-xorg.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestTest.java
index 8f1270bb..5d5ce64b 100755
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestTest.java
@@ -40,6 +40,7 @@ public class PullRequestTest {
public void defaultState() {
PullRequest request = new PullRequest();
assertNull(request.isMergeable());
+ assertNull(request.getMergeableState());
assertFalse(request.isMerged());
assertEquals(0, request.getAdditions());
assertNull(request.getBase());
@@ -81,6 +82,8 @@ public class PullRequestTest {
PullRequest request = new PullRequest();
assertTrue(request.setMerged(true).isMerged());
assertTrue(request.setMergeable(true).isMergeable());
+ assertEquals("clean", request.setMergeableState("clean")
+ .getMergeableState());
assertEquals(15, request.setAdditions(15).getAdditions());
PullRequestMarker base = new PullRequestMarker();
assertEquals(base, request.setBase(base).getBase());

Back to the top