You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by by...@apache.org on 2009/02/18 01:39:06 UTC
svn commit: r745315 [3/3] - in /velocity/engine/branches/2.0_Exp:
src/java/org/apache/velocity/ src/java/org/apache/velocity/runtime/
src/java/org/apache/velocity/runtime/defaults/
src/java/org/apache/velocity/runtime/directive/ src/java/org/apache/vel...
Modified: velocity/engine/branches/2.0_Exp/src/test/org/apache/velocity/test/StopDirectiveTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/test/org/apache/velocity/test/StopDirectiveTestCase.java?rev=745315&r1=745314&r2=745315&view=diff
==============================================================================
--- velocity/engine/branches/2.0_Exp/src/test/org/apache/velocity/test/StopDirectiveTestCase.java (original)
+++ velocity/engine/branches/2.0_Exp/src/test/org/apache/velocity/test/StopDirectiveTestCase.java Wed Feb 18 00:39:05 2009
@@ -30,6 +30,7 @@
public StopDirectiveTestCase(String name)
{
super(name);
+ DEBUG=true;
}
public void setUp() throws Exception
@@ -37,11 +38,12 @@
super.setUp();
engine.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, "test/stop/");
engine.setProperty(RuntimeConstants.VM_LIBRARY, "vmlib1.vm");
+ engine.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, true);
}
public void testStop()
{
- // Make it works through the evaluate method call
+ // Make it work through the evaluate method call
assertEvalEquals("Text1", "Text1#{stop}Text2");
// Make sure stop works in a template
assertTmplEquals("Text 1", "stop1.vm");
@@ -49,5 +51,7 @@
assertTmplEquals("Text123stuff1", "stop2.vm");
// Make sure stop works when called located in another parsed file
assertTmplEquals("text1blaa1", "stop3.vm");
+
+ assertEvalEquals("123abcfoo", "123#parse(\"parse2.vm\")foo");
}
}
\ No newline at end of file
Added: velocity/engine/branches/2.0_Exp/test/stop/parse2.vm
URL: http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/test/stop/parse2.vm?rev=745315&view=auto
==============================================================================
--- velocity/engine/branches/2.0_Exp/test/stop/parse2.vm (added)
+++ velocity/engine/branches/2.0_Exp/test/stop/parse2.vm Wed Feb 18 00:39:05 2009
@@ -0,0 +1 @@
+abc#stop(parse)xyz