Skip to content

Commit f9a21ef

Browse files
committed
Failing test for IO-890
1 parent 4a642c1 commit f9a21ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/FilenameUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,9 +1212,9 @@ void testSeparatorsToWindows() {
12121212
@Test
12131213
void testFilenameWithSeparatorCharOnNonWindows() throws IOException {
12141214
if (!WINDOWS) {
1215-
Path testFileWithBackSlash = Files.createTempFile(temporaryFolder, "file\\with\\backslash", "txt");
1215+
Path testFileWithBackSlash = Files.createTempFile(temporaryFolder, "file\\with\\backslash", ".txt");
12161216
String actualFileName = FilenameUtils.getName(testFileWithBackSlash.toString());
1217-
String expectedFileName = testFileWithBackSlash.getFileName().toString();
1217+
String expectedFileName = new File(testFileWithBackSlash.toString()).getName();
12181218
assertEquals(expectedFileName, actualFileName);
12191219
}
12201220
}

0 commit comments

Comments
 (0)