olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject git commit: IT: server-side paging
Date Mon, 19 May 2014 16:02:53 GMT
Repository: olingo-odata4
Updated Branches:
  refs/heads/master beae4797f -> 5c28df507


IT: server-side paging


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/5c28df50
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/5c28df50
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/5c28df50

Branch: refs/heads/master
Commit: 5c28df507150ed5573d9ce4a395ec8d2218a6cca
Parents: beae479
Author: Francesco Chicchiriccò <--global>
Authored: Mon May 19 18:02:47 2014 +0200
Committer: Francesco Chicchiriccò <--global>
Committed: Mon May 19 18:02:47 2014 +0200

----------------------------------------------------------------------
 .../org/apache/olingo/fit/v4/EntitySetTestITCase.java    | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/5c28df50/fit/src/test/java/org/apache/olingo/fit/v4/EntitySetTestITCase.java
----------------------------------------------------------------------
diff --git a/fit/src/test/java/org/apache/olingo/fit/v4/EntitySetTestITCase.java b/fit/src/test/java/org/apache/olingo/fit/v4/EntitySetTestITCase.java
index c0449cc..cca2b3b 100644
--- a/fit/src/test/java/org/apache/olingo/fit/v4/EntitySetTestITCase.java
+++ b/fit/src/test/java/org/apache/olingo/fit/v4/EntitySetTestITCase.java
@@ -142,12 +142,13 @@ public class EntitySetTestITCase extends AbstractTestITCase {
     readODataEntitySetIterator(ODataPubFormat.JSON_NO_METADATA);
   }
 
-  private void readEntitySetWithNextLink(final ODataPubFormat format) {
+  private void readWithNext(final ODataPubFormat format) {
     final URIBuilder uriBuilder = client.getURIBuilder(testStaticServiceRootURL).appendEntitySetSegment("People");
 
     final ODataEntitySetRequest<ODataEntitySet> req = client.getRetrieveRequestFactory().
             getEntitySetRequest(uriBuilder.build());
     req.setFormat(format);
+    req.setPrefer(client.newPreferences().maxPageSize(5));
 
     final ODataRetrieveResponse<ODataEntitySet> res = req.execute();
     final ODataEntitySet feed = res.getBody();
@@ -164,13 +165,13 @@ public class EntitySetTestITCase extends AbstractTestITCase {
   }
 
   @Test
-  public void readODataEntitySetWithNextFromAtom() {
-    readEntitySetWithNextLink(ODataPubFormat.ATOM);
+  public void readWithNextFromAtom() {
+    readWithNext(ODataPubFormat.ATOM);
   }
 
   @Test
-  public void readODataEntitySetWithNextFromJSON() {
-    readEntitySetWithNextLink(ODataPubFormat.JSON_FULL_METADATA);
+  public void readWithNextFromJSON() {
+    readWithNext(ODataPubFormat.JSON_FULL_METADATA);
   }
 
 }


Mime
View raw message