@Test void addCellProcessor_header() { CellProcessor processor = mock(CellProcessor.class); when(processor.processHeader()).thenReturn(true); when(processor.process("col1")).thenReturn("col1"); when(processor.process("col2")).thenReturn("col2"); excelSheetReader.addCellProcessor(processor); for (@SuppressWarnings("unused") Entity entity : excelSheetReader) {} verify(processor).process("col1"); verify(processor).process("col2"); }
public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); }
ExcelRepository extends AbstractRepository { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } }
ExcelRepository extends AbstractRepository { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } ExcelRepository(
      Sheet sheet, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory);  ExcelRepository(
      Sheet sheet,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      List<CellProcessor> cellProcessors); }
ExcelRepository extends AbstractRepository { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } ExcelRepository(
      Sheet sheet, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory);  ExcelRepository(
      Sheet sheet,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      List<CellProcessor> cellProcessors); int getNrRows(); @Override Iterator<Entity> iterator(); void addCellProcessor(CellProcessor cellProcessor); EntityType getEntityType(); @Override Set<RepositoryCapability> getCapabilities(); @Override long count(); }
ExcelRepository extends AbstractRepository { public void addCellProcessor(CellProcessor cellProcessor) { if (cellProcessors == null) cellProcessors = new ArrayList<>(); cellProcessors.add(cellProcessor); } ExcelRepository(
      Sheet sheet, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory);  ExcelRepository(
      Sheet sheet,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      List<CellProcessor> cellProcessors); int getNrRows(); @Override Iterator<Entity> iterator(); void addCellProcessor(CellProcessor cellProcessor); EntityType getEntityType(); @Override Set<RepositoryCapability> getCapabilities(); @Override long count();  }