Package com.mockobjects.servlet
Class MockServletOutputStream
ServletOutputStream
com.mockobjects.servlet.MockServletOutputStream
public class MockServletOutputStream
extends ServletOutputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
setExpectedCloseCalls
(int closeCall) void
setExpectingWriteCalls
(boolean expectingWriteCall) void
setThrowIOException
(boolean throwException) void
toString()
void
verify()
void
write
(int b)
-
Constructor Details
-
MockServletOutputStream
public MockServletOutputStream()
-
-
Method Details
-
setExpectedCloseCalls
public void setExpectedCloseCalls(int closeCall) -
setExpectingWriteCalls
public void setExpectingWriteCalls(boolean expectingWriteCall) -
setThrowIOException
public void setThrowIOException(boolean throwException) -
close
- Throws:
IOException
-
toString
-
write
- Throws:
IOException
-
setupClearContents
public void setupClearContents() -
getContents
-
verify
public void verify()
-