File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
core/src/test/java/org/lfenergy/shapeshifter/core/service/serialization Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 1010import java .io .IOException ;
1111import java .nio .charset .StandardCharsets ;
1212import java .nio .file .Files ;
13- import org .apache .commons .io .FileUtils ;
1413
1514public class TestFile {
1615
@@ -26,7 +25,7 @@ private static String toFolder(Class<?> testClass) {
2625
2726 public static String readResourceFileAsString (Class <?> testClass , String testName , String postFix ) throws IOException {
2827 File file = resourceAsFile (testClass , testName , postFix );
29- return FileUtils . readFileToString (file , StandardCharsets .UTF_8 );
28+ return Files . readString (file . toPath () , StandardCharsets .UTF_8 );
3029 }
3130
3231 public static void compareAsXml (Class <?> testClass , String testName , String actualXml ) throws IOException {
You can’t perform that action at this time.
0 commit comments