// Test for https://github.com/netty/netty/issues/1060
 @Test
 public void testReadWithEmptyCompositeBuffer() {
   ByteBuf buf = freeLater(compositeBuffer());
   int n = 65;
   for (int i = 0; i < n; i++) {
     buf.writeByte(1);
     assertEquals(1, buf.readByte());
   }
 }
Пример #2
0
 @Override
 public ByteBuf writeByte(int value) {
   buf.writeByte(value);
   return this;
 }