ListBucketOptions extends BaseHttpRequestOptions implements Cloneable { public ListBucketOptions afterMarker(String marker) { queryParameters.put("marker", checkNotNull(marker, "marker")); return this; }  ListBucketOptions withPrefix(String prefix); String getPrefix(); ListBucketOptions afterMarker(String marker); String getMarker(); ListBucketOptions maxResults(int maxKeys); Integer getMaxResults(); ListBucketOptions delimiter(String delimiter); String getDelimiter(); @Override ListBucketOptions clone(); static final ListBucketOptions NONE; }
@Test public void testMarker() { ListBucketOptions options = new ListBucketOptions(); options.afterMarker("test"); assertEquals(options.buildQueryParameters().get(S3Constants.MARKER), ImmutableList.of("test")); }
@Test public void testMarkerStatic() { ListBucketOptions options = afterMarker("test"); assertEquals(options.buildQueryParameters().get(S3Constants.MARKER), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testMarkerNPE() { afterMarker(null); }