Sort test members.
@@ -1807,31 +1807,6 @@ public void testIsRegularFile() throws IOException {
assertFalse(FileUtils.isRegularFile(testFile1));
}
- @Test
- public void testIterateFilesOnlyNoDirs() throws IOException {
- final File directory = temporaryFolder;
- assertTrue(new File(directory, "TEST").mkdir());
- assertTrue(new File(directory, "test.txt").createNewFile());
-
- final IOFileFilter filter = new WildcardFileFilter("*", IOCase.INSENSITIVE);
- for (final Iterator<File> itFiles = FileUtils.iterateFiles(directory, filter, null); itFiles.hasNext();) {
- final File file = itFiles.next();
- assertFalse(file.isDirectory(), () -> file.getAbsolutePath());
- }
- }
-
- @Test
- public void testListFilesOnlyNoDirs() throws IOException {
- final File directory = temporaryFolder;
- assertTrue(new File(directory, "TEST").mkdir());
- assertTrue(new File(directory, "test.txt").createNewFile());
-
- final IOFileFilter filter = new WildcardFileFilter("*", IOCase.INSENSITIVE);
- for (final File file : FileUtils.listFiles(directory, filter, null)) {
- assertFalse(file.isDirectory(), () -> file.getAbsolutePath());
- }
- }
-
@Test
public void testIterateFiles() throws Exception {
final File srcDir = temporaryFolder;
@@ -1943,6 +1918,19 @@ public void testIterateFilesAndDirs() throws IOException {
}
}
+ @Test
+ public void testIterateFilesOnlyNoDirs() throws IOException {
+ final File directory = temporaryFolder;
+ assertTrue(new File(directory, "TEST").mkdir());
+ assertTrue(new File(directory, "test.txt").createNewFile());
+
+ final IOFileFilter filter = new WildcardFileFilter("*", IOCase.INSENSITIVE);
+ for (final Iterator<File> itFiles = FileUtils.iterateFiles(directory, filter, null); itFiles.hasNext();) {
+ final File file = itFiles.next();
+ assertFalse(file.isDirectory(), () -> file.getAbsolutePath());
+ }
+ }
+
@Test
public void testListFiles() throws Exception {
final File srcDir = temporaryFolder;
@@ -1993,6 +1981,18 @@ public void testListFiles() throws Exception {
}
}
+ @Test
+ public void testListFilesOnlyNoDirs() throws IOException {
+ final File directory = temporaryFolder;
+ assertTrue(new File(directory, "TEST").mkdir());
+ assertTrue(new File(directory, "test.txt").createNewFile());
+
+ final IOFileFilter filter = new WildcardFileFilter("*", IOCase.INSENSITIVE);
+ for (final File file : FileUtils.listFiles(directory, filter, null)) {
+ assertFalse(file.isDirectory(), () -> file.getAbsolutePath());
+ }
+ }
+
@Test
public void testListFilesWithDirs() throws IOException {
final File srcDir = temporaryFolder;
