Skip to content

Commit

Permalink
COMPRESS-514: test when using default maxpagesize
Browse files Browse the repository at this point in the history
  • Loading branch information
akelday committed May 15, 2020
1 parent 9427621 commit 95f8e3d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ public void testPagedArrayTransfer() throws Exception {
assertArrayEquals(data, output);
}

@Test
public void testNoMaxPageSize() throws Exception {
SeekableInMemoryByteChannel channel = new SeekableInMemoryByteChannel(new byte[50]);
HeaderBuffer headerBuffer = HeaderChannelBuffer.create(channel, 50);
assertTrue(headerBuffer.hasCRC());
}

@Test
public void testGetElementsFromPagedChannel() throws Exception {
byte[] data = {(byte) 255, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8};
Expand Down

0 comments on commit 95f8e3d

Please sign in to comment.