org.mockme.io
Class EasyMockOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.mockme.io.EasyMockOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class EasyMockOutputStream
extends OutputStream


Constructor Summary
EasyMockOutputStream(OutputStream mock)
           
 
Method Summary
 void close()
           
 void expectClose()
           
 void expectWrite(byte[] bytes)
           
 void expectWrite(int b)
           
 void expectWrite(String str)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasyMockOutputStream

public EasyMockOutputStream(OutputStream mock)
Method Detail

expectWrite

public void expectWrite(String str)
                 throws IOException
Throws:
IOException

expectWrite

public void expectWrite(byte[] bytes)
                 throws IOException
Throws:
IOException

expectWrite

public void expectWrite(int b)
                 throws IOException
Throws:
IOException

expectClose

public void expectClose()
                 throws IOException
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException


Copyright © 2006-2007 Jayway AB. All Rights Reserved.