@Test public void testWrite() throws IOException, SQLException { final ResultSet resultSetMock = new ResultSetMock(TEST_DATA_STRINGS, HEADER); csvResultSetWriter.write(resultSetMock); csvResultSetWriter.flush(); assertEquals(CSV_FILE, writer.toString()); }
public void write(final ResultSet resultSet) throws SQLException, IOException { if( resultSet == null ) { throw new NullPointerException("ResultSet cannot be null"); } writeHeaders(resultSet); writeContents(resultSet); }
CsvResultSetWriter extends AbstractCsvWriter implements ICsvResultSetWriter { public void write(final ResultSet resultSet) throws SQLException, IOException { if( resultSet == null ) { throw new NullPointerException("ResultSet cannot be null"); } writeHeaders(resultSet); writeContents(resultSet); } }
CsvResultSetWriter extends AbstractCsvWriter implements ICsvResultSetWriter { public void write(final ResultSet resultSet) throws SQLException, IOException { if( resultSet == null ) { throw new NullPointerException("ResultSet cannot be null"); } writeHeaders(resultSet); writeContents(resultSet); } CsvResultSetWriter(final Writer writer, final CsvPreference preference); }
CsvResultSetWriter extends AbstractCsvWriter implements ICsvResultSetWriter { public void write(final ResultSet resultSet) throws SQLException, IOException { if( resultSet == null ) { throw new NullPointerException("ResultSet cannot be null"); } writeHeaders(resultSet); writeContents(resultSet); } CsvResultSetWriter(final Writer writer, final CsvPreference preference); void write(final ResultSet resultSet); void write(ResultSet resultSet, CellProcessor[] writeProcessors); }
CsvResultSetWriter extends AbstractCsvWriter implements ICsvResultSetWriter { public void write(final ResultSet resultSet) throws SQLException, IOException { if( resultSet == null ) { throw new NullPointerException("ResultSet cannot be null"); } writeHeaders(resultSet); writeContents(resultSet); } CsvResultSetWriter(final Writer writer, final CsvPreference preference); void write(final ResultSet resultSet); void write(ResultSet resultSet, CellProcessor[] writeProcessors);  }