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
IOExceptionpublic void teardown()
public void testGetBackBytesWePutIn()
public void testChainChunkBiggerThanWholeArray() throws IOException
IOExceptionpublic void testChainChunkBiggerThanSomeArrays() throws IOException
IOExceptionpublic void testLimitOffset() throws IOException
IOExceptionpublic void testWithSpy() throws IOException
IOExceptionprivate 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
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.