public class MockBodyContent extends BodyContentEE
BodyContent
EE クラスのモック実装。カスタム JSP タグをテストするときにアプリケーションをテストする場合にのみ必要です。autoFlushEE, bufferSizeEE, DEFAULT_BUFFEREE, NO_BUFFEREE, UNBOUNDED_BUFFEREE
コンストラクターと説明 |
---|
MockBodyContent(StringSE content, HttpServletResponseEE response) 指定されたレスポンスに対して MockBodyContent を作成します。 |
MockBodyContent(StringSE content, HttpServletResponseEE response, WriterSE targetWriter) 指定されたレスポンスに対して MockBodyContent を作成します。 |
MockBodyContent(StringSE content, WriterSE targetWriter) 指定されたレスポンスに対して MockBodyContent を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | clear() |
void | clearBuffer() |
void | close() |
ReaderSE | getReader() |
int | getRemaining() |
StringSE | getString() |
void | newLine() |
void | print(boolean value) |
void | print(char value) |
void | print(char[] value) |
void | print(double value) |
void | print(float value) |
void | print(int value) |
void | print(long value) |
void | print(ObjectSE value) |
void | print(StringSE value) |
void | println() |
void | println(boolean value) |
void | println(char value) |
void | println(char[] value) |
void | println(double value) |
void | println(float value) |
void | println(int value) |
void | println(long value) |
void | println(ObjectSE value) |
void | println(StringSE value) |
void | write(char[] value, int offset, int length) |
void | writeOut(WriterSE writer) |
clearBodyEE, flushEE, getEnclosingWriterEE
getBufferSizeEE, isAutoFlushEE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public MockBodyContent(StringSE content, HttpServletResponseEE response)
content
- 公開するボディコンテンツ response
- ラップするサーブレットのレスポンス public MockBodyContent(StringSE content, WriterSE targetWriter)
content
- 公開するボディコンテンツ targetWriter
- ラップするターゲットライター public MockBodyContent(StringSE content, @Nullable HttpServletResponseEE response, @Nullable WriterSE targetWriter)
content
- 公開するボディコンテンツ response
- ラップするサーブレットのレスポンス targetWriter
- ラップするターゲットライター public ReaderSE getReader()
BodyContentEE
の getReaderEE
public StringSE getString()
BodyContentEE
の getStringEE
public void writeOut(WriterSE writer) throws IOExceptionSE
BodyContentEE
の writeOutEE
IOExceptionSE
public void clear() throws IOExceptionSE
JspWriterEE
の clearEE
IOExceptionSE
public void clearBuffer() throws IOExceptionSE
JspWriterEE
の clearBufferEE
IOExceptionSE
public void close() throws IOExceptionSE
CloseableSE
の closeSE
AutoCloseableSE
の closeSE
JspWriterEE
の closeEE
IOExceptionSE
public int getRemaining()
JspWriterEE
の getRemainingEE
public void newLine() throws IOExceptionSE
JspWriterEE
の newLineEE
IOExceptionSE
public void write(char[] value, int offset, int length) throws IOExceptionSE
WriterSE
の writeSE
IOExceptionSE
public void print(boolean value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(char value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(char[] value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(double value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(float value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(int value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(long value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(ObjectSE value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void print(StringSE value) throws IOExceptionSE
JspWriterEE
の printEE
IOExceptionSE
public void println() throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(boolean value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(char value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(char[] value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(double value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(float value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(int value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(long value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(ObjectSE value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE
public void println(StringSE value) throws IOExceptionSE
JspWriterEE
の printlnEE
IOExceptionSE