@Test public void getHeadersShouldReturnHeadersBothSanitizedAndQuotedIfRequired() { CSVResult csv = csv(headers("na,+me", ",,,=age", "=city,"), lines(line("John", "30", "Seattle"))); assertEquals( headers("\"na,+me\"", "\",,,=age\"", "\"'=city,\""), csv.getHeaders() ); }
public List<String> getHeaders() { return headers; }
CSVResult { public List<String> getHeaders() { return headers; } }
CSVResult { public List<String> getHeaders() { return headers; } CSVResult(List<String> headers, List<String> lines);  CSVResult(String separator, List<String> headers, List<List<String>> lines); }
CSVResult { public List<String> getHeaders() { return headers; } 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> getHeaders() { return headers; } CSVResult(List<String> headers, List<String> lines);  CSVResult(String separator, List<String> headers, List<List<String>> lines); List<String> getHeaders(); List<String> getLines();  }