@Test public void GetFilesInFolder_WhenNullOrEmpty_ReturnEmptyList() { assertThat("Null File object should return empty list", Files.fromFolder(null), notNullValue()); assertThat("Empty folder should return empty list", Files.fromFolder(new File("/")), notNullValue()); }
public static File[] fromFolder(File folder) { return fromFolder(folder, null); }
Files { public static File[] fromFolder(File folder) { return fromFolder(folder, null); } }
Files { public static File[] fromFolder(File folder) { return fromFolder(folder, null); }  }
Files { public static File[] fromFolder(File folder) { return fromFolder(folder, null); }  static String getMimeType(String fileName); static void addToMediaDatabase(File file, String mimeType); static File[] fromFolder(File folder); static File[] fromFolder(File folder, FilenameFilter filter); static File storageFolder(Context context); static boolean isAllowedToWriteTo(String gpsLoggerFolder); static String getAssetFileAsString(String pathToAsset, Context context); static File createTestFile(); static boolean reallyExists(File gpxFile); static void copyFile(File sourceLocation, File targetLocation); static void DownloadFromUrl(String url, File destination); static String getBaseName(String url); static String getBaseName(Uri data); static void saveListToCacheFile(List<String> items, String cacheKey, Context ctx); static List<String> getListFromCacheFile(String cacheKey, Context ctx); }
Files { public static File[] fromFolder(File folder) { return fromFolder(folder, null); }  static String getMimeType(String fileName); static void addToMediaDatabase(File file, String mimeType); static File[] fromFolder(File folder); static File[] fromFolder(File folder, FilenameFilter filter); static File storageFolder(Context context); static boolean isAllowedToWriteTo(String gpsLoggerFolder); static String getAssetFileAsString(String pathToAsset, Context context); static File createTestFile(); static boolean reallyExists(File gpxFile); static void copyFile(File sourceLocation, File targetLocation); static void DownloadFromUrl(String url, File destination); static String getBaseName(String url); static String getBaseName(Uri data); static void saveListToCacheFile(List<String> items, String cacheKey, Context ctx); static List<String> getListFromCacheFile(String cacheKey, Context ctx);  }