Add a test that sets delimiter and prefix.

Expands the delimiter tests to include a test that uses both prefix
and delimiter.
This commit is contained in:
Timur Alperovich 2015-07-13 16:07:54 -07:00 committed by Andrew Gaul
parent a472a878b0
commit 613b6bf045
1 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,11 @@ public class BaseContainerLiveTest extends BaseBlobStoreIntegrationTest {
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);
}