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 |
testGetBackBytesWePutIn() |
void |
testLimitOffset() |
private ByteBuffer[] |
wrapArrays(byte[][] arrays) |
private void |
writeAndVerify(org.apache.hadoop.hbase.ipc.BufferChain chain,
String string) |
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 testLimitOffset() 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) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.