harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463634 - in /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border: CompoundBorderTest.java LineBorderTest.java
Date Fri, 13 Oct 2006 10:34:56 GMT
Author: hindessm
Date: Fri Oct 13 03:34:55 2006
New Revision: 463634

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/CompoundBorderTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/CompoundBorderTest.java?view=diff&rev=463634&r1=463633&r2=463634
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/CompoundBorderTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/CompoundBorderTest.java
Fri Oct 13 03:34:55 2006
@@ -186,9 +186,9 @@
 
         assertEquals("Borders coinside", border1, border4.getOutsideBorder());
         assertEquals("Borders coinside", border2, border5.getOutsideBorder());
-        assertEquals("Borders coinside", null, border6.getOutsideBorder());
+        assertNull("Borders coinside", border6.getOutsideBorder());
         assertEquals("Borders coinside", border2, border7.getOutsideBorder());
-        assertEquals("Borders coinside", null, border8.getOutsideBorder());
+        assertNull("Borders coinside", border8.getOutsideBorder());
     }
 
     public void testGetInsideBorder() {
@@ -204,8 +204,8 @@
 
         assertEquals("Borders coinside", border2, border4.getInsideBorder());
         assertEquals("Borders coinside", border3, border5.getInsideBorder());
-        assertEquals("Borders coinside", null, border6.getInsideBorder());
-        assertEquals("Borders coinside", null, border7.getInsideBorder());
+        assertNull("Borders coinside", border6.getInsideBorder());
+        assertNull("Borders coinside", border7.getInsideBorder());
         assertEquals("Borders coinside", border3, border8.getInsideBorder());
     }
 
@@ -226,11 +226,9 @@
 
         resurrectedBorder = (CompoundBorder)serializeObject(border4);
         assertNotNull(resurrectedBorder);
-        assertEquals("Deserialized values coinsides",
-                resurrectedBorder.getOutsideBorder(),
-                null);
-        assertEquals("Deserialized values coinsides",
-                resurrectedBorder.getInsideBorder(),
-                null);
+        assertNull("Deserialized values coinsides",
+                resurrectedBorder.getOutsideBorder());
+        assertNull("Deserialized values coinsides",
+                resurrectedBorder.getInsideBorder());
     }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/LineBorderTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/LineBorderTest.java?view=diff&rev=463634&r1=463633&r2=463634
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/LineBorderTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/border/LineBorderTest.java
Fri Oct 13 03:34:55 2006
@@ -246,14 +246,14 @@
     public void testCreateGrayLineBorder() {
         LineBorder border = (LineBorder)LineBorder.createGrayLineBorder();
         assertEquals("Thickness coinsides", 1, border.getThickness());
-        assertEquals("RoundedCorners coinsides", false, border.getRoundedCorners());
+        assertFalse("RoundedCorners coinsides", border.getRoundedCorners());
         assertEquals("Colors coinsides", Color.gray, border.getLineColor());
     }
 
     public void testCreateBlackLineBorder() {
         LineBorder border = (LineBorder)LineBorder.createBlackLineBorder();
         assertEquals("Thickness coinsides", 1, border.getThickness());
-        assertEquals("RoundedCorners coinsides", false, border.getRoundedCorners());
+        assertFalse("RoundedCorners coinsides", border.getRoundedCorners());
         assertEquals("Colors coinsides", Color.black, border.getLineColor());
     }
 



Mime
View raw message