Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

Commit

Permalink
Add a test that sets delimiter and prefix.
Browse files Browse the repository at this point in the history
Expands the delimiter tests to include a test that uses both prefix
and delimiter.
  • Loading branch information
timuralp authored and gaul committed Jul 14, 2015
1 parent a472a87 commit 613b6bf
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -156,6 +156,11 @@ public void testDelimiterList() throws InterruptedException {
blobStore.list(containerName, ListContainerOptions.Builder.delimiter("\\")));
checkEqualNames(ImmutableSet.of("test-", "test/foo/foo", "test/bar/foo", "foo"), blobStore.list(
containerName, ListContainerOptions.Builder.delimiter("-")));

blobStore.putBlob(containerName, blobStore.blobBuilder("bar").payload(payload).build());
blobStore.putBlob(containerName, blobStore.blobBuilder("bazar").payload(payload).build());
checkEqualNames(ImmutableSet.of("bar", "baza"), blobStore.list(containerName,
ListContainerOptions.Builder.delimiter("a").prefix("ba")));
} finally {
returnContainer(containerName);
}
Expand Down

0 comments on commit 613b6bf

Please sign in to comment.