public class MockBodyContent extends BodyContentEE
BodyContentEE クラスのモック実装。カスタム 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, getEnclosingWriterEEgetBufferSizeEE, isAutoFlushEEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic 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 IOExceptionSEpublic void clear()
throws IOExceptionSEJspWriterEE の clearEE IOExceptionSEpublic void clearBuffer()
throws IOExceptionSEJspWriterEE の clearBufferEE IOExceptionSEpublic void close()
throws IOExceptionSECloseableSE の closeSE AutoCloseableSE の closeSE JspWriterEE の closeEE IOExceptionSEpublic int getRemaining()
JspWriterEE の getRemainingEE public void newLine()
throws IOExceptionSEJspWriterEE の newLineEE IOExceptionSEpublic void write(char[] value,
int offset,
int length)
throws IOExceptionSEWriterSE の writeSE IOExceptionSEpublic void print(boolean value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(char value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(char[] value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(double value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(float value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(int value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(long value)
throws IOExceptionSEJspWriterEE の printEE IOExceptionSEpublic void print(ObjectSE value) throws IOExceptionSE
JspWriterEE の printEE IOExceptionSEpublic void print(StringSE value) throws IOExceptionSE
JspWriterEE の printEE IOExceptionSEpublic void println()
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(boolean value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(char value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(char[] value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(double value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(float value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(int value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(long value)
throws IOExceptionSEJspWriterEE の printlnEE IOExceptionSEpublic void println(ObjectSE value) throws IOExceptionSE
JspWriterEE の printlnEE IOExceptionSEpublic void println(StringSE value) throws IOExceptionSE
JspWriterEE の printlnEE IOExceptionSE