harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463642 - /incubator/harmony/enhanced/classlib/trunk/modules/accessibility/src/test/api/java/common/javax/accessibility/AccessibleStateSetTest.java
Date Fri, 13 Oct 2006 10:52:24 GMT
Author: hindessm
Date: Fri Oct 13 03:52:23 2006
New Revision: 463642

URL: http://svn.apache.org/viewvc?view=rev&rev=463642
Log:
Change assertTrue(A==B) to assertEquals to get more helpful failure messages.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/accessibility/src/test/api/java/common/javax/accessibility/AccessibleStateSetTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/accessibility/src/test/api/java/common/javax/accessibility/AccessibleStateSetTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/accessibility/src/test/api/java/common/javax/accessibility/AccessibleStateSetTest.java?view=diff&rev=463642&r1=463641&r2=463642
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/accessibility/src/test/api/java/common/javax/accessibility/AccessibleStateSetTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/accessibility/src/test/api/java/common/javax/accessibility/AccessibleStateSetTest.java
Fri Oct 13 03:52:23 2006
@@ -95,7 +95,7 @@
     public void testClear() throws Exception {
 
         stateSet.clear();
-        assertTrue("Cleared set should be empty", stateSet.states.size() == 0);
+        assertEquals("Cleared set should be empty", 0, stateSet.states.size());
 
         stateSet.states = null;
         stateSet.clear();
@@ -114,7 +114,8 @@
 
     public void testToArray() throws Exception {
         AccessibleState[] statesReturnedArray = stateSet.toArray();
-        assertTrue("Returned array size don't match", statesReturnedArray.length == statesArray.length);
+        assertEquals("Returned array size don't match",
+                     statesArray.length, statesReturnedArray.length);
         for (int i = 0; i < statesReturnedArray.length; i++)
             assertEquals("Returned element mismatch:" + i, statesArray[i], statesReturnedArray[i]);
         stateSet.states = null;



Mime
View raw message