Skip to content

Commit c30c30c

Browse files
committed
Fix 2 list files tests with "/"
1 parent 47c7da6 commit c30c30c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/fr/formiko/utils/FLUFiles.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ private void zipFile(File fileToZip, String fileName, String destination, ZipOut
320320
allOk.set(0, false);
321321
}
322322
});
323-
if (!allOk.getFirst()) {
323+
if (!allOk.get(0)) {
324324
throw new IOException("Error while zipping");
325325
}
326326
} else {

src/test/java/fr/formiko/utils/FLUFilesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ void testListFiles(String path, boolean shouldWork, List<String> expectedFiles)
270270

271271
private static Stream<Arguments> testListFilesSource() {
272272
return Stream.of(
273-
Arguments.of(TEST_PATH, true, List.of("existingDir", "existingFile.x", "existingFile2", "existingFile3", "existingFile4")),
274-
Arguments.of(TEST_PATH + "existingDir/", true, List.of("subDir")),
273+
Arguments.of(TEST_PATH, true, List.of("existingDir/", "existingFile.x", "existingFile2", "existingFile3", "existingFile4")),
274+
Arguments.of(TEST_PATH + "existingDir/", true, List.of("subDir/")),
275275
Arguments.of(TEST_PATH + "existingDir/subDir/", true, List.of("existingFile.txt")), Arguments.of(null, false, null),
276276
Arguments.of(TEST_PATH + "unexistingDirectory", false, null));
277277
}

0 commit comments

Comments
 (0)