@Test public void setMaxHeaderSizeShouldBeSuccessful() throws Http2Exception { encoder.headerTable().maxHeaderTableSize(10); Http2Headers in = headers(); assertRoundtripSuccessful(in); assertEquals(10, decoder.headerTable().maxHeaderTableSize()); }
private void assertRoundtripSuccessful(Http2Headers in) throws Http2Exception { encoder.encodeHeaders(in, buffer); Http2Headers out = decoder.decodeHeaders(buffer); assertEquals(in, out); }