PreprocessedRowsFlusher implements OdsAsyncFlusher { public static PreprocessedRowsFlusher create(final XMLUtil xmlUtil, final List<TableRowImpl> tableRows) throws IOException { final StringBuilder sb = new StringBuilder(STRING_BUILDER_SIZE); for (final TableRowImpl row : tableRows) { TableRowImpl.appendXMLToTable(row, xmlUtil, sb); } Collections.fill(tableRows, null); return new PreprocessedRowsFlusher(sb); } PreprocessedRowsFlusher(final CharSequence cs); static PreprocessedRowsFlusher create(final XMLUtil xmlUtil,
                                                 final List<TableRowImpl> tableRows); @Override void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer); @Override boolean isEnd();  }
@Test public void create() throws Exception { final List<TableRowImpl> rows = Collections.emptyList(); PowerMock.resetAll(); PowerMock.replayAll(); PreprocessedRowsFlusher.create(this.util, rows); PowerMock.verifyAll(); }