@Test public void testExtraColumnsInput() { String prefix = ""; String separator = ","; String csvData = "var0,val0,a comment\nvar1,val1"; BufferedReader input = new BufferedReader(new StringReader(csvData)); VariableFromCsvFileReader instance = new VariableFromCsvFileReader(input); Map variables = instance.getDataAsMap(prefix, separator); assertEquals("incorrect value for var0", "val0", variables.get("var0")); assertEquals("incorrect value for var1", "val1", variables.get("var1")); }
public Map<String, String> getDataAsMap(String prefix, String separator) { return getDataAsMap(prefix, separator, 0); }
VariableFromCsvFileReader { public Map<String, String> getDataAsMap(String prefix, String separator) { return getDataAsMap(prefix, separator, 0); } }
VariableFromCsvFileReader { public Map<String, String> getDataAsMap(String prefix, String separator) { return getDataAsMap(prefix, separator, 0); } VariableFromCsvFileReader(String csvFileName);  VariableFromCsvFileReader(BufferedReader input); }
VariableFromCsvFileReader { public Map<String, String> getDataAsMap(String prefix, String separator) { return getDataAsMap(prefix, separator, 0); } VariableFromCsvFileReader(String csvFileName);  VariableFromCsvFileReader(BufferedReader input); Map<String, String> getDataAsMap(String prefix, String separator); Map<String, String> getDataAsMap(String prefix, String separator, int skipLines); }
VariableFromCsvFileReader { public Map<String, String> getDataAsMap(String prefix, String separator) { return getDataAsMap(prefix, separator, 0); } VariableFromCsvFileReader(String csvFileName);  VariableFromCsvFileReader(BufferedReader input); Map<String, String> getDataAsMap(String prefix, String separator); Map<String, String> getDataAsMap(String prefix, String separator, int skipLines);  }