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 OkHttpWritableBufferAllocatorTest method testCapacity.
@Test
public void testCapacity() {
WritableBuffer buffer = allocator().allocate(4096);
assertEquals(0, buffer.readableBytes());
assertEquals(4096, buffer.writableBytes());
}
use of io.grpc.internal.WritableBuffer in project grpc-java by grpc.
the class OkHttpWritableBufferAllocatorTest method testIsExactBelowMaxCapacity.
@Test
public void testIsExactBelowMaxCapacity() {
WritableBuffer buffer = allocator().allocate(4097);
assertEquals(0, buffer.readableBytes());
assertEquals(4097, buffer.writableBytes());
}
Aggregations