org.apache.velocity.test
public class EventHandlingTestCase extends TestCase implements ReferenceInsertionEventHandler, NullSetEventHandler, MethodExceptionEventHandler, LogSystem
Version: $Id: EventHandlingTestCase.java,v 1.5.10.1 2004/03/03 23:23:04 geirm Exp $
Field Summary | |
---|---|
boolean | exceptionSwitch |
String | logString |
static String | NO_REFERENCE_VALUE |
static String | REFERENCE_VALUE |
Constructor Summary | |
---|---|
EventHandlingTestCase()
Default constructor. |
Method Summary | |
---|---|
void | init(RuntimeServices rs) |
void | logVelocityMessage(int level, String message)
handler for LogSystem interface |
Object | methodException(Class claz, String method, Exception e)
Handles exceptions thrown during in-template method access |
Object | referenceInsert(String reference, Object value)
Event handler for when a reference is inserted into the output stream. |
void | runTest()
Runs the test. |
boolean | shouldLogOnNullSet(String lhs, String rhs)
Event handler for when the right hand side of
a #set() directive is null, which results in
a log message. |
static Test | suite() |
void | throwException()
silly method to throw an exception to test
the method invocation exception event handling |