Author: doogie
Date: Mon Feb 22 15:38:44 2010
New Revision: 912622
URL:
http://svn.apache.org/viewvc?rev=912622&view=revLog:
Add testing on CurrElem.isEmpty.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/test/FlexibleStringExpanderTests.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/test/FlexibleStringExpanderTests.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/test/FlexibleStringExpanderTests.java?rev=912622&r1=912621&r2=912622&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/test/FlexibleStringExpanderTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/test/FlexibleStringExpanderTests.java Mon Feb 22 15:38:44 2010
@@ -276,6 +276,7 @@
fseTest("just bad", "${foobar", testMap, "${foobar", false);
fseTest("constant and bad", "Hello${foobar", testMap, "Hello${foobar", false);
fseTest("good and bad", "Hello ${var}${foobar", testMap, "Hello World${foobar", false);
+ fseTest("plain-currency(USD)", "${amount?currency(${usd})}", testMap, null, localeToTest, "$1,234,567.89", false);
fseTest("currency(USD)", "The total is ${amount?currency(${usd})}.", testMap, null, localeToTest, "The total is $1,234,567.89.", false);
fseTest("currency(USD): null", "The total is ${testMap.missing?currency(${usd})}.", testMap, null, localeToTest, "The total is .", false);
fseTest("currency(USD): missing", "The total is ${noList[0]?currency(${usd})}.", testMap, null, localeToTest, "The total is .", false);