Use prefix option in prefix test

Directory is deprecated.
This commit is contained in:
Andrew Gaul 2016-06-01 17:09:45 -07:00
parent 421764dfd1
commit 63bfc2f6e8
1 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,8 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
addTenObjectsUnderPrefix(containerName, prefix); addTenObjectsUnderPrefix(containerName, prefix);
add15UnderRoot(containerName); add15UnderRoot(containerName);
awaitConsistency(); awaitConsistency();
PageSet<? extends StorageMetadata> container = view.getBlobStore().list(containerName, inDirectory(prefix)); PageSet<? extends StorageMetadata> container = view.getBlobStore().list(
containerName, new ListContainerOptions().recursive().prefix(prefix));
assert container.getNextMarker() == null; assert container.getNextMarker() == null;
assertEquals(container.size(), 10); assertEquals(container.size(), 10);
} finally { } finally {