@Test
public void listDirAllConditionFiles() {

    assertNull(FileUtil.listDirAllConditionFiles((String) null, null));
    assertNull(FileUtil.listDirAllConditionFiles((File) null, null));
    assertNull(FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath() + "notexist", null));
    assertNull(FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath() + "xxx/yyy/zzz", null));
    assertNull(FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath() + "log4j.properties", null));
    int expected = new File(ClassLoaderUtil.getClasspath()).listFiles().length;
    assertEquals(expected, FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath(), null).length);
    assertEquals(expected,
            FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath(), new boolean[] {}).length);
    assertArrayEquals(
            new File[] {},
            FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath(), new boolean[] { true, true, false,
                    true, true }));
    assertArrayEquals(new File[] {},
            FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath(), true, true, false, true, true));
    assertEquals(
            expected,
            FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath(), new boolean[] { true, true, true,
                    true, true }).length);
    assertEquals(expected,
            FileUtil.listDirAllConditionFiles(ClassLoaderUtil.getClasspath(), true, true, true, true, true).length);
}