harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463625 - in /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo: AbstractUndoableEditTest.java CompoundEditTest.java
Date Fri, 13 Oct 2006 10:10:13 GMT
Author: hindessm
Date: Fri Oct 13 03:10:12 2006
New Revision: 463625

URL: http://svn.apache.org/viewvc?view=rev&rev=463625
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/undo/AbstractUndoableEditTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CompoundEditTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java?view=diff&rev=463625&r1=463624&r2=463625
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java
Fri Oct 13 03:10:12 2006
@@ -73,7 +73,7 @@
         obj.die();
 
         if (BasicSwingTestCase.isHarmony()) {
-            assertEquals(false, isAlive(obj));
+            assertFalse(isAlive(obj));
         }
 
         boolean wasException = false;
@@ -98,7 +98,7 @@
         obj.redo();
 
         if (BasicSwingTestCase.isHarmony()) {
-            assertEquals(true, hasBeenDone(obj));
+            assertTrue(hasBeenDone(obj));
         }
 
         if (!obj.canRedo()) {
@@ -116,7 +116,7 @@
         obj.undo();
 
         if (BasicSwingTestCase.isHarmony()) {
-            assertEquals(false, hasBeenDone(obj));
+            assertFalse(hasBeenDone(obj));
         }
 
         if (!obj.canUndo()) {
@@ -135,7 +135,7 @@
             assertEquals(isAlive(obj) && !hasBeenDone(obj), obj.canRedo());
         }
         obj.die();
-        assertEquals(false, obj.canRedo());
+        assertFalse(obj.canRedo());
     }
 
     public void testCanUndo() {
@@ -143,11 +143,11 @@
             assertEquals(isAlive(obj) && hasBeenDone(obj), obj.canUndo());
         }
         obj.die();
-        assertEquals(false, obj.canUndo());
+        assertFalse(obj.canUndo());
     }
 
     public void testIsSignificant() {
-        assertEquals(true, obj.isSignificant());
+        assertTrue(obj.isSignificant());
     }
 
     public void testGetPresentationName() {
@@ -195,11 +195,11 @@
     }
 
     public void testAddEdit() {
-        assertEquals(false, obj.addEdit(null));
+        assertFalse(obj.addEdit(null));
     }
 
     public void testReplaceEdit() {
-        assertEquals(false, obj.replaceEdit(null));
+        assertFalse(obj.replaceEdit(null));
     }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CompoundEditTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CompoundEditTest.java?view=diff&rev=463625&r1=463624&r2=463625
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CompoundEditTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CompoundEditTest.java
Fri Oct 13 03:10:12 2006
@@ -389,7 +389,7 @@
     }
 
     public void testLastEdit() {
-        assertEquals(null, ce.lastEdit());
+        assertNull(ce.lastEdit());
 
         TestUndoableEdit.counter = 0;
         final int n = 10;



Mime
View raw message