Author: doogie
Date: Wed Feb 24 05:42:19 2010
New Revision: 915683
URL:
http://svn.apache.org/viewvc?rev=915683&view=revLog:
Use assertEquals for equality tests.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ComparableRangeTests.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ComparableRangeTests.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ComparableRangeTests.java?rev=915683&r1=915682&r2=915683&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ComparableRangeTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ComparableRangeTests.java Wed Feb 24 05:42:19 2010
@@ -31,7 +31,7 @@
public void testComparableRange() {
ComparableRange<Integer> pointTest = new ComparableRange<Integer>(1, 1);
assertTrue("isPoint", pointTest.isPoint());
- assertTrue("equality", pointTest.equals(new ComparableRange<Integer>(1, 1)));
+ assertEquals("equality", pointTest, new ComparableRange<Integer>(1, 1));
ComparableRange<Integer> range1 = new ComparableRange<Integer>(3, 1);
ComparableRange<Integer> range2 = new ComparableRange<Integer>(4, 6);
assertTrue("after range", range2.after(range1));