@Test(expected=IllegalArgumentException.class) public void testEmptySeparator() { String prefix = ""; String separator = ""; String csvData = "name,value,description\nvar0,val0,a comment\nvar1,val1"; BufferedReader input = new BufferedReader(new StringReader(csvData)); VariableFromCsvFileReader instance = new VariableFromCsvFileReader(input); Map variables = instance.getDataAsMap(prefix, separator, 1); }
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);  }