Permalink
Browse files

Test chaining.

  • Loading branch information...
1 parent 34482d1 commit d68e09083ec721a7e88406b45b1f23dfddcabdbc @Kami Kami committed Feb 25, 2013
@@ -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);
+ }
+}

0 comments on commit d68e090

Please sign in to comment.