harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r423843 - /incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/CharBufferTest.java
Date Thu, 20 Jul 2006 09:06:00 GMT
Author: pyang
Date: Thu Jul 20 02:05:59 2006
New Revision: 423843

URL: http://svn.apache.org/viewvc?rev=423843&view=rev
Log:
Some minor tidy-up and remove duplicated tests

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/CharBufferTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/CharBufferTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/CharBufferTest.java?rev=423843&r1=423842&r2=423843&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/CharBufferTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/CharBufferTest.java
Thu Jul 20 02:05:59 2006
@@ -20,7 +20,6 @@
 import java.nio.BufferUnderflowException;
 import java.nio.ByteOrder;
 import java.nio.CharBuffer;
-import java.nio.FloatBuffer;
 import java.nio.InvalidMarkException;
 import java.nio.ReadOnlyBufferException;
 
@@ -1034,6 +1033,7 @@
 			source.read(source);
 			fail("should throw IAE.");
 		} catch (IllegalArgumentException e) {
+            //expected
 		}
 	}
 
@@ -1051,25 +1051,5 @@
 
 	public void testIsReadOnly() {
 		assertFalse(buf.isReadOnly());
-	}
-    
-	/**
-	 * @tests java.nio.CharBuffer.wrap(CharSequence,int,int)
-	 */
-	public void testWrapNPE() {
-	    // Regression for HARMONY-264
-	    try {
-	        CharBuffer.wrap((CharSequence)null,1,0);
-	        fail("CharBuffer.wrap((CharSequence)null,1,0) should throw NullPointerException");
-	    } catch (NullPointerException e) {
-	    }
-
-
-	    char[] array = null;
-	    try {
-	        CharBuffer.wrap(array,-1,0);
-	        fail("CharBuffer.wrap((char[])null,-1,0) should throw NullPointerException");
-	    } catch (NullPointerException e) {
-	    }
 	}
 }



Mime
View raw message