Package no.priv.bang.ukelonn.mocks
Class MockOutputStreamThatThrowsIOExceptionOnEverything
java.lang.Object
java.io.OutputStream
no.priv.bang.ukelonn.mocks.MockOutputStreamThatThrowsIOExceptionOnEverything
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A handwritten mock
OutputStream.
This is an OutputStream that will throw IOException on
all methods declaring IOException.- Author:
- Steinar Bang
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Constructor Details
-
MockOutputStreamThatThrowsIOExceptionOnEverything
public MockOutputStreamThatThrowsIOExceptionOnEverything()
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-