com.mockobjects.io
Class MockPrintStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.PrintStream
              extended bycom.mockobjects.io.MockPrintStream

public class MockPrintStream
extends java.io.PrintStream


Constructor Summary
MockPrintStream()
           
MockPrintStream(java.io.OutputStream out)
           
MockPrintStream(java.io.OutputStream out, boolean autoFlush)
           
 
Method Summary
 void becomeErrorStream()
           
 void println(java.lang.Object anObject)
           
 void println(java.lang.String aString)
           
 void restoreErrorStream()
           
 void setExpectedPrintlnCalls(int calls)
           
 void setExpectedStringSegment(java.lang.String aString)
           
 void verify()
           
 
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, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPrintStream

public MockPrintStream()

MockPrintStream

public MockPrintStream(java.io.OutputStream out)

MockPrintStream

public MockPrintStream(java.io.OutputStream out,
                       boolean autoFlush)
Method Detail

becomeErrorStream

public void becomeErrorStream()

println

public void println(java.lang.Object anObject)

println

public void println(java.lang.String aString)

restoreErrorStream

public void restoreErrorStream()

setExpectedPrintlnCalls

public void setExpectedPrintlnCalls(int calls)

setExpectedStringSegment

public void setExpectedStringSegment(java.lang.String aString)

verify

public void verify()


Copyright © 2002 Mock Objects. All Rights Reserved.