|
||||||||||
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.BaseTestCase
org.apache.velocity.test.EvaluateTestCase
public class EvaluateTestCase
Test #evaluate directive.
Field Summary |
---|
Fields inherited from interface org.apache.velocity.test.TemplateTestBase |
---|
RESULT_DIR, TEST_CASE_PROPERTIES, TEST_COMPARE_DIR, TEST_RESULT_DIR |
Constructor Summary | |
---|---|
EvaluateTestCase(String name)
Default constructor. |
Method Summary | |
---|---|
void |
setUp()
|
void |
setupContext(Context context)
|
static junit.framework.Test |
suite()
|
void |
testErrors()
Test errors are thrown |
void |
testEvaluate()
Test basic functionality. |
void |
testEvaluateMacroPreserve()
Test evaluate directive preserves macros (VELOCITY-591) |
void |
testEvaluateVMContext()
Test in a macro context. |
void |
testEventHandler()
Test that the event handlers work in #evaluate (since they are attached to the context). |
void |
testStop()
Test #stop (since it is attached to context). |
Methods inherited from class org.apache.velocity.test.BaseTestCase |
---|
assureResultsDirectoryExists, getFileContents, getFileName, getFileName, getTestCaseName, isMatch, isMatch, normalizeNewlines |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
---|
public EvaluateTestCase(String name)
name
- Method Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
public void testEvaluate() throws Exception
Exception
public void testEvaluateMacroPreserve() throws Exception
Exception
public void testEvaluateVMContext() throws Exception
Exception
public void testStop() throws Exception
Exception
public void testEventHandler() throws Exception
Exception
public void testErrors() throws Exception
Exception
public void setupContext(Context context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |