Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2012-04-25 23:16:36 +0000
committerKevin Sawicki2012-04-25 23:16:36 +0000
commit1337b6d25b1d4c1ecb55f712e839c5dbcb4faf44 (patch)
treeb7ddfe3b5966308d5bc75947a4da7f2ea8f8f9db /org.eclipse.egit.github.core.tests
parenta09ca3590db2137447a03395fafdbb9e2378eeba (diff)
downloadegit-github-1337b6d25b1d4c1ecb55f712e839c5dbcb4faf44.tar.gz
egit-github-1337b6d25b1d4c1ecb55f712e839c5dbcb4faf44.tar.xz
egit-github-1337b6d25b1d4c1ecb55f712e839c5dbcb4faf44.zip
Add support for paging over starred gists
Previously only the entire list could be fetched but paging should be supported as well. Change-Id: I672cd76abc87916d5d05432f920d171f23a8f1bf
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/GistServiceTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
index edb0c537..abc59384 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
@@ -327,6 +327,20 @@ public class GistServiceTest {
}
/**
+ * Get iterator for starred gists
+ *
+ * @throws IOException
+ */
+ @Test
+ public void pageStarredGists() throws IOException {
+ PageIterator<Gist> iterator = gistService.pageStarredGists();
+ assertNotNull(iterator);
+ assertTrue(iterator.hasNext());
+ assertEquals(Utils.page("/gists/starred"), iterator.getRequest()
+ .generateUri());
+ }
+
+ /**
* Get gists for null login name
*
* @throws IOException

Back to the top