harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463626 - in /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree: DefaultTreeModelTest.java DefaultTreeSelectionModelTest.java
Date Fri, 13 Oct 2006 10:10:49 GMT
Author: hindessm
Date: Fri Oct 13 03:10:47 2006
New Revision: 463626

URL: http://svn.apache.org/viewvc?view=rev&rev=463626
Log:
Converting things like:

  assertTrue(blah == [true|false|null]) to assert[True|False|Null]
  assertEquals(blah, [true,false,null]) to assert[True|False|Null]
  assertEquals([true,false,null], blah) to assert[True|False|Null]

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeModelTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeSelectionModelTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeModelTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeModelTest.java?view=diff&rev=463626&r1=463625&r2=463626
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeModelTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeModelTest.java
Fri Oct 13 03:10:47 2006
@@ -886,7 +886,7 @@
         if (isHarmony()) {
             assertEquals(0, model.getPathToRoot(null).length);
         } else {
-            assertEquals(null, model.getPathToRoot(null));
+            assertNull(model.getPathToRoot(null));
         }
 
         assertTrue(Arrays.equals(new TreeNode[] {node1}, model.getPathToRoot(node1)));

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeSelectionModelTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeSelectionModelTest.java?view=diff&rev=463626&r1=463625&r2=463626
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeSelectionModelTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/tree/DefaultTreeSelectionModelTest.java
Fri Oct 13 03:10:47 2006
@@ -1167,7 +1167,7 @@
 
         model.setSelectionPath(null);
         assertEquals(0, model.getSelectionCount());
-        assertEquals(null, treeSelectionListener.event.getNewLeadSelectionPath());
+        assertNull(treeSelectionListener.event.getNewLeadSelectionPath());
         assertEquals(1, treeSelectionListener.event.getPaths().length);
         assertFalse(treeSelectionListener.event.isAddedPath(0));
         treeSelectionListener.reset();
@@ -1279,7 +1279,7 @@
 
         assertNotNull(treeSelectionListener.event);
         assertEquals(path4, treeSelectionListener.event.getOldLeadSelectionPath());
-        assertEquals(null, treeSelectionListener.event.getNewLeadSelectionPath());
+        assertNull(treeSelectionListener.event.getNewLeadSelectionPath());
         assertEquals(3, treeSelectionListener.event.getPaths().length);
         assertTrue(treeSelectionListener.event.isAddedPath(0));
         assertTrue(treeSelectionListener.event.isAddedPath(1));



Mime
View raw message