harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r587989 - in /harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels: DatagramChannelTest.java FileChannelTest.java
Date Wed, 24 Oct 2007 20:00:09 GMT
Author: hindessm
Date: Wed Oct 24 13:00:08 2007
New Revision: 587989

URL: http://svn.apache.org/viewvc?rev=587989&view=rev
Log:
Spelling fixes.

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

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java?rev=587989&r1=587988&r2=587989&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
Wed Oct 24 13:00:08 2007
@@ -2403,29 +2403,29 @@
     
     public void test_write_LBuffer_positioned() throws Exception {
         // Regression test for Harmony-683
-        int postion = 16;
+        int position = 16;
         DatagramChannel dc = DatagramChannel.open();
         byte[] sourceArray = new byte[CAPACITY_NORMAL];        
         dc.connect(localAddr1);
         // write
         ByteBuffer sourceBuf = ByteBuffer.wrap(sourceArray);
-        sourceBuf.position(postion);
-        assertEquals(CAPACITY_NORMAL - postion, dc.write(sourceBuf));
+        sourceBuf.position(position);
+        assertEquals(CAPACITY_NORMAL - position, dc.write(sourceBuf));
     }
 
-    public void test_send_LBuffer_LSocketAddress_PositonNotZero()
+    public void test_send_LBuffer_LSocketAddress_PositionNotZero()
             throws Exception {
         // regression test for Harmony-701
         int CAPACITY_NORMAL = 256;
-        int postion = 16;
+        int position = 16;
         DatagramChannel dc = DatagramChannel.open();
         byte[] sourceArray = new byte[CAPACITY_NORMAL];
         // send ByteBuffer whose position is not zero
         ByteBuffer sourceBuf = ByteBuffer.wrap(sourceArray);
-        sourceBuf.position(postion);
+        sourceBuf.position(position);
         int ret = dc.send(sourceBuf, localAddr1);
         // assert send (256 - 16) bytes  
-        assertEquals(CAPACITY_NORMAL - postion, ret);
+        assertEquals(CAPACITY_NORMAL - position, ret);
         // assert the position of ByteBuffer has been set
         assertEquals(CAPACITY_NORMAL, sourceBuf.position());
     }

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java?rev=587989&r1=587988&r2=587989&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
Wed Oct 24 13:00:08 2007
@@ -1331,7 +1331,7 @@
     /**
      * @tests java.nio.channels.FileChannel#read(ByteBuffer,long)
      */
-    public void test_readLByteBufferJ_Postion_BeyondFileLimit()
+    public void test_readLByteBufferJ_Position_BeyondFileLimit()
             throws Exception {
 
         writeDataToFile(fileOfReadOnlyFileChannel);
@@ -1346,7 +1346,7 @@
     /**
      * @tests java.nio.channels.FileChannel#read(ByteBuffer,long)
      */
-    public void test_readLByteBufferJ_Postion_As_Long() throws Exception {
+    public void test_readLByteBufferJ_Position_As_Long() throws Exception {
         ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
         try {
             readOnlyFileChannel.read(readBuffer, Long.MAX_VALUE);



Mime
View raw message