harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463621 - in /incubator/harmony/enhanced/classlib/trunk/modules: regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java rmi/src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java
Date Fri, 13 Oct 2006 10:04:44 GMT
Author: hindessm
Date: Fri Oct 13 03:04:43 2006
New Revision: 463621

URL: http://svn.apache.org/viewvc?view=rev&rev=463621
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/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java?view=diff&rev=463621&r1=463620&r2=463621
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
Fri Oct 13 03:04:43 2006
@@ -546,7 +546,7 @@
 		assertEquals("1", mat.group(2));
 		assertEquals("1", mat.group(1));
 		assertEquals("1", mat.group(4));
-		assertEquals(null, mat.group(3));
+		assertNull(mat.group(3));
 
 	}
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java?view=diff&rev=463621&r1=463620&r2=463621
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/MarshalledObjectTest.java
Fri Oct 13 03:04:43 2006
@@ -80,7 +80,7 @@
      *          If some error occurs.
      */
     public void testGet() throws Exception {
-        assertTrue(new MarshalledObject(null).get() == null);
+        assertNull(new MarshalledObject(null).get());
         String str = new String("TEST");
         assertEquals(str, new MarshalledObject(str).get());
         Hashtable ht = new Hashtable();



Mime
View raw message