Package com.mockobjects.io
Class MockIOFactory
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.io.MockIOFactory
- All Implemented Interfaces:
IOFactory,Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFile(String fileName) createInputStream(File aFile) createOutputStream(File aFile) voidsetExpectedFileName(String fileName) voidsetupCreateFile(File file) voidsetupInputStream(File expectedFile, InputStream returnStream) voidsetupOutputStream(File expectedFile, OutputStream returnStream) Methods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verify
-
Constructor Details
-
MockIOFactory
public MockIOFactory()
-
-
Method Details
-
setupInputStream
-
createInputStream
- Specified by:
createInputStreamin interfaceIOFactory- Throws:
FileNotFoundException
-
setupOutputStream
-
createOutputStream
- Specified by:
createOutputStreamin interfaceIOFactory- Throws:
FileNotFoundException
-
setupCreateFile
-
setExpectedFileName
-
createFile
- Specified by:
createFilein interfaceIOFactory
-