You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/04/26 16:32:42 UTC

[camel-quarkus] 03/03: Avoid usage of com.mchange.io.FileUtils

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 02ec4224092c3a9fa902d645ba3c206608ea342e
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Apr 26 11:13:02 2022 +0100

    Avoid usage of com.mchange.io.FileUtils
---
 .../java/org/apache/camel/quarkus/component/file/it/FileResource.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/integration-tests/file/src/main/java/org/apache/camel/quarkus/component/file/it/FileResource.java b/integration-tests/file/src/main/java/org/apache/camel/quarkus/component/file/it/FileResource.java
index 3f2ee8739c..ce7586f0c2 100644
--- a/integration-tests/file/src/main/java/org/apache/camel/quarkus/component/file/it/FileResource.java
+++ b/integration-tests/file/src/main/java/org/apache/camel/quarkus/component/file/it/FileResource.java
@@ -39,7 +39,6 @@ import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
-import com.mchange.io.FileUtils;
 import org.apache.camel.CamelContext;
 import org.apache.camel.ConsumerTemplate;
 import org.apache.camel.Exchange;
@@ -166,7 +165,7 @@ public class FileResource {
         });
         Awaitility.await().atMost(10, TimeUnit.SECONDS).until(() -> {
             File file = new File("target/charsetIsoWrite/charsetEncodedFile.txt");
-            return Arrays.equals(encodedContent, FileUtils.getBytes(file));
+            return Arrays.equals(encodedContent, Files.readAllBytes(file.toPath()));
         });
 
         // Move the encoded file to the read folder