@Test public void dataNoPayloadPadding() { ByteBuffer buffer = ByteBuffer.wrap(TestMessages.DATA_NO_PAYLOAD_PADDING_BUFFER); Http2DataFrame frame = (Http2DataFrame) decoder.decode(buffer, context); assertNotNull(frame); assertEquals(3, frame.getLength()); assertEquals(0, frame.getType()); assertEquals(0x08, frame.getFlags()); assertEquals(50, frame.getStreamID()); assertEquals(0,frame.getData().length); assertEquals(2, frame.getPadding().length); assertArrayEquals(new byte[] {0x0E, 0x28}, frame.getPadding()); }
@Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); } }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  @Override Http2Connection createDecoderState(); @Override Http2Frame decode(ByteBuffer input, Http2Connection context); @Override void finishDecode(Http2Connection context); }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  @Override Http2Connection createDecoderState(); @Override Http2Frame decode(ByteBuffer input, Http2Connection context); @Override void finishDecode(Http2Connection context);  }