OdsFileWriterAdapter implements NamedOdsFileWriter { public static OdsFileWriterAdapter create(final Logger logger, final NamedOdsFileWriter adaptee) { return new OdsFileWriterAdapter(logger, adaptee, new LinkedList<OdsAsyncFlusher>()); } OdsFileWriterAdapter(final Logger logger, final NamedOdsFileWriter adaptee,
                         final Queue<OdsAsyncFlusher> flushers); static OdsFileWriterAdapter create(final Logger logger,
                                              final NamedOdsFileWriter adaptee); @Override void close(); @Override NamedOdsDocument document(); @Override synchronized void save(); @Override synchronized void update(final OdsAsyncFlusher flusher); synchronized void flushAdaptee(); synchronized boolean isNotStopped(); synchronized void waitForData();  }
@Test public void testCreate() { PowerMock.resetAll(); PowerMock.replayAll(); final OdsFileWriterAdapter odsFileWriterAdapter = OdsFileWriterAdapter.create(this.logger, this.w); PowerMock.verifyAll(); Assert.assertEquals(OdsFileWriterAdapter.class, odsFileWriterAdapter.getClass()); }