Package com.mockobjects.servlet
Class MockBodyContent
BodyContent
com.mockobjects.servlet.MockBodyContent
- All Implemented Interfaces:
Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
void
void
close()
boolean
void
flush()
int
JspWriter
int
boolean
void
newLine()
void
print
(boolean b) void
print
(char c) void
print
(char[] chars) void
print
(double v) void
print
(float v) void
print
(int i) void
print
(long l) void
void
void
println()
void
println
(boolean b) void
println
(char c) void
println
(char[] chars) void
println
(double v) void
println
(float v) void
println
(int i) void
println
(long l) void
void
void
setExpectedWriteOut
(Writer aWriter) void
setupGetEnclosingWriter
(JspWriter aJspWriter) void
verify()
Throw an AssertionFailedException if any expectations have not been met.void
write
(char[] cbuf) void
write
(char[] cbuf, int off, int len) void
write
(int c) void
void
void
-
Constructor Details
-
MockBodyContent
public MockBodyContent()
-
-
Method Details
-
getBufferSize
public int getBufferSize() -
write
- Throws:
IOException
-
flush
- Throws:
IOException
-
isAutoFlush
public boolean isAutoFlush() -
write
- Throws:
IOException
-
equals
-
clearBody
public void clearBody() -
write
- Throws:
IOException
-
setupGetEnclosingWriter
public void setupGetEnclosingWriter(JspWriter aJspWriter) -
getEnclosingWriter
public JspWriter getEnclosingWriter() -
getReader
-
newLine
- Throws:
IOException
-
write
- Throws:
IOException
-
print
- Throws:
IOException
-
setExpectedWriteOut
-
writeOut
- Throws:
IOException
-
print
- Throws:
IOException
-
print
- Throws:
IOException
-
print
- Throws:
IOException
-
print
- Throws:
IOException
-
print
- Throws:
IOException
-
print
- Throws:
IOException
-
print
- Throws:
IOException
-
print
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-
clear
- Throws:
IOException
-
clearBuffer
- Throws:
IOException
-
close
- Throws:
IOException
-
getRemaining
public int getRemaining() -
write
- Throws:
IOException
-
getString
-
verify
public void verify()Description copied from interface:Verifiable
Throw an AssertionFailedException if any expectations have not been met.- Specified by:
verify
in interfaceVerifiable
-