harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463613 - in /incubator/harmony/enhanced/classlib/trunk/modules: nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
Date Fri, 13 Oct 2006 10:00:04 GMT
Author: hindessm
Date: Fri Oct 13 03:00:02 2006
New Revision: 463613

URL: http://svn.apache.org/viewvc?view=rev&rev=463613
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/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/IllegalCharsetNameExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/UnsupportedCharsetExceptionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java?view=diff&rev=463613&r1=463612&r2=463613
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java
Fri Oct 13 03:00:02 2006
@@ -92,7 +92,7 @@
 
         assertEquals(baseBuf.hasRemaining(), baseBuf.position() < baseBuf.limit());
         baseBuf.position(baseBuf.limit());
-        assertEquals(baseBuf.hasRemaining(), false);
+        assertFalse(baseBuf.hasRemaining());
 
         // restore state
         baseBuf.limit(oldLimit);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java?view=diff&rev=463613&r1=463612&r2=463613
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java
Fri Oct 13 03:00:02 2006
@@ -105,7 +105,7 @@
 
         assertEquals(buf.hasRemaining(), buf.position() < buf.limit());
         buf.position(buf.limit());
-        assertEquals(buf.hasRemaining(), false);
+        assertFalse(buf.hasRemaining());
 
         // restore state
         buf.limit(oldLimit);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/IllegalCharsetNameExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/IllegalCharsetNameExceptionTest.java?view=diff&rev=463613&r1=463612&r2=463613
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/IllegalCharsetNameExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/IllegalCharsetNameExceptionTest.java
Fri Oct 13 03:00:02 2006
@@ -49,7 +49,7 @@
 
 		ex = new IllegalCharsetNameException(null);
 		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), null);
+		assertNull(ex.getCharsetName());
 		assertTrue(ex.getMessage().indexOf("null") != -1);
 
 	}

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/UnsupportedCharsetExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/UnsupportedCharsetExceptionTest.java?view=diff&rev=463613&r1=463612&r2=463613
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/UnsupportedCharsetExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/UnsupportedCharsetExceptionTest.java
Fri Oct 13 03:00:02 2006
@@ -49,7 +49,7 @@
 
 		ex = new UnsupportedCharsetException(null);
 		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), null);
+		assertNull(ex.getCharsetName());
 		assertTrue(ex.getMessage().indexOf("null") != -1);
 	}
 



Mime
View raw message