org.apache.velocity.test.misc
Class Test
java.lang.Object
org.apache.velocity.test.misc.Test
- EventHandler, MethodExceptionEventHandler, NullSetEventHandler, ReferenceInsertionEventHandler
public class Test
extends java.lang.Object
This class the testbed for Velocity. It is used to
test all the directives support by Velocity.
$Id: Test.java,v 1.34.8.1 2004/03/03 23:23:05 geirm Exp $
Test(String templateFile, String encoding)
|
static void | main(String[] args)
|
Object | methodException(Class claz, String method, Exception e)
|
Object | referenceInsert(String reference, Object value) - A call-back which is executed during Velocity merge before a
reference value is inserted into the output stream.
|
boolean | shouldLogOnNullSet(String lhs, String rhs)
|
writerStack
private static Stack writerStack
Cache of writers
Test
public Test(String templateFile,
String encoding)
main
public static void main(String[] args)
referenceInsert
public Object referenceInsert(String reference,
Object value)
A call-back which is executed during Velocity merge before a
reference value is inserted into the output stream.
- referenceInsert in interface ReferenceInsertionEventHandler
reference
- Reference from template about to be inserted.value
- Value about to be inserted (after its
toString()
method is called).
- Object on which
toString()
should be
called for output.
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.