Author: doogie
Date: Tue Feb 23 15:42:47 2010
New Revision: 915391
URL:
http://svn.apache.org/viewvc?rev=915391&view=revLog:
Use assertEquals instead of assertTrue.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/test/FlexibleMapAccessorTests.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/test/FlexibleMapAccessorTests.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/test/FlexibleMapAccessorTests.java?rev=915391&r1=915390&r2=915391&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/test/FlexibleMapAccessorTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/test/FlexibleMapAccessorTests.java Tue Feb 23 15:42:47 2010
@@ -42,10 +42,10 @@
FlexibleMapAccessor<String> fma = FlexibleMapAccessor.getInstance("parameters.var");
fma.put(testMap, "World");
FlexibleStringExpander fse = FlexibleStringExpander.getInstance("Hello ${parameters.var}!");
- assertTrue("UEL auto-vivify Map", compare.equals(fse.expandString(testMap)));
+ assertEquals("UEL auto-vivify Map", compare, fse.expandString(testMap));
fma = FlexibleMapAccessor.getInstance("parameters.someList[+0]");
fma.put(testMap, "World");
fse = FlexibleStringExpander.getInstance("Hello ${parameters.someList[0]}!");
- assertTrue("UEL auto-vivify List " + fse.expandString(testMap), compare.equals(fse.expandString(testMap)));
+ assertEquals("UEL auto-vivify List", compare, fse.expandString(testMap));
}
}