@Test public void flushIntoEmptytList() throws Exception { final List<TableRowImpl> rows = Collections.emptyList(); PowerMock.resetAll(); this.appender.appendPostamble(this.w); PowerMock.replayAll(); final OdsAsyncFlusher f = new EndTableFlusher(this.appender, rows); f.flushInto(this.util, this.w); PowerMock.verifyAll(); }
@Override public void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer) throws IOException { for (final TableRowImpl row : this.rows) { TableRowImpl.appendXMLToTable(row, xmlUtil, writer); } Collections.fill(this.rows, null); this.appender.appendPostamble(writer); }
EndTableFlusher implements OdsAsyncFlusher { @Override public void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer) throws IOException { for (final TableRowImpl row : this.rows) { TableRowImpl.appendXMLToTable(row, xmlUtil, writer); } Collections.fill(this.rows, null); this.appender.appendPostamble(writer); } }
EndTableFlusher implements OdsAsyncFlusher { @Override public void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer) throws IOException { for (final TableRowImpl row : this.rows) { TableRowImpl.appendXMLToTable(row, xmlUtil, writer); } Collections.fill(this.rows, null); this.appender.appendPostamble(writer); } EndTableFlusher(final TableAppender appender, final List<TableRowImpl> rows); }
EndTableFlusher implements OdsAsyncFlusher { @Override public void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer) throws IOException { for (final TableRowImpl row : this.rows) { TableRowImpl.appendXMLToTable(row, xmlUtil, writer); } Collections.fill(this.rows, null); this.appender.appendPostamble(writer); } EndTableFlusher(final TableAppender appender, final List<TableRowImpl> rows); @Override void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer); @Override boolean isEnd(); }
EndTableFlusher implements OdsAsyncFlusher { @Override public void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer) throws IOException { for (final TableRowImpl row : this.rows) { TableRowImpl.appendXMLToTable(row, xmlUtil, writer); } Collections.fill(this.rows, null); this.appender.appendPostamble(writer); } EndTableFlusher(final TableAppender appender, final List<TableRowImpl> rows); @Override void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer); @Override boolean isEnd();  }