BAEL-4755: Add Files.list example (#10356)

This commit is contained in:
kwoyke
2020-12-30 12:39:45 +01:00
committed by GitHub
parent a357178525
commit ed330c5c0d
2 changed files with 18 additions and 2 deletions

View File

@@ -25,10 +25,15 @@ public class ListFilesUnitTest {
};
@Test
public void givenDir_whenUsingJAVAIO_thenListAllFiles() throws IOException {
public void givenDir_whenUsingJAVAIO_thenListAllFiles() {
assertEquals(EXPECTED_FILE_LIST, listFiles.listFilesUsingJavaIO(DIRECTORY));
}
@Test
public void givenDir_whenUsingFilesList_thenListAllFiles() throws IOException {
assertEquals(EXPECTED_FILE_LIST, listFiles.listFilesUsingFilesList(DIRECTORY));
}
@Test
public void givenDir_whenWalkingTree_thenListAllFiles() throws IOException {
assertEquals(EXPECTED_FILE_LIST, listFiles.listFilesUsingFileWalk(DIRECTORY,DEPTH));