This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 0f3b9d8100d (chores) camel-azure-storage-blob: fix an invalid isBlank
check (#11491)
0f3b9d8100d is described below
commit 0f3b9d8100d322ac8fababf854893d3034efb74f
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Sep 20 14:56:17 2023 +0200
(chores) camel-azure-storage-blob: fix an invalid isBlank check (#11491)
---
.../component/azure/storage/blob/integration/BlobOperationsIT.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsIT.java
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsIT.java
index ba35945beda..a206ad8be6b 100644
---
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsIT.java
+++
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobOperationsIT.java
@@ -418,7 +418,9 @@ class BlobOperationsIT extends Base {
// check content
final BlobOperationResponse getBlobResponse = operations.getBlob(null);
- assertTrue(IOUtils.toString((InputStream) getBlobResponse.getBody(),
StandardCharsets.UTF_8).isBlank());
+ // The string returned here is a 512 long sequence of null code points
(U+000) which is considered a space for
+ // trim(), but not for isBlank.
+ assertTrue(IOUtils.toString((InputStream) getBlobResponse.getBody(),
StandardCharsets.UTF_8).trim().isEmpty());
blobClientWrapper.delete(null, null, null);
}