org.apache.velocity.test
Class ExternalLoggerTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.velocity.test.ExternalLoggerTest
All Implemented Interfaces:
LogSystem, junit.framework.Test

public class ExternalLoggerTest
extends junit.framework.TestCase
implements LogSystem

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

Version:
$Id: ExternalLoggerTest.java,v 1.4.10.1 2004/03/03 23:23:04 geirm Exp $
Author:
Geir Magnusson Jr.

Field Summary
private  java.lang.String logString
           
private  VelocityEngine ve
           
 
Fields inherited from class junit.framework.TestCase
fName
 
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, java.lang.String message)
          Send a log message from Velocity.
 void runTest()
          Runs the test.
static junit.framework.Test suite()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

logString

private java.lang.String logString

ve

private VelocityEngine ve
Constructor Detail

ExternalLoggerTest

public ExternalLoggerTest()
Default constructor.
Method Detail

init

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

suite

public static junit.framework.Test suite()

runTest

public void runTest()
Runs the test.
Overrides:
runTest in class junit.framework.TestCase

logVelocityMessage

public void logVelocityMessage(int level,
                               java.lang.String message)
Description copied from interface: LogSystem
Send a log message from Velocity.
Specified by:
logVelocityMessage in interface LogSystem


Copyright © 2002 Apache Software Foundation. All Rights Reserved.