From 4ba6e7b2d9ae3a6f6e34533fdbbc9d0383fcd227 Mon Sep 17 00:00:00 2001 From: suyanhanx Date: Tue, 23 Jan 2024 23:42:58 +0800 Subject: [PATCH] fix skip condition Signed-off-by: suyanhanx --- .../java/org/apache/opendal/test/behavior/AsyncCopyTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bindings/java/src/test/java/org/apache/opendal/test/behavior/AsyncCopyTest.java b/bindings/java/src/test/java/org/apache/opendal/test/behavior/AsyncCopyTest.java index 477d5d45c0b8..5c6203fde62a 100644 --- a/bindings/java/src/test/java/org/apache/opendal/test/behavior/AsyncCopyTest.java +++ b/bindings/java/src/test/java/org/apache/opendal/test/behavior/AsyncCopyTest.java @@ -22,6 +22,8 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assumptions.assumeTrue; + +import java.util.Objects; import java.util.UUID; import org.apache.opendal.Capability; import org.apache.opendal.OpenDALException; @@ -65,7 +67,7 @@ public void testCopyFileWithAsciiName() { @Test public void testCopyFileWithNonAsciiName() { // Services-koofr doesn't support non-ascii name (https://github.com/apache/opendal/issues/4051) - assumeTrue(op().info.scheme != "koofr", "Services-koofr doesn't support non-ascii name"); + assumeTrue(!Objects.equals(op().info.scheme, "koofr"), "Services-koofr doesn't support non-ascii name"); final String sourcePath = "🐂🍺中文.docx"; final String targetPath = "😈🐅Français.docx";