From acb3f61d751bc8d10d9a33ef96ff0d38cbdf6b07 Mon Sep 17 00:00:00 2001 From: jixinchi Date: Tue, 14 Nov 2023 17:29:16 +0800 Subject: [PATCH] fix typo and add unit test --- .../jclouds/blobstore/config/LocalBlobStore.java | 1 - .../strategy/internal/ListContainerTest.java | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java b/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java index 9b1ef849bd1..d44f93d748f 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java @@ -367,7 +367,6 @@ private SortedSet extractCommonPrefixes(SortedSet results = blobStore.list(containerName, + ListContainerOptions.Builder.delimiter("/")); + assertThat(results.size()).isEqualTo(2); + assertThat(Iterables.get(results, 0).getName()).isEqualTo("bar/"); + assertThat(Iterables.get(results, 0).getType()).isEqualTo(StorageType.RELATIVE_PATH); + assertThat(Iterables.get(results, 1).getName()).isEqualTo("foo/"); + assertThat(Iterables.get(results, 1).getType()).isEqualTo(StorageType.FOLDER); + } + public void testDirectoryListing() { String containerName = "testDirectoryListing"; blobStore.createContainerInLocation(null, containerName);