ListContainerOptions extends BaseHttpRequestOptions { public ListContainerOptions withPrefix(String prefix) { queryParameters.put("prefix", checkNotNull(prefix, "prefix")); return this; }  ListContainerOptions afterMarker(String marker); String getMarker(); ListContainerOptions maxResults(int limit); int getMaxResults(); ListContainerOptions withPrefix(String prefix); String getPrefix(); ListContainerOptions underPath(String path); String getPath(); static final ListContainerOptions NONE; }
@Test public void testPrefix() { ListContainerOptions options = new ListContainerOptions(); options.withPrefix("test"); assertEquals(options.buildQueryParameters().get(SwiftConstants.PREFIX), ImmutableList.of("test")); }
@Test public void testOneOptionQueryString() { ListContainerOptions options = new ListContainerOptions(); options.withPrefix("test"); Multimap<String, String> map = options.buildQueryParameters(); assertEquals(map.size(), 1); assertEquals(map.get("prefix"), ImmutableList.of("test")); }
@Test public void testPrefixStatic() { ListContainerOptions options = withPrefix("test"); assertEquals(options.buildQueryParameters().get(SwiftConstants.PREFIX), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testPrefixNPE() { withPrefix(null); }