@Test public void test_csv_to_entry_samples() throws Exception { String schema = "sample\n"; String line01 = "PCSI_0001_Pa_P_PE_230_EX\n"; String line02 = "PCSI_0006_Pa_X_PE_400_WG\n"; String csv = schema + line01 + line02; List<FileLinkerLine> lines = FileLinkerParser.getFileInfo(new StringReader(csv), ','); assertThat(lines.size(), is(2)); }
@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);  }