|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.ObjectTestCase
org.apache.velocity.test.EventHandlingTestCase
Tests event handling
| フィールドの概要 | |
private boolean |
exceptionSwitch
|
private java.lang.String |
logString
|
private static java.lang.String |
NO_REFERENCE_VALUE
|
private static java.lang.String |
REFERENCE_VALUE
|
| インタフェース org.apache.velocity.runtime.log.LogSystem から継承したフィールド |
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID |
| コンストラクタの概要 | |
EventHandlingTestCase()
Default constructor. |
|
| メソッドの概要 | |
void |
init(RuntimeServices rs)
init() |
void |
logVelocityMessage(int level,
java.lang.String message)
handler for LogSystem interface |
java.lang.Object |
methodException(java.lang.Class claz,
java.lang.String method,
java.lang.Exception e)
Handles exceptions thrown during in-template method access |
java.lang.Object |
referenceInsert(java.lang.String reference,
java.lang.Object value)
Event handler for when a reference is inserted into the output stream. |
void |
runTest()
Runs the test. |
boolean |
shouldLogOnNullSet(java.lang.String lhs,
java.lang.String rhs)
Event handler for when the right hand side of a #set() directive is null, which results in a log message. |
static junit.framework.Test |
suite()
|
void |
throwException()
silly method to throw an exception to test the method invocation exception event handling |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
private java.lang.String logString
private boolean exceptionSwitch
private static java.lang.String NO_REFERENCE_VALUE
private static java.lang.String REFERENCE_VALUE
| コンストラクタの詳細 |
public EventHandlingTestCase()
| メソッドの詳細 |
public void init(RuntimeServices rs)
LogSystem の記述:
LogSystem 内の initpublic static junit.framework.Test suite()
public void runTest()
public void throwException()
throws java.lang.Exception
java.lang.Exception
public java.lang.Object referenceInsert(java.lang.String reference,
java.lang.Object value)
ReferenceInsertionEventHandler 内の referenceInsertreference - Reference from template about to be inserted.value - Value about to be inserted (after its
toString() method is called).
toString() should be
called for output.
public boolean shouldLogOnNullSet(java.lang.String lhs,
java.lang.String rhs)
NullSetEventHandler 内の shouldLogOnNullSetlhs - reference literal of left-hand-side of set statementrhs - reference literal of right-hand-side of set statement
public java.lang.Object methodException(java.lang.Class claz,
java.lang.String method,
java.lang.Exception e)
throws java.lang.Exception
MethodExceptionEventHandler 内の methodExceptionjava.lang.Exception
public void logVelocityMessage(int level,
java.lang.String message)
LogSystem 内の logVelocityMessage
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||