Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 62a0c7a

Browse filesBrowse files
author
ke5oog
committed
hub4j#1209 - a test added.
1 parent 4bddf16 commit 62a0c7a
Copy full SHA for 62a0c7a

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎src/test/java/org/kohsuke/github/GHRepositoryTest.java

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/GHRepositoryTest.java
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,4 +866,11 @@ public void getLastCommitStatus() throws Exception {
866866
assertThat(status.getState(), equalTo(GHCommitState.SUCCESS));
867867
assertThat(status.getContext(), equalTo("ci/circleci: build"));
868868
}
869+
870+
@Test
871+
public void getCommitsBetween() throws Exception {
872+
GHCompare compare = getRepository().getCompare("e46a9f3f2ac55db96de3c5c4706f2813b3a96465", "8051615eff597f4e49f4f47625e6fc2b49f26bfc", 10, 1);
873+
assertThat(compare.getTotalCommits(), is(9));
874+
875+
}
869876
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.