Package com.mockobjects.servlet
Class MockBodyContent
- java.lang.Object
-
- BodyContent
-
- com.mockobjects.servlet.MockBodyContent
-
- All Implemented Interfaces:
Verifiable
public class MockBodyContent extends BodyContent implements Verifiable
-
-
Constructor Summary
Constructors Constructor Description MockBodyContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclearBody()voidclearBuffer()voidclose()booleanequals(java.lang.Object obj)voidflush()intgetBufferSize()JspWritergetEnclosingWriter()java.io.ReadergetReader()intgetRemaining()java.lang.StringgetString()booleanisAutoFlush()voidnewLine()voidprint(boolean b)voidprint(char c)voidprint(char[] chars)voidprint(double v)voidprint(float v)voidprint(int i)voidprint(long l)voidprint(java.lang.Object o)voidprint(java.lang.String s)voidprintln()voidprintln(boolean b)voidprintln(char c)voidprintln(char[] chars)voidprintln(double v)voidprintln(float v)voidprintln(int i)voidprintln(long l)voidprintln(java.lang.Object o)voidprintln(java.lang.String s)voidsetExpectedWriteOut(java.io.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)voidwrite(java.lang.String str)voidwrite(java.lang.String str, int off, int len)voidwriteOut(java.io.Writer aWriter)
-
-
-
Method Detail
-
getBufferSize
public int getBufferSize()
-
write
public void write(int c) throws java.io.IOException- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Throws:
java.io.IOException
-
isAutoFlush
public boolean isAutoFlush()
-
write
public void write(char[] cbuf) throws java.io.IOException- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object obj)
-
clearBody
public void clearBody()
-
write
public void write(java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
setupGetEnclosingWriter
public void setupGetEnclosingWriter(JspWriter aJspWriter)
-
getEnclosingWriter
public JspWriter getEnclosingWriter()
-
getReader
public java.io.Reader getReader()
-
newLine
public void newLine() throws java.io.IOException- Throws:
java.io.IOException
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(boolean b) throws java.io.IOException- Throws:
java.io.IOException
-
setExpectedWriteOut
public void setExpectedWriteOut(java.io.Writer aWriter)
-
writeOut
public void writeOut(java.io.Writer aWriter) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(char c) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(int i) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(long l) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(float v) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(double v) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(char[] chars) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(java.lang.String s) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(java.lang.Object o) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println() throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(boolean b) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(char c) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(int i) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(long l) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(float v) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(double v) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(char[] chars) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(java.lang.String s) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(java.lang.Object o) throws java.io.IOException- Throws:
java.io.IOException
-
clear
public void clear() throws java.io.IOException- Throws:
java.io.IOException
-
clearBuffer
public void clearBuffer() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getRemaining
public int getRemaining()
-
write
public void write(java.lang.String str, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
getString
public java.lang.String getString()
-
verify
public void verify()
Description copied from interface:VerifiableThrow an AssertionFailedException if any expectations have not been met.- Specified by:
verifyin interfaceVerifiable
-
-