You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2010/02/04 19:49:40 UTC
svn commit: r906605 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/test/BaseUnitTests.java
Author: adrianc
Date: Thu Feb 4 18:49:40 2010
New Revision: 906605
URL: http://svn.apache.org/viewvc?rev=906605&view=rev
Log:
Added expression escaping to the FlexibleStringExpander unit tests.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/test/BaseUnitTests.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/test/BaseUnitTests.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/test/BaseUnitTests.java?rev=906605&r1=906604&r2=906605&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/test/BaseUnitTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/test/BaseUnitTests.java Thu Feb 4 18:49:40 2010
@@ -136,6 +136,8 @@
testMap.put("testList", testList);
fse = FlexibleStringExpander.getInstance("Hello ${testList[0]}!");
assertTrue("UEL integration: List", compare.equals(fse.expandString(testMap)));
+ fse = FlexibleStringExpander.getInstance("This is an \\${escaped} expression");
+ assertTrue("Escaped expression", "This is an ${escaped} expression".equals(fse.expandString(testMap)));
}
// These tests rely upon FlexibleStringExpander, so they