@Test public void testGetCsvFiles() throws Exception { BrahmsImportUtil brahmsImportUtil = new BrahmsImportUtil(); File[] actualFiles = brahmsImportUtil.getCsvFiles(); String file = Arrays.asList(actualFiles).stream().findFirst().get().getName(); assertNotNull("01",file); assertEquals("02",".CSV", (file.substring(file.indexOf(".")))); }
public static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); Arrays.sort(files); return files; }
BrahmsImportUtil { public static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); Arrays.sort(files); return files; } }
BrahmsImportUtil { public static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); Arrays.sort(files); return files; } BrahmsImportUtil(); }
BrahmsImportUtil { public static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); Arrays.sort(files); return files; } BrahmsImportUtil(); static File[] getCsvFiles(); static void backup(); static void removeBackupExtension(); static ScientificName getScientificName(CSVRecordInfo<BrahmsCsvField> record); static DefaultClassification getDefaultClassification(CSVRecordInfo<BrahmsCsvField> record,
			ScientificName sn); static List<Monomial> getSystemClassification(DefaultClassification dc); static String getAuthor(CSVRecordInfo<BrahmsCsvField> record); static String getInfraspecificMarker(CSVRecordInfo<BrahmsCsvField> record); static String getInfraspecificEpithet(CSVRecordInfo<BrahmsCsvField> record); static String getTaxonRank(CSVRecordInfo<BrahmsCsvField> record); static File getDataDir(); }
BrahmsImportUtil { public static File[] getCsvFiles() { File[] files = getDataDir().listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.toLowerCase().endsWith(".csv"); } }); Arrays.sort(files); return files; } BrahmsImportUtil(); static File[] getCsvFiles(); static void backup(); static void removeBackupExtension(); static ScientificName getScientificName(CSVRecordInfo<BrahmsCsvField> record); static DefaultClassification getDefaultClassification(CSVRecordInfo<BrahmsCsvField> record,
			ScientificName sn); static List<Monomial> getSystemClassification(DefaultClassification dc); static String getAuthor(CSVRecordInfo<BrahmsCsvField> record); static String getInfraspecificMarker(CSVRecordInfo<BrahmsCsvField> record); static String getInfraspecificEpithet(CSVRecordInfo<BrahmsCsvField> record); static String getTaxonRank(CSVRecordInfo<BrahmsCsvField> record); static File getDataDir();  }