org.apache.velocity.test
Class ClassloaderChangeTest

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

public class ClassloaderChangeTest
extends junit.framework.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.

Field Summary
private static java.lang.String OUTPUT
           
private  boolean sawCacheDump
           
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
ClassloaderChangeTest()
          Default constructor.
 
Method Summary
 void init(RuntimeServices rs)
          init()
 void logVelocityMessage(int level, java.lang.String message)
          method to catch Velocity log messages.
 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

ve

private VelocityEngine ve

sawCacheDump

private boolean sawCacheDump

OUTPUT

private static java.lang.String OUTPUT
Constructor Detail

ClassloaderChangeTest

public ClassloaderChangeTest()
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)
method to catch Velocity log messages. When we see the introspector dump message, then set the flag
Specified by:
logVelocityMessage in interface LogSystem


Copyright © 2003 Apache Software Foundation. All Rights Reserved.