com.mockobjects.io

Class MockPrintStream


public class MockPrintStream
extends PrintStream

Constructor Summary

MockPrintStream()
MockPrintStream(OutputStream out)
MockPrintStream(OutputStream out, boolean autoFlush)

Method Summary

void
becomeErrorStream()
void
println(Object anObject)
void
println(String aString)
void
restoreErrorStream()
void
setExpectedPrintlnCalls(int calls)
void
setExpectedStringSegment(String aString)
void
verify()

Constructor Details

MockPrintStream

public MockPrintStream()

MockPrintStream

public MockPrintStream(OutputStream out)

MockPrintStream

public MockPrintStream(OutputStream out,
                       boolean autoFlush)

Method Details

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.