harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessewil...@apache.org
Subject svn commit: r996687 - /harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ByteBufferTest.java
Date Mon, 13 Sep 2010 20:58:14 GMT
Author: jessewilson
Date: Mon Sep 13 20:58:14 2010
New Revision: 996687

URL: http://svn.apache.org/viewvc?rev=996687&view=rev
Log:
Populate test byte buffers with garbage data before using them for testing.

This change makes it more likely for the test to catch broken implementations. We had a bug
in one of our buffers that wasn't being caught by tests. Adding this ensures it is.

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

Modified: harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ByteBufferTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ByteBufferTest.java?rev=996687&r1=996686&r2=996687&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ByteBufferTest.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ByteBufferTest.java
Mon Sep 13 20:58:14 2010
@@ -43,6 +43,7 @@ public class ByteBufferTest extends Abst
 
     protected void setUp() throws Exception {
         buf = ByteBuffer.allocate(10);
+        loadTestData1(buf);
         baseBuf = buf;
     }
 



Mime
View raw message