Skip to content
Permalink
Browse files
Avoid usage of com.mchange.io.FileUtils
  • Loading branch information
jamesnetherton committed Apr 26, 2022
1 parent 089f2f5 commit 02ec4224092c3a9fa902d645ba3c206608ea342e
Showing 1 changed file with 1 addition and 2 deletions.
@@ -39,7 +39,6 @@
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 void writeThenReadFileWithCharsetShouldSucceed() throws Exception {
});
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

0 comments on commit 02ec422

Please sign in to comment.