|
||||||||||
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.BaseTestCase | +--org.apache.velocity.test.ContextSafetyTestCase
Tests if we are context safe : can we switch objects in the context and re-merge the template safely. NOTE: This class should not extend RuntimeTestCase because this test is run from the VelocityTestSuite which in effect a runtime test suite and the test suite initializes the Runtime. Extending RuntimeTestCase causes the Runtime to be initialized twice.
Fields inherited from class org.apache.velocity.test.BaseTestCase |
perl |
Fields inherited from class junit.framework.TestCase |
fName |
Fields inherited from interface org.apache.velocity.test.TemplateTestBase |
CMP_FILE_EXT, COMPARE_DIR, FILE_RESOURCE_LOADER_PATH, RESULT_DIR, RESULT_FILE_EXT, TEST_CASE_PROPERTIES, TMPL_FILE_EXT |
Constructor Summary | |
ContextSafetyTestCase()
|
Method Summary | |
void |
runTest()
Runs the test. |
static junit.framework.Test |
suite()
|
Methods inherited from class org.apache.velocity.test.BaseTestCase |
assureResultsDirectoryExists, getFileName, getTestCaseName, isMatch, normalizeNewlines |
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 |
|
Constructor Detail |
public ContextSafetyTestCase()
Method Detail |
public static junit.framework.Test suite()
public void runTest()
runTest
in class junit.framework.TestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |