org.apache.velocity.test

Class ClassloaderChangeTest

public class ClassloaderChangeTest extends TestCase implements LogSystem

Tests if we can hand Velocity an arbitrary class for logging.

Version: $Id: ClassloaderChangeTest.java,v 1.1.10.1 2004/03/03 23:23:04 geirm Exp $

Author: Geir Magnusson Jr.

Field Summary
static StringOUTPUT
booleansawCacheDump
VelocityEngineve
Constructor Summary
ClassloaderChangeTest()
Default constructor.
Method Summary
voidinit(RuntimeServices rs)
voidlogVelocityMessage(int level, String message)
method to catch Velocity log messages.
voidrunTest()
Runs the test.
static Testsuite()

Field Detail

OUTPUT

private static String OUTPUT

sawCacheDump

private boolean sawCacheDump

ve

private VelocityEngine ve

Constructor Detail

ClassloaderChangeTest

public ClassloaderChangeTest()
Default constructor.

Method Detail

init

public void init(RuntimeServices rs)

logVelocityMessage

public void logVelocityMessage(int level, String message)
method to catch Velocity log messages. When we see the introspector dump message, then set the flag

runTest

public void runTest()
Runs the test.

suite

public static Test suite()
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.