com.mockobjects.servlet

Class MockBodyContent

Implemented Interfaces:
Verifiable

public class MockBodyContent
extends BodyContent
implements Verifiable

Constructor Summary

MockBodyContent()

Method Summary

void
clear()
void
clearBody()
void
clearBuffer()
void
close()
boolean
equals(Object obj)
void
flush()
int
getBufferSize()
JspWriter
getEnclosingWriter()
Reader
getReader()
int
getRemaining()
String
getString()
boolean
isAutoFlush()
void
newLine()
void
print(Object o)
void
print(String s)
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
println()
void
println(Object o)
void
println(String s)
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
setExpectedWriteOut(Writer aWriter)
void
setupGetEnclosingWriter(JspWriter aJspWriter)
void
verify()
Throw an AssertionFailedException if any expectations have not been met.
void
write(String str)
void
write(String str, int off, int len)
void
write(cbuf[] )
void
write(cbuf[] , int off, int len)
void
write(int c)
void
writeOut(Writer aWriter)

Constructor Details

MockBodyContent

public MockBodyContent()

Method Details

clear

public void clear()
            throws IOException

clearBody

public void clearBody()

clearBuffer

public void clearBuffer()
            throws IOException

close

public void close()
            throws IOException

equals

public boolean equals(Object obj)

flush

public void flush()
            throws IOException

getBufferSize

public int getBufferSize()

getEnclosingWriter

public JspWriter getEnclosingWriter()

getReader

public Reader getReader()

getRemaining

public int getRemaining()

getString

public String getString()

isAutoFlush

public boolean isAutoFlush()

newLine

public void newLine()
            throws IOException

print

public void print(Object o)
            throws IOException

print

public void print(String s)
            throws IOException

print

public void print(boolean b)
            throws IOException

print

public void print(char c)
            throws IOException

print

public void print(char[] chars)
            throws IOException

print

public void print(double v)
            throws IOException

print

public void print(float v)
            throws IOException

print

public void print(int i)
            throws IOException

print

public void print(long l)
            throws IOException

println

public void println()
            throws IOException

println

public void println(Object o)
            throws IOException

println

public void println(String s)
            throws IOException

println

public void println(boolean b)
            throws IOException

println

public void println(char c)
            throws IOException

println

public void println(char[] chars)
            throws IOException

println

public void println(double v)
            throws IOException

println

public void println(float v)
            throws IOException

println

public void println(int i)
            throws IOException

println

public void println(long l)
            throws IOException

setExpectedWriteOut

public void setExpectedWriteOut(Writer aWriter)

setupGetEnclosingWriter

public void setupGetEnclosingWriter(JspWriter aJspWriter)

verify

public void verify()
Throw an AssertionFailedException if any expectations have not been met.
Specified by:
verify in interface Verifiable

write

public void write(String str)
            throws IOException

write

public void write(String str,
                  int off,
                  int len)
            throws IOException

write

public void write(cbuf[] )
            throws IOException

write

public void write(cbuf[] ,
                  int off,
                  int len)
            throws IOException

write

public void write(int c)
            throws IOException

writeOut

public void writeOut(Writer aWriter)
            throws IOException

Copyright © 2002 Mock Objects. All Rights Reserved.