harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qi...@apache.org
Subject svn commit: r660132 - /harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/MappedByteBufferTest.java
Date Mon, 26 May 2008 08:57:59 GMT
Author: qiuxx
Date: Mon May 26 01:57:58 2008
New Revision: 660132

URL: http://svn.apache.org/viewvc?rev=660132&view=rev
Log:
Applying patch from HARMONY-5817 ([classlib][nio] MappedByteBuffer.isLoad() behaviors are
platform dependent). Spec doesn't define the behavior, it may vary in different platform,
remove this testcase.

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

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/MappedByteBufferTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/MappedByteBufferTest.java?rev=660132&r1=660131&r2=660132&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/MappedByteBufferTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/MappedByteBufferTest.java
Mon May 26 01:57:58 2008
@@ -102,25 +102,6 @@
     }
 
     /**
-     * @tests {@link java.nio.MappedByteBuffer#isLoaded()}
-     */
-    public void test_isload() throws IOException {
-        FileInputStream fileInputStream = new FileInputStream(tmpFile);
-        FileChannel fileChannelRead = fileInputStream.getChannel();
-        MappedByteBuffer mmbRead = fileChannelRead.map(MapMode.READ_ONLY, 0,
-                fileChannelRead.size());
-
-        assertFalse(mmbRead.isLoaded());
-
-        RandomAccessFile randomFile = new RandomAccessFile(tmpFile, "rw");
-        FileChannel fileChannelReadWrite = randomFile.getChannel();
-        MappedByteBuffer mmbReadWrite = fileChannelReadWrite.map(
-                FileChannel.MapMode.READ_WRITE, 0, fileChannelReadWrite.size());
-
-        assertFalse(mmbReadWrite.isLoaded());
-    }
-
-    /**
      * @tests {@link java.nio.MappedByteBuffer#load()}
      */
     public void test_load() throws IOException {



Mime
View raw message