@Test public void testFlush() throws IOException { noCloseWriter.flush(); Mockito.verify(delegateWriter).flush(); Mockito.verifyNoMoreInteractions(delegateWriter); }
@Override public void flush() throws IOException { writer.flush(); }
NoCloseWriter extends Writer { @Override public void flush() throws IOException { writer.flush(); } }
NoCloseWriter extends Writer { @Override public void flush() throws IOException { writer.flush(); } NoCloseWriter(Writer writer); }
NoCloseWriter extends Writer { @Override public void flush() throws IOException { writer.flush(); } NoCloseWriter(Writer writer); @Override void close(); @Override void flush(); @Override void write(char[] cbuf, int off, int len); }
NoCloseWriter extends Writer { @Override public void flush() throws IOException { writer.flush(); } NoCloseWriter(Writer writer); @Override void close(); @Override void flush(); @Override void write(char[] cbuf, int off, int len);  }