@Test public void getLinesShouldReturnLinesBothSanitizedAndQuotedIfRequired() { CSVResult csv = csv( headers("name", "city"), lines( line("John", "Seattle"), line("John", "=Seattle"), line("John", "+Sea,ttle"), line(",-John", "Seattle"), line(",,,@John", "Seattle"), line("John", "Seattle=") ) ); assertEquals( line( "John,Seattle", "John,'=Seattle", "John,\"'+Sea,ttle\"", "\",-John\",Seattle", "\",,,@John\",Seattle", "John,Seattle=" ), csv.getLines() ); }
public List<String> getLines() { return lines; }
CSVResult { public List<String> getLines() { return lines; } }
CSVResult { public List<String> getLines() { return lines; } CSVResult(List<String> headers, List<String> lines);  CSVResult(String separator, List<String> headers, List<List<String>> lines); }
CSVResult { public List<String> getLines() { return lines; } CSVResult(List<String> headers, List<String> lines);  CSVResult(String separator, List<String> headers, List<List<String>> lines); List<String> getHeaders(); List<String> getLines(); }
CSVResult { public List<String> getLines() { return lines; } CSVResult(List<String> headers, List<String> lines);  CSVResult(String separator, List<String> headers, List<List<String>> lines); List<String> getHeaders(); List<String> getLines();  }