com.mockobjects.io

Class MockPrintStream

public class MockPrintStream extends PrintStream

Constructor Summary
MockPrintStream()
MockPrintStream(OutputStream out)
MockPrintStream(OutputStream out, boolean autoFlush)
Method Summary
voidbecomeErrorStream()
voidprintln(Object anObject)
voidprintln(String aString)
voidrestoreErrorStream()
voidsetExpectedPrintlnCalls(int calls)
voidsetExpectedStringSegment(String aString)
voidverify()

Constructor Detail

MockPrintStream

public MockPrintStream()

MockPrintStream

public MockPrintStream(OutputStream out)

MockPrintStream

public MockPrintStream(OutputStream out, boolean autoFlush)

Method Detail

becomeErrorStream

public void becomeErrorStream()

println

public void println(Object anObject)

println

public void println(String aString)

restoreErrorStream

public void restoreErrorStream()

setExpectedPrintlnCalls

public void setExpectedPrintlnCalls(int calls)

setExpectedStringSegment

public void setExpectedStringSegment(String aString)

verify

public void verify()
Copyright © 2002 Mock Objects. All Rights Reserved.