@Test public void testExpandFiles_absolutePaths(){ final File testDir = FileTestUtils.getTestFile(this.getClass(), "testExpandFiles"); List<File> actualFiles = FileUtil.expandFiles(testDir.getPath() + "test*"); asserter = new FileAsserter(actualFiles); asserter.assertAbsolute(testDir, "dir1/test-file-1.txt"); asserter.assertAbsolute(testDir, "dir1/test-file-1a.txt"); asserter.assertAbsolute(testDir, "dir2/test-file-2.txt"); asserter.assertAbsolute(testDir, "dir3/test-file-3.txt"); }
public static List<File> expandFiles(String... paths) { return expandFiles(FileUtil.getUserDir(), paths); }
FileUtil { public static List<File> expandFiles(String... paths) { return expandFiles(FileUtil.getUserDir(), paths); } }
FileUtil { public static List<File> expandFiles(String... paths) { return expandFiles(FileUtil.getUserDir(), paths); } private  FileUtil(); }
FileUtil { public static List<File> expandFiles(String... paths) { return expandFiles(FileUtil.getUserDir(), paths); } private  FileUtil(); static File getUserDir(); static List<File> toList(File... files); static String getRelativePath(File root, File file); static File toAbsoluteFile(File currentDirectory, File file); static List<String> getPathElements(File file); static List<File> expandFiles(String... paths); static List<File> expandFiles(File currentDirectory, String... paths); static FilenameFilter getFileNameFilter(String name); static boolean isWildcardFileName(String name); static File getOutputDirectoryGivenClass(final Class<?> clazz); static File getDirectoryOfClassFile(Class<?> clazz); static File getDirectoryOfClassFile(final String className); }
FileUtil { public static List<File> expandFiles(String... paths) { return expandFiles(FileUtil.getUserDir(), paths); } private  FileUtil(); static File getUserDir(); static List<File> toList(File... files); static String getRelativePath(File root, File file); static File toAbsoluteFile(File currentDirectory, File file); static List<String> getPathElements(File file); static List<File> expandFiles(String... paths); static List<File> expandFiles(File currentDirectory, String... paths); static FilenameFilter getFileNameFilter(String name); static boolean isWildcardFileName(String name); static File getOutputDirectoryGivenClass(final Class<?> clazz); static File getDirectoryOfClassFile(Class<?> clazz); static File getDirectoryOfClassFile(final String className); static final String ROOT_UNIX; static final String ROOT_WINDOWS; static final String ROOT_WINDOWS_NETWORK; static final String ROOT; }