diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/testcases/org/apache/poi/util/TestIOUtils.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/util/TestIOUtils.java b/src/testcases/org/apache/poi/util/TestIOUtils.java index 4c9f6a1fb7..19b64dd3c1 100644 --- a/src/testcases/org/apache/poi/util/TestIOUtils.java +++ b/src/testcases/org/apache/poi/util/TestIOUtils.java @@ -202,7 +202,11 @@ final class TestIOUtils { void testCopyToInvalidFile() throws IOException { try (InputStream is = new FileInputStream(TMP)) { assertThrows(RuntimeException.class, - () -> IOUtils.copy(is, new File("/notexisting/directory/structure"))); + () -> { + // try with two different paths so we fail on both Unix and Windows + IOUtils.copy(is, new File("/notexisting/directory/structure")); + IOUtils.copy(is, new File("c:\\note&/()\"§=§%&!§$81§0_:;,.-'#*+~`?ß´ß0´ß9243xisting\\directory\\structure")); + }); } } |