diff --git a/framework/test-src/play/libs/IOTest.java b/framework/test-src/play/libs/IOTest.java new file mode 100644 index 0000000000..e366ba2cb8 --- /dev/null +++ b/framework/test-src/play/libs/IOTest.java @@ -0,0 +1,26 @@ +package play.libs; + +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.*; + +public class IOTest { + @Test + public void copyDirectory_copiesFilesWithSpecialCharacterInName() { + String fileName = "Anhang Performance-Bericht_ Übersicht §18 Bundesbank gesetz Meldepflichten.PDF"; + File source = new File("test-src/play/libs/Unterlagen BBank-Reporting"); + File target = new File("test-classes/play/libs"); + File targetFile = new File(target, fileName); + if (targetFile.exists()) { + assertTrue(targetFile.delete()); + } + assertTrue(source.exists()); + assertTrue(target.exists()); + + IO.copyDirectory(source, target); + + assertTrue(targetFile.exists()); + } +} \ No newline at end of file diff --git "a/framework/test-src/play/libs/Unterlagen BBank-Reporting/Anhang Performance-Bericht_ U\314\210bersicht \302\24718 Bundesbank gesetz Meldepflichten.PDF" "b/framework/test-src/play/libs/Unterlagen BBank-Reporting/Anhang Performance-Bericht_ U\314\210bersicht \302\24718 Bundesbank gesetz Meldepflichten.PDF" new file mode 100644 index 0000000000..e69de29bb2