Class Overview
Mock implementation of the javax.servlet.jsp.tagext.BodyContent class.
Used for testing the web framework; only necessary for testing
applications when testing custom JSP tags.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
MockBodyContent
(String content, HttpServletResponse response)
Create a MockBodyContent for the given response.
Parameters
content
| the body content to expose |
response
| the servlet response to wrap
|
public
MockBodyContent
(String content, Writer targetWriter)
Create a MockBodyContent for the given response.
Parameters
content
| the body content to expose |
targetWriter
| the target Writer to wrap
|
public
MockBodyContent
(String content, HttpServletResponse response, Writer targetWriter)
Create a MockBodyContent for the given response.
Parameters
content
| the body content to expose |
response
| the servlet response to wrap |
targetWriter
| the target Writer to wrap
|
Public Methods
public
void
clearBuffer
()
public
int
getRemaining
()
public
void
print
(float value)
public
void
print
(double value)
public
void
print
(String value)
public
void
print
(Object value)
public
void
print
(char value)
public
void
print
(char[] value)
public
void
print
(long value)
public
void
print
(int value)
public
void
print
(boolean value)
public
void
println
(float value)
public
void
println
(int value)
public
void
println
(long value)
public
void
println
(Object value)
public
void
println
(char[] value)
public
void
println
(String value)
public
void
println
(char value)
public
void
println
(double value)
public
void
println
(boolean value)
public
void
write
(char[] value, int offset, int length)
public
void
writeOut
(Writer writer)