public class TestBufferChain extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[][] |
HELLO_WORLD_CHUNKS |
private File |
tmpFile |
Constructor and Description |
---|
TestBufferChain() |
Modifier and Type | Method and Description |
---|---|
private void |
assertNoRemaining(ByteBuffer[] bufs) |
void |
setup() |
private ByteBuffer |
stringBuf(String string,
int position,
int length) |
void |
teardown() |
void |
testChainChunkBiggerThanSomeArrays() |
void |
testChainChunkBiggerThanWholeArray() |
void |
testGetBackBytesWePutIn() |
void |
testLimitOffset() |
void |
testWithSpy() |
private ByteBuffer[] |
wrapArrays(byte[][] arrays) |
private void |
writeAndVerify(org.apache.hadoop.hbase.ipc.BufferChain chain,
String string,
int chunkSize) |
public static final HBaseClassTestRule CLASS_RULE
private static final byte[][] HELLO_WORLD_CHUNKS
public TestBufferChain()
public void setup() throws IOException
IOException
public void teardown()
public void testGetBackBytesWePutIn()
public void testChainChunkBiggerThanWholeArray() throws IOException
IOException
public void testChainChunkBiggerThanSomeArrays() throws IOException
IOException
public void testLimitOffset() throws IOException
IOException
public void testWithSpy() throws IOException
IOException
private ByteBuffer stringBuf(String string, int position, int length)
private void assertNoRemaining(ByteBuffer[] bufs)
private ByteBuffer[] wrapArrays(byte[][] arrays)
private void writeAndVerify(org.apache.hadoop.hbase.ipc.BufferChain chain, String string, int chunkSize) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.