use of io.grpc.internal.WritableBuffer in project grpc-java by grpc.
the class NettyWritableBufferAllocatorTest method testCapacityIsExactAboveMinimum.
@Test
public void testCapacityIsExactAboveMinimum() {
WritableBuffer buffer = allocator().allocate(9000);
assertEquals(0, buffer.readableBytes());
assertEquals(9000, buffer.writableBytes());
}
use of io.grpc.internal.WritableBuffer in project grpc-java by grpc.
the class NettyWritableBufferAllocatorTest method testCapacityHasMinimum.
@Test
public void testCapacityHasMinimum() {
WritableBuffer buffer = allocator().allocate(100);
assertEquals(0, buffer.readableBytes());
assertEquals(4096, buffer.writableBytes());
}
Aggregations