@Test public void testGetCsvFiles() { File[] actualFiles = GeoImportUtil.getCsvFiles(); String file = Arrays.asList(actualFiles).stream().findFirst().get().getName(); assertNotNull(file); assertEquals(".csv", (file.substring(file.indexOf(".")))); }
static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); return files; }
GeoImportUtil { static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); return files; } }
GeoImportUtil { static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); return files; } private  GeoImportUtil(); }
GeoImportUtil { static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); return files; } private  GeoImportUtil();  }
GeoImportUtil { static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); return files; } private  GeoImportUtil();   }