com.mockobjects.io
Class MockIOFactory
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.io.MockIOFactory
- All Implemented Interfaces:
- IOFactory, Verifiable
- public class MockIOFactory
- extends MockObject
- implements IOFactory
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockIOFactory
public MockIOFactory()
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.