@Test public void testWrite() throws IOException { noCloseWriter.write(new char[]{'e','f','g'},2,1); Mockito.verify(delegateWriter).write(new char[]{'e','f','g'},2,1); Mockito.verifyNoMoreInteractions(delegateWriter); }
@Override public void write(char[] cbuf, int off, int len) throws IOException { writer.write(cbuf, off, len); }
NoCloseWriter extends Writer { @Override public void write(char[] cbuf, int off, int len) throws IOException { writer.write(cbuf, off, len); } }
NoCloseWriter extends Writer { @Override public void write(char[] cbuf, int off, int len) throws IOException { writer.write(cbuf, off, len); } NoCloseWriter(Writer writer); }
NoCloseWriter extends Writer { @Override public void write(char[] cbuf, int off, int len) throws IOException { writer.write(cbuf, off, len); } NoCloseWriter(Writer writer); @Override void close(); @Override void flush(); @Override void write(char[] cbuf, int off, int len); }
NoCloseWriter extends Writer { @Override public void write(char[] cbuf, int off, int len) throws IOException { writer.write(cbuf, off, len); } NoCloseWriter(Writer writer); @Override void close(); @Override void flush(); @Override void write(char[] cbuf, int off, int len);  }