@Test public void test_parse_csv_full() throws Exception { String schema = "sequencer_run,sample,lane,ius_sw_accession,file_status,mime_type,size,md5sum,file\n"; String line01 = "110316_I580_00038_612RG_LT,PCSI_0001_Pa_P_PE_230_EX,1,9037,OK,application/bam,1024,3e5g434,/file1\n"; String line02 = "110316_I580_00038_612RG_LT,PCSI_0024_Pa_P_PE_230_EX,1,8378,OK,application/bam,2048,78a8e39,/file2\n"; String csv = schema + line01 + line02; List<FileLinkerLine> lines = FileLinkerParser.getFileInfo(new StringReader(csv), ','); assertThat(lines.size(), is(2)); assertThat(lines.get(1).getFilename(), is("/file2")); assertThat(lines.get(1).getSequencerRun(), is("110316_I580_00038_612RG_LT")); assertThat(lines.get(0).getSize(), is(1024L)); }
@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);  }