|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.apache.velocity.test.ClassloaderChangeTest
Tests if we can hand Velocity an arbitrary class for logging.
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 |
|
Field Detail |
private VelocityEngine ve
private boolean sawCacheDump
private static java.lang.String OUTPUT
Constructor Detail |
public ClassloaderChangeTest()
Method Detail |
public void init(RuntimeServices rs)
LogSystem
init
in interface LogSystem
public static junit.framework.Test suite()
public void runTest()
runTest
in class junit.framework.TestCase
public void logVelocityMessage(int level, java.lang.String message)
logVelocityMessage
in interface LogSystem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |