|
||||||||||
| 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 class org.apache.velocity.test.BaseTestCase |
|---|
context, DEBUG, engine, log, stringRepoName |
| 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 |
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 |
testStopAndBreak()
Test #stop and #break |
| Methods inherited from class org.apache.velocity.test.BaseTestCase |
|---|
addTemplate, assertContextValue, assertEvalEquals, assertEvalException, assertEvalException, assertEvalExceptionAt, assertEvalExceptionAt, assertSchmoo, assertTmplEquals, assureResultsDirectoryExists, evaluate, getFileContents, getFileName, getFileName, getStringRepository, getTestCaseName, info, info, isMatch, isMatch, normalizeNewlines, removeTemplate, setUpContext, setUpEngine, tearDown, 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 |
| Constructor Detail |
|---|
public EvaluateTestCase(String name)
name - | Method Detail |
|---|
public void setUp()
throws Exception
setUp in class BaseTestCaseException
public void testEvaluate()
throws Exception
Exception
public void testEvaluateMacroPreserve()
throws Exception
Exception
public void testEvaluateVMContext()
throws Exception
Exceptionpublic void testStopAndBreak()
Exception
public void testEventHandler()
throws Exception
Exception
public void testErrors()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||