java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
com.mockobjects.io.MockPrintStream
- public class MockPrintStream
- extends java.io.PrintStream
| Methods inherited from class java.io.PrintStream |
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, setError, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myPrintlnCalls
private com.mockobjects.ExpectationCounter myPrintlnCalls
mySegment
private com.mockobjects.ExpectationSegment mySegment
myOldErrorStream
private java.io.PrintStream myOldErrorStream
MockPrintStream
public MockPrintStream()
MockPrintStream
public MockPrintStream(java.io.OutputStream out)
MockPrintStream
public MockPrintStream(java.io.OutputStream out,
boolean autoFlush)
becomeErrorStream
public void becomeErrorStream()
println
public void println(java.lang.Object anObject)
- Description copied from class:
java.io.PrintStream
- This method prints an
Object to the stream. The actual
value printed is determined by calling the String.valueOf()
method.
This method prints a line termination sequence after printing the value.
println
public void println(java.lang.String aString)
- Description copied from class:
java.io.PrintStream
- This method prints a
String to the stream. The actual
value printed depends on the system default encoding.
This method prints a line termination sequence after printing the value.
restoreErrorStream
public void restoreErrorStream()
setExpectedPrintlnCalls
public void setExpectedPrintlnCalls(int calls)
setExpectedStringSegment
public void setExpectedStringSegment(java.lang.String aString)
verify
public void verify()