ListBucketOptions extends BaseHttpRequestOptions implements Cloneable { public ListBucketOptions delimiter(String delimiter) { queryParameters.put("delimiter", checkNotNull(delimiter, "delimiter")); 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 testDelimiter() { ListBucketOptions options = new ListBucketOptions(); options.delimiter("test"); assertEquals(options.buildQueryParameters().get(S3Constants.DELIMITER), ImmutableList.of("test")); }
@Test public void testDelimiterStatic() { ListBucketOptions options = delimiter("test"); assertEquals(options.buildQueryParameters().get(S3Constants.DELIMITER), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testDelimiterNPE() { delimiter(null); }