@Test void addCellProcessor() { CellProcessor processor = when(mock(CellProcessor.class).processData()).thenReturn(true).getMock(); Entity entity = new DynamicEntity(mock(EntityType.class)) { @Override protected void validateValueType(String attrName, Object value) { } }; entity.set("col1", "val1"); entity.set("col2", "val2"); excelSheetWriter.addCellProcessor(processor); excelSheetWriter.add(entity); verify(processor).process("val1"); verify(processor).process("val2"); }
public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); }
ExcelSheetWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } }
ExcelSheetWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } ExcelSheetWriter(
      Sheet sheet,
      Iterable<Attribute> attributes,
      AttributeWriteMode attributeWriteMode,
      List<CellProcessor> cellProcessors); }
ExcelSheetWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } ExcelSheetWriter(
      Sheet sheet,
      Iterable<Attribute> attributes,
      AttributeWriteMode attributeWriteMode,
      List<CellProcessor> cellProcessors); @Override void add(Entity entity); void writeAttributeHeaders(
      Iterable<Attribute> attributes, AttributeWriteMode attributeWriteMode); void addCellProcessor(CellProcessor cellProcessor); @Override void close(); @Override void flush(); @Override void clearCache(); }
ExcelSheetWriter extends AbstractWritable { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } ExcelSheetWriter(
      Sheet sheet,
      Iterable<Attribute> attributes,
      AttributeWriteMode attributeWriteMode,
      List<CellProcessor> cellProcessors); @Override void add(Entity entity); void writeAttributeHeaders(
      Iterable<Attribute> attributes, AttributeWriteMode attributeWriteMode); void addCellProcessor(CellProcessor cellProcessor); @Override void close(); @Override void flush(); @Override void clearCache();  }