From 63bfc2f6e881561e6df08d3566723f1e7ac2590b Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 1 Jun 2016 17:09:45 -0700 Subject: [PATCH] Use prefix option in prefix test Directory is deprecated. --- .../integration/internal/BaseContainerIntegrationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java index 68f7227788..6ed679ba8e 100644 --- a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java +++ b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java @@ -308,7 +308,8 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest { addTenObjectsUnderPrefix(containerName, prefix); add15UnderRoot(containerName); awaitConsistency(); - PageSet container = view.getBlobStore().list(containerName, inDirectory(prefix)); + PageSet container = view.getBlobStore().list( + containerName, new ListContainerOptions().recursive().prefix(prefix)); assert container.getNextMarker() == null; assertEquals(container.size(), 10); } finally {