org.apache.velocity.test

Class ClassloaderChangeTest

Implemented Interfaces:
LogSystem

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 2001/09/16 23:55:32 geirm Exp $

Author:
Geir Magnusson Jr.

Nested Class Summary

Field Summary

private static String
OUTPUT
private boolean
sawCacheDump
private VelocityEngine
ve

Fields inherited from interface org.apache.velocity.runtime.log.LogSystem

DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID

Constructor Summary

ClassloaderChangeTest()
Default constructor.

Method Summary

void
init(RuntimeServices rs)
init()
void
logVelocityMessage(int level, String message)
method to catch Velocity log messages.
void
runTest()
Runs the test.
static junit.framework.Test
suite()

Field Details

OUTPUT

private static String OUTPUT


sawCacheDump

private boolean sawCacheDump


ve

private VelocityEngine ve

Constructor Details

ClassloaderChangeTest

public ClassloaderChangeTest()
Default constructor.

Method Details

init

public void init(RuntimeServices rs)
init()
Specified by:
init in interface LogSystem


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
Specified by:
logVelocityMessage in interface LogSystem


runTest

public void runTest()
Runs the test.


suite

public static junit.framework.Test suite()


Copyright © 2003 Apache Software Foundation. All Rights Reserved.