summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/CodecHandlerTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/CodecHandlerTest.java b/test/src/java/com/healthmarketscience/jackcess/CodecHandlerTest.java
index 119a6e3..c525efa 100644
--- a/test/src/java/com/healthmarketscience/jackcess/CodecHandlerTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/CodecHandlerTest.java
@@ -235,6 +235,7 @@ public class CodecHandlerTest extends TestCase
throws IOException
{
ByteBuffer bb = _bufH.getPageBuffer(_channel);
+ bb.clear();
simpleEncode(page.array(), bb.array(), pageNumber, pageOffset,
page.limit());
return bb;
@@ -268,6 +269,7 @@ public class CodecHandlerTest extends TestCase
assertEquals(_channel.getFormat().PAGE_SIZE, page.limit());
ByteBuffer bb = _bufH.getPageBuffer(_channel);
+ bb.clear();
fullEncode(page.array(), bb.array(), pageNumber);
return bb;
}