org.apache.velocity.test
Class ClassloaderChangeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.velocity.test.ClassloaderChangeTest
All Implemented Interfaces:
junit.framework.Test

public class ClassloaderChangeTest
extends junit.framework.TestCase

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

Version:
$Id: ClassloaderChangeTest.java 191743 2005-06-21 23:22:20Z dlr $
Author:
Geir Magnusson Jr.

Constructor Summary
ClassloaderChangeTest()
          Default constructor.
 
Method Summary
 void init(RuntimeServices rs)
           
 void logVelocityMessage(int level, 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, run, run, runBare, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassloaderChangeTest

public ClassloaderChangeTest()
Default constructor.

Method Detail

init

public void init(RuntimeServices rs)

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,
                               String message)
method to catch Velocity log messages. When we see the introspector dump message, then set the flag



Copyright © 2002 Apache Software Foundation. All Rights Reserved.