com.mockobjects.io

Class MockOutputStream

public class MockOutputStream extends OutputStream implements Verifiable

Constructor Summary
MockOutputStream()
Method Summary
voidclearActualBuffer()
voidclose()
voidflush()
StringgetContents()
byte[]getContentsAsByteArray()
Added in response to Bug report 546661.
voidsetExpectedCloseCalls(int closeCall)
voidsetExpectedFlushCalls(int flushCall)
voidsetExpectingWriteCalls(boolean expectingWriteCall)
voidsetupThrowIOException(boolean throwException)
voidverify()
voidwrite(int b)

Constructor Detail

MockOutputStream

public MockOutputStream()

Method Detail

clearActualBuffer

public void clearActualBuffer()

close

public void close()

flush

public void flush()

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()

write

public void write(int b)
Copyright © 2002 Mock Objects. All Rights Reserved.