com.mockobjects.io
Class MockIOFactory

java.lang.Object
  extended bycom.mockobjects.MockObject
      extended bycom.mockobjects.io.MockIOFactory
All Implemented Interfaces:
IOFactory, Verifiable

public class MockIOFactory
extends MockObject
implements IOFactory


Constructor Summary
MockIOFactory()
           
 
Method Summary
 File createFile(java.lang.String fileName)
           
 java.io.InputStream createInputStream(File aFile)
           
 java.io.OutputStream createOutputStream(File aFile)
           
 void setExpectedFileName(java.lang.String fileName)
           
 void setupCreateFile(File file)
           
 void setupInputStream(File expectedFile, java.io.InputStream returnStream)
           
 void setupOutputStream(File expectedFile, java.io.OutputStream returnStream)
           
 
Methods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockIOFactory

public MockIOFactory()
Method Detail

setupInputStream

public void setupInputStream(File expectedFile,
                             java.io.InputStream returnStream)

createInputStream

public java.io.InputStream createInputStream(File aFile)
                                      throws java.io.FileNotFoundException
Specified by:
createInputStream in interface IOFactory
Throws:
java.io.FileNotFoundException

setupOutputStream

public void setupOutputStream(File expectedFile,
                              java.io.OutputStream returnStream)

createOutputStream

public java.io.OutputStream createOutputStream(File aFile)
                                        throws java.io.FileNotFoundException
Specified by:
createOutputStream in interface IOFactory
Throws:
java.io.FileNotFoundException

setupCreateFile

public void setupCreateFile(File file)

setExpectedFileName

public void setExpectedFileName(java.lang.String fileName)

createFile

public File createFile(java.lang.String fileName)
Specified by:
createFile in interface IOFactory


Copyright © 2002 Mock Objects. All Rights Reserved.