@Test void addCellProcessor() throws IOException { CellProcessor processor = when(mock(CellProcessor.class).processHeader()).thenReturn(true).getMock(); try (CsvWriter csvWriter = new CsvWriter(new StringWriter())) { csvWriter.addCellProcessor(processor); csvWriter.writeAttributeNames(Arrays.asList("col1", "col2")); } verify(processor).process("col1"); verify(processor).process("col2"); }
public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); }
CsvWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } }
CsvWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } CsvWriter(Writer writer);  CsvWriter(Writer writer, char separator);  CsvWriter(Writer writer, char separator, boolean noQuotes);  CsvWriter(OutputStream os, char separator);  CsvWriter(OutputStream os, char separator, boolean noQuotes); }
CsvWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } CsvWriter(Writer writer);  CsvWriter(Writer writer, char separator);  CsvWriter(Writer writer, char separator, boolean noQuotes);  CsvWriter(OutputStream os, char separator);  CsvWriter(OutputStream os, char separator, boolean noQuotes); void addCellProcessor(CellProcessor cellProcessor); @Override void add(Entity entity); void writeAttributeNames(Iterable<String> attributeNames); void writeAttributes(Iterable<Attribute> attributes); void writeAttributes(Iterable<String> attributeNames, Iterable<String> attributeLabels); @Override void close(); @Override void flush(); @Override void clearCache(); }
CsvWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } CsvWriter(Writer writer);  CsvWriter(Writer writer, char separator);  CsvWriter(Writer writer, char separator, boolean noQuotes);  CsvWriter(OutputStream os, char separator);  CsvWriter(OutputStream os, char separator, boolean noQuotes); void addCellProcessor(CellProcessor cellProcessor); @Override void add(Entity entity); void writeAttributeNames(Iterable<String> attributeNames); void writeAttributes(Iterable<Attribute> attributes); void writeAttributes(Iterable<String> attributeNames, Iterable<String> attributeLabels); @Override void close(); @Override void flush(); @Override void clearCache();  }