@Test public void writeLineWithFloatShouldDelegateToWriter() throws Exception { givenCSVLoggerIsCreated(); givenWriterManagerReturnsWriterMock(); givenCSVLoggerIsOpen(); float inputFloat = 16.0f; csvLogger.writeLine(inputFloat); thenWriterShouldWriteLine("" + inputFloat); }
public void writeLine(String[] values) throws IOException { int idx = 0; for (String value : values) { if (isIndexOfLastArrayElement(values, idx)) { writeLine(value); } else { write(value); } idx++; } }
CSVLogger { public void writeLine(String[] values) throws IOException { int idx = 0; for (String value : values) { if (isIndexOfLastArrayElement(values, idx)) { writeLine(value); } else { write(value); } idx++; } } }
CSVLogger { public void writeLine(String[] values) throws IOException { int idx = 0; for (String value : values) { if (isIndexOfLastArrayElement(values, idx)) { writeLine(value); } else { write(value); } idx++; } }  }
CSVLogger { public void writeLine(String[] values) throws IOException { int idx = 0; for (String value : values) { if (isIndexOfLastArrayElement(values, idx)) { writeLine(value); } else { write(value); } idx++; } }  void setFilename(String filename); String getFilename(); BufferedWriterManager getBufferedWriterManager(); void setBufferedWriterManager(BufferedWriterManager bufferedWriterManager); void setDelimiter(String delimiter); String getDelimiter(); void setNullString(String nullString); String getNullString(); void open(); void close(); void write(double value); void write(float value); void write(int value); void write(String string); void write(Date date); void writeLine(String[] values); void writeLine(String value); void writeLine(Date value); void writeLine(int value); void writeLine(float value); void writeLine(double value); @Override String toString(); }
CSVLogger { public void writeLine(String[] values) throws IOException { int idx = 0; for (String value : values) { if (isIndexOfLastArrayElement(values, idx)) { writeLine(value); } else { write(value); } idx++; } }  void setFilename(String filename); String getFilename(); BufferedWriterManager getBufferedWriterManager(); void setBufferedWriterManager(BufferedWriterManager bufferedWriterManager); void setDelimiter(String delimiter); String getDelimiter(); void setNullString(String nullString); String getNullString(); void open(); void close(); void write(double value); void write(float value); void write(int value); void write(String string); void write(Date date); void writeLine(String[] values); void writeLine(String value); void writeLine(Date value); void writeLine(int value); void writeLine(float value); void writeLine(double value); @Override String toString(); static final String DEFAULT_DELIMITER; static final String DEFAULT_NULL_STRING; }