Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2012-12-09 22:59:26 +0000
committerKevin Sawicki2012-12-09 22:59:26 +0000
commiteeadbeb7b82ac37f3231eff79c3ffdcb827592b6 (patch)
tree94f31ba0d99d05bfb342830458510339b1c99d63 /org.eclipse.egit.github.core.tests/src/org/eclipse
parent06b147e0e29b39fe0b827c5c7615c795461c7f88 (diff)
downloadegit-github-eeadbeb7b82ac37f3231eff79c3ffdcb827592b6.tar.gz
egit-github-eeadbeb7b82ac37f3231eff79c3ffdcb827592b6.tar.xz
egit-github-eeadbeb7b82ac37f3231eff79c3ffdcb827592b6.zip
Add service support for getting all repositories
Diffstat (limited to 'org.eclipse.egit.github.core.tests/src/org/eclipse')
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
index e4a392e3..bb4187b9 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
@@ -285,6 +285,32 @@ public class RepositoryServiceTest {
}
/**
+ * Page all repositories
+ *
+ * @throws IOException
+ */
+ @Test
+ public void pageAllRepositories() throws IOException {
+ service.pageAllRepositories().next();
+ GitHubRequest request = new GitHubRequest();
+ request.setUri(Utils.page("/repositories"));
+ verify(client).get(request);
+ }
+
+ /**
+ * Page all repositories
+ *
+ * @throws IOException
+ */
+ @Test
+ public void pageAllRepositoriesSince() throws IOException {
+ service.pageAllRepositories(1234).next();
+ GitHubRequest request = new GitHubRequest();
+ request.setUri(Utils.page("/repositories?since=1234"));
+ verify(client).get(request);
+ }
+
+ /**
* Get repositories with null user
*
* @throws IOException

Back to the top