Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test chaining.

  • Loading branch information...
commit d68e09083ec721a7e88406b45b1f23dfddcabdbc 1 parent 34482d1
@Kami Kami authored
View
29 src/test/java/com/rackspacecloud/client/service_registry/util/PaginationOptionsTest.java
@@ -0,0 +1,29 @@
+package com.rackspacecloud.client.service_registry.util;
+
+import com.rackspacecloud.client.service_registry.PaginationOptions;
+import junit.framework.Assert;
+import org.junit.Test;
+
+public class PaginationOptionsTest {
+ @Test
+ public void testPaginationOptions() {
+ int actualLimit;
+ String actualMarker;
+
+ PaginationOptions po1 = new PaginationOptions().withLimit(55)
+ .withMarker("markera");
+ PaginationOptions po2 = new PaginationOptions(100, "markerb");
+
+ actualLimit = po1.getLimit();
+ actualMarker = po1.getMarker();
+
+ Assert.assertEquals(55, actualLimit);
+ Assert.assertEquals("markera", actualMarker);
+
+ actualLimit = po2.getLimit();
+ actualMarker = po2.getMarker();
+
+ Assert.assertEquals(100, actualLimit);
+ Assert.assertEquals("markerb", actualMarker);
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.