@Test public void test_parse_csv_bad_integer() throws Exception { String schema = "lane,ius_sw_accession\n"; String line01 = "8,bad_seqware_accession_number\n"; String line02 = "2,45693\n"; String csv = schema + line01 + line02; List<FileLinkerLine> lines = FileLinkerParser.getFileInfo(new StringReader(csv), ','); assertThat(lines.get(0).getSeqwareAccession(), nullValue()); assertThat(lines.get(1).getSeqwareAccession(), is(45693)); }
@VisibleForTesting static List<FileLinkerLine> getFileInfo(Reader reader) { return getFileInfo(reader, '\t'); }
FileLinkerParser { @VisibleForTesting static List<FileLinkerLine> getFileInfo(Reader reader) { return getFileInfo(reader, '\t'); } }
FileLinkerParser { @VisibleForTesting static List<FileLinkerLine> getFileInfo(Reader reader) { return getFileInfo(reader, '\t'); }  }
FileLinkerParser { @VisibleForTesting static List<FileLinkerLine> getFileInfo(Reader reader) { return getFileInfo(reader, '\t'); }  static Map<Integer, List<FileMetadata>> parse(String filename, char separator); }
FileLinkerParser { @VisibleForTesting static List<FileLinkerLine> getFileInfo(Reader reader) { return getFileInfo(reader, '\t'); }  static Map<Integer, List<FileMetadata>> parse(String filename, char separator);  }