|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.velocity.test.BaseEvalTestCase
public class BaseEvalTestCase
Base for test cases that use evaluate, instead of going through the resource loaders.
Field Summary | |
---|---|
protected VelocityContext |
context
|
protected boolean |
DEBUG
|
protected VelocityEngine |
engine
|
protected TestLogChute |
log
|
Constructor Summary | |
---|---|
BaseEvalTestCase(String name)
|
Method Summary | |
---|---|
protected void |
assertContextValue(String key,
Object expected)
|
protected void |
assertEvalEquals(String expected,
String template)
|
protected Exception |
assertEvalException(String evil)
|
protected Exception |
assertEvalException(String evil,
Class exceptionType)
|
protected Exception |
assertEvalExceptionAt(String evil,
int line,
int col)
|
protected Exception |
assertEvalExceptionAt(String evil,
String template,
int line,
int col)
|
protected String |
evaluate(String template)
|
protected void |
setContext(VelocityContext context)
|
protected void |
setProperties(VelocityEngine engine)
|
void |
setUp()
|
void |
tearDown()
|
void |
testBase()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Field Detail |
---|
protected VelocityEngine engine
protected VelocityContext context
protected boolean DEBUG
protected TestLogChute log
Constructor Detail |
---|
public BaseEvalTestCase(String name)
Method Detail |
---|
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testBase()
protected void setProperties(VelocityEngine engine)
protected void setContext(VelocityContext context)
protected void assertContextValue(String key, Object expected)
protected void assertEvalEquals(String expected, String template)
protected Exception assertEvalException(String evil)
protected Exception assertEvalException(String evil, Class exceptionType)
protected Exception assertEvalExceptionAt(String evil, String template, int line, int col)
protected Exception assertEvalExceptionAt(String evil, int line, int col)
protected String evaluate(String template)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |