Author: nbubna
Date: Wed Jan 21 14:28:36 2009
New Revision: 736452
URL: http://svn.apache.org/viewvc?rev=736452&view=rev
Log:
add test specific to VELOCITY-671 to guard against regression
Modified:
velocity/engine/trunk/src/test/org/apache/velocity/test/BlockMacroTestCase.java
Modified:
velocity/engine/trunk/src/test/org/apache/velocity/test/BlockMacroTestCase.java
URL:
http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/BlockMacroTestCase.java?rev=736452&r1=736451&r2=736452&view=diff
==============================================================================
---
velocity/engine/trunk/src/test/org/apache/velocity/test/BlockMacroTestCase.java
(original)
+++
velocity/engine/trunk/src/test/org/apache/velocity/test/BlockMacroTestCase.java
Wed Jan 21 14:28:36 2009
@@ -43,12 +43,6 @@
// DEBUG = true;
}
- public void setUp() throws Exception
- {
- super.setUp();
- //engine.setProperty(RuntimeConstants.VM_PERM_INLINE_LOCAL,
Boolean.TRUE);
- }
-
public void testMultipleBodyContentIncludes() throws Exception
{
String template = "#macro(foo $txt) Yeah, $txt! $bodyContent
$bodyContent#end #...@foo(\"woohoo\")jee#end";
@@ -89,5 +83,13 @@
assertEvalEquals(result, template);
}
-
+
+ public void testVelocity671() throws Exception
+ {
+ engine.setProperty(RuntimeConstants.VM_PERM_INLINE_LOCAL,
Boolean.TRUE);
+ String template = "#macro(echo)$bodyContent#end #...@echo()Yeah!#end";
+ String result = " Yeah!";
+ assertEvalEquals(result, template);
+ }
+
}