You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by je...@apache.org on 2010/09/13 22:58:14 UTC
svn commit: r996687 -
/harmony/enhanced/java/trunk/classlib/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ByteBufferTest.java
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;
}