| org.apache.velocity.test.BaseTestCase org.apache.velocity.test.ContextSafetyTestCase
ContextSafetyTestCase | public class ContextSafetyTestCase extends BaseTestCase implements TemplateTestBase(Code) | | 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.
author: Geir Magnusson Jr. version: $Id: ContextSafetyTestCase.java 477002 2006-11-20 01:07:43Z henning $ |
ContextSafetyTestCase | public ContextSafetyTestCase(String name)(Code) | | |
suite | public static Test suite()(Code) | | |
testContextSafety | public void testContextSafety() throws Exception(Code) | | Runs the test.
|
Methods inherited from org.apache.velocity.test.BaseTestCase | protected static void assureResultsDirectoryExists(String resultsDirectory)(Code)(Java Doc) protected static String getFileName(String dir, String base, String ext)(Code)(Java Doc) protected static String getFileName(String dir, String base, String ext, boolean mustExist)(Code)(Java Doc) final protected static String getTestCaseName(String s)(Code)(Java Doc) protected boolean isMatch(String resultsDir, String compareDir, String baseFileName, String resultExt, String compareExt) throws Exception(Code)(Java Doc) protected boolean isMatch(String result, String compareDir, String baseFileName, String compareExt) throws Exception(Code)(Java Doc) protected String normalizeNewlines(String source)(Code)(Java Doc)
|
|
|