public class MockJspWriter extends JspWriterEE
JspWriter
EE クラスのモック実装。カスタム JSP タグをテストするときにアプリケーションをテストする場合にのみ必要です。autoFlushEE, bufferSizeEE, DEFAULT_BUFFEREE, NO_BUFFEREE, UNBOUNDED_BUFFEREE
コンストラクターと説明 |
---|
MockJspWriter(HttpServletResponseEE response) レスポンスのデフォルトのライターを使用して、指定されたレスポンスの MockJspWriter を作成します。 |
MockJspWriter(HttpServletResponseEE response, WriterSE targetWriter) 指定されたレスポンスに対して MockJspWriter を作成します。 |
MockJspWriter(WriterSE targetWriter) 指定されたプレーンライターの MockJspWriter を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | clear() |
void | clearBuffer() |
void | close() |
void | flush() |
int | getRemaining() |
protected PrintWriterSE | getTargetWriter() ターゲット Writer を遅延初期化します。 |
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) |
getBufferSizeEE, isAutoFlushEE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public MockJspWriter(HttpServletResponseEE response)
response
- ラップするサーブレットのレスポンス public MockJspWriter(WriterSE targetWriter)
targetWriter
- ラップするターゲットライター public MockJspWriter(@Nullable HttpServletResponseEE response, @Nullable WriterSE targetWriter)
response
- ラップするサーブレットのレスポンス targetWriter
- ラップするターゲットライター protected PrintWriterSE getTargetWriter() throws IOExceptionSE
public void clear() throws IOExceptionSE
JspWriterEE
の clearEE
IOExceptionSE
public void clearBuffer() throws IOExceptionSE
JspWriterEE
の clearBufferEE
IOExceptionSE
public void flush() throws IOExceptionSE
FlushableSE
の flushSE
JspWriterEE
の flushEE
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