Package com.mockobjects.servlet
Class MockBodyContent
BodyContent
com.mockobjects.servlet.MockBodyContent
- All Implemented Interfaces:
Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoidvoidclose()booleanvoidflush()intJspWriterintbooleanvoidnewLine()voidprint(boolean b) voidprint(char c) voidprint(char[] chars) voidprint(double v) voidprint(float v) voidprint(int i) voidprint(long l) voidvoidvoidprintln()voidprintln(boolean b) voidprintln(char c) voidprintln(char[] chars) voidprintln(double v) voidprintln(float v) voidprintln(int i) voidprintln(long l) voidvoidvoidsetExpectedWriteOut(Writer aWriter) voidsetupGetEnclosingWriter(JspWriter aJspWriter) voidverify()Throw an AssertionFailedException if any expectations have not been met.voidwrite(char[] cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidvoidvoid
-
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:VerifiableThrow an AssertionFailedException if any expectations have not been met.- Specified by:
verifyin interfaceVerifiable
-