@Test public void testExpectEof() throws IOException { outputStream.write(data); outputStream.expectEof(); }
public void expectEof() throws IOException { if (expectedBytesStream.read() != -1) { throw new MismatchException("EOF not reached in expectedBytesStream"); } }
MatchingOutputStream extends OutputStream { public void expectEof() throws IOException { if (expectedBytesStream.read() != -1) { throw new MismatchException("EOF not reached in expectedBytesStream"); } } }
MatchingOutputStream extends OutputStream { public void expectEof() throws IOException { if (expectedBytesStream.read() != -1) { throw new MismatchException("EOF not reached in expectedBytesStream"); } } MatchingOutputStream(InputStream expectedBytesStream, int matchBufferSize); }
MatchingOutputStream extends OutputStream { public void expectEof() throws IOException { if (expectedBytesStream.read() != -1) { throw new MismatchException("EOF not reached in expectedBytesStream"); } } MatchingOutputStream(InputStream expectedBytesStream, int matchBufferSize); @Override void write(int b); @Override void write(byte[] b); @Override void write(byte[] dataToWrite, int offset, int length); void expectEof(); }
MatchingOutputStream extends OutputStream { public void expectEof() throws IOException { if (expectedBytesStream.read() != -1) { throw new MismatchException("EOF not reached in expectedBytesStream"); } } MatchingOutputStream(InputStream expectedBytesStream, int matchBufferSize); @Override void write(int b); @Override void write(byte[] b); @Override void write(byte[] dataToWrite, int offset, int length); void expectEof();  }