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) void
setExpectedFileName
(String fileName) void
setupCreateFile
(File file) void
setupInputStream
(File expectedFile, InputStream returnStream) void
setupOutputStream
(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:
createInputStream
in interfaceIOFactory
- Throws:
FileNotFoundException
-
setupOutputStream
-
createOutputStream
- Specified by:
createOutputStream
in interfaceIOFactory
- Throws:
FileNotFoundException
-
setupCreateFile
-
setExpectedFileName
-
createFile
- Specified by:
createFile
in interfaceIOFactory
-