Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2012-11-28 21:45:05 +0000
committerKevin Sawicki2012-11-28 21:45:05 +0000
commit48c9af4adfc9ab379615282b3005a72a09eb402d (patch)
tree74fa53f30d343568da40115a10899c3d681008e2 /org.eclipse.egit.github.core.tests
parent4a91e785aed6184e8d65e9f18316862314291228 (diff)
downloadegit-github-48c9af4adfc9ab379615282b3005a72a09eb402d.tar.gz
egit-github-48c9af4adfc9ab379615282b3005a72a09eb402d.tar.xz
egit-github-48c9af4adfc9ab379615282b3005a72a09eb402d.zip
Support requesting all commit comments
Diffstat (limited to 'org.eclipse.egit.github.core.tests')
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitServiceTest.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitServiceTest.java
index 13e0116a..bcb01855 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitServiceTest.java
@@ -160,7 +160,7 @@ public class CommitServiceTest {
* @throws IOException
*/
@Test
- public void getComments() throws IOException {
+ public void getCommitComments() throws IOException {
RepositoryId repo = new RepositoryId("o", "n");
service.getComments(repo, "abc");
GitHubRequest request = new GitHubRequest();
@@ -169,6 +169,20 @@ public class CommitServiceTest {
}
/**
+ * Get all commit comments
+ *
+ * @throws IOException
+ */
+ @Test
+ public void getAllComments() throws IOException {
+ RepositoryId repo = new RepositoryId("o", "n");
+ service.getComments(repo);
+ GitHubRequest request = new GitHubRequest();
+ request.setUri(Utils.page("/repos/o/n/comments"));
+ verify(client).get(request);
+ }
+
+ /**
* Get comment comment
*
* @throws IOException

Back to the top