com.mockobjects.io
Class MockOutputStream
OutputStream
com.mockobjects.io.MockOutputStream
- Verifiable
public class MockOutputStream
extends OutputStream
MockOutputStream
public MockOutputStream()
clearActualBuffer
public void clearActualBuffer()
close
public void close()
throws IOException
flush
public void flush()
throws IOException
getContents
public String getContents()
getContentsAsByteArray
public byte[] getContentsAsByteArray()
Added in response to Bug report 546661.
setExpectedCloseCalls
public void setExpectedCloseCalls(int closeCall)
setExpectedFlushCalls
public void setExpectedFlushCalls(int flushCall)
setExpectingWriteCalls
public void setExpectingWriteCalls(boolean expectingWriteCall)
setupThrowIOException
public void setupThrowIOException(boolean throwException)
verify
public void verify()
Throw an AssertionFailedException if any expectations have not been met.
- verify in interface Verifiable
write
public void write(int b)
throws IOException
Copyright © 2002 Mock Objects. All Rights Reserved.