org.apache.velocity.test

Class ExternalLoggerTest

Implemented Interfaces:
LogSystem

public class ExternalLoggerTest
extends TestCase
implements LogSystem

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

Version:
$Id: ExternalLoggerTest.java,v 1.4 2001/08/20 11:08:14 geirm Exp $

Author:
Geir Magnusson Jr.

Nested Class Summary

Field Summary

private String
logString
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

ExternalLoggerTest()
Default constructor.

Method Summary

void
init(RuntimeServices rs)
init()
void
logVelocityMessage(int level, String message)
Send a log message from Velocity.
void
runTest()
Runs the test.
static junit.framework.Test
suite()

Field Details

logString

private String logString


ve

private VelocityEngine ve

Constructor Details

ExternalLoggerTest

public ExternalLoggerTest()
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)
Send a log message from Velocity.
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.