org.apache.velocity.test
Class ScopeTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.velocity.test.BaseTestCase
              extended by org.apache.velocity.test.ScopeTestCase
All Implemented Interfaces:
junit.framework.Test, TemplateTestBase

public class ScopeTestCase
extends BaseTestCase

This class tests the directive scope controls


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
CMP_FILE_EXT, COMPARE_DIR, FILE_RESOURCE_LOADER_PATH, RESULT_DIR, RESULT_FILE_EXT, TEST_CASE_PROPERTIES, TEST_COMPARE_DIR, TEST_RESULT_DIR, TMPL_FILE_EXT
 
Constructor Summary
ScopeTestCase(String name)
           
 
Method Summary
protected  void setUpEngine(org.apache.velocity.app.VelocityEngine engine)
           
 void testBodyContentReplaced()
           
 void testBodyMacroScope()
           
 void testDefineReplaced()
           
 void testDefineScope()
           
 void testEvaluateReplaced()
           
 void testEvaluateScope()
           
 void testForeachReplaced()
           
 void testForeachScope()
           
 void testInfoDepth()
           
 void testInfoLineAndColumn()
           
 void testInfoName()
           
 void testInfoTemplate()
           
 void testInfoType()
           
 void testMacroReplaced()
           
 void testMacroScope()
           
 void testNestedDefineScope()
           
 void testNestedEvaluateScope()
           
 void testNestedForeachScope()
           
 void testNestedMacroScope()
           
 void testNestedParseScope()
           
 void testParseScope()
           
 void testRecursiveBodyMacroScope()
           
 void testRecursiveDefineScope()
           
 void testRecursiveMacroScope()
           
 void testRootEvaluateScope()
           
 void testRootTemplateMergeScope()
           
 void testScopeGetLeakDoesntHideNullset()
           
 void testScopeGetLeakIntoInner()
           
 void testTemplateReplaced()
           
 void testTurningOffDefineScope()
           
 void testTurningOffEvaluateScope()
           
 void testTurningOffForeachScope()
           
 void testTurningOffMacroScope()
           
 void testTurningOffTemplateScope()
           
 
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, setUp, setUpContext, 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

ScopeTestCase

public ScopeTestCase(String name)
Method Detail

setUpEngine

protected void setUpEngine(org.apache.velocity.app.VelocityEngine engine)
Overrides:
setUpEngine in class BaseTestCase

testScopeGetLeakIntoInner

public void testScopeGetLeakIntoInner()

testScopeGetLeakDoesntHideNullset

public void testScopeGetLeakDoesntHideNullset()

testRootTemplateMergeScope

public void testRootTemplateMergeScope()

testParseScope

public void testParseScope()

testNestedParseScope

public void testNestedParseScope()

testForeachScope

public void testForeachScope()

testNestedForeachScope

public void testNestedForeachScope()

testMacroScope

public void testMacroScope()

testRecursiveMacroScope

public void testRecursiveMacroScope()

testNestedMacroScope

public void testNestedMacroScope()

testBodyMacroScope

public void testBodyMacroScope()

testRecursiveBodyMacroScope

public void testRecursiveBodyMacroScope()

testDefineScope

public void testDefineScope()

testNestedDefineScope

public void testNestedDefineScope()

testRecursiveDefineScope

public void testRecursiveDefineScope()

testRootEvaluateScope

public void testRootEvaluateScope()

testEvaluateScope

public void testEvaluateScope()

testNestedEvaluateScope

public void testNestedEvaluateScope()

testTurningOffTemplateScope

public void testTurningOffTemplateScope()

testTurningOffEvaluateScope

public void testTurningOffEvaluateScope()

testTurningOffMacroScope

public void testTurningOffMacroScope()

testTurningOffDefineScope

public void testTurningOffDefineScope()

testTurningOffForeachScope

public void testTurningOffForeachScope()

testTemplateReplaced

public void testTemplateReplaced()

testEvaluateReplaced

public void testEvaluateReplaced()

testMacroReplaced

public void testMacroReplaced()

testForeachReplaced

public void testForeachReplaced()

testDefineReplaced

public void testDefineReplaced()

testBodyContentReplaced

public void testBodyContentReplaced()

testInfoDepth

public void testInfoDepth()

testInfoName

public void testInfoName()

testInfoType

public void testInfoType()

testInfoLineAndColumn

public void testInfoLineAndColumn()

testInfoTemplate

public void testInfoTemplate()


Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.