@Test public void pushPromiseNoPadding() { ByteBuffer buffer = ByteBuffer.wrap(TestMessages.PUSH_PROMISE_NO_PADDING_BUFFER); Http2PushPromiseFrame frame = (Http2PushPromiseFrame) decoder.decode(buffer, context); assertNotNull(frame); assertEquals(5, frame.getLength()); assertEquals(5, frame.getType()); assertEquals(0, frame.getFlags()); assertEquals(1, frame.getStreamID()); assertEquals(256, frame.getPromisedStreamID()); assertEquals(1, frame.getHeaderBlockFragment().length); assertEquals(0x0082, frame.getHeaderBlockFragment()[0] & 0x00FF); }
@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);  }