public void testIterator() throws Exception { IteratorItemReader<String> reader = new IteratorItemReader<>(Arrays.asList(new String[] { "a", "b", "c" }).iterator()); assertEquals("a", reader.read()); assertEquals("b", reader.read()); assertEquals("c", reader.read()); assertEquals(null, reader.read()); }
@Override public BatchExcelRow read() throws Exception { return delegate.read(); }
public LineStop read() throws Exception { return delegate.read(); }