This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch 2.7.x in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit f6ae10dfc91ab6cacb777455262234e13f4c5049 Author: James Netherton <[email protected]> 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
