DefaultHttp2HeaderTableListSize { public void maxHeaderListSize(int max) throws Http2Exception { if (max < 0) { maxHeaderListSize = Integer.MAX_VALUE; } else { maxHeaderListSize = max; } }  void maxHeaderListSize(int max); int maxHeaderListSize();  }
@Test public void defaultMaxHeaderListSizeShouldSucceed() { assertEquals(Integer.MAX_VALUE, (long) headerTable.maxHeaderListSize()); }
@Test public void standardMaxHeaderListSizeShouldSucceed() throws Http2Exception { headerTable.maxHeaderListSize(123); assertEquals(123L, (long) headerTable.maxHeaderListSize()); }
@Test public void boundaryMaxHeaderListSizeShouldSucceed() throws Http2Exception { headerTable.maxHeaderListSize(Integer.MAX_VALUE); assertEquals(Integer.MAX_VALUE, (long) headerTable.maxHeaderListSize()); final long settingsValueUpperBound = (1L << 32) - 1L; headerTable.maxHeaderListSize((int) settingsValueUpperBound); assertEquals(Integer.MAX_VALUE, (long) headerTable.maxHeaderListSize()); }