Class NettyHttp2ConnectionTest

java.lang.Object
org.apache.kafka.common.network.netty.NettyClientTestBase
org.apache.kafka.common.network.netty.NettyHttp2ConnectionTest

@Timeout(value=1L, unit=MINUTES) public class NettyHttp2ConnectionTest extends NettyClientTestBase
  • Constructor Details

    • NettyHttp2ConnectionTest

      public NettyHttp2ConnectionTest()
  • Method Details

    • setupClient

      @Timeout(value=30L, unit=SECONDS) @BeforeEach public void setupClient()
    • closeClient

      @AfterEach public void closeClient()
    • testStreamCreation

      @Test public void testStreamCreation() throws Exception
      Throws:
      Exception
    • testStreamCreationFails

      @Test public void testStreamCreationFails()
      Make sure if stream creation fails, we complete the future with error
    • testCloseOnIdleNoActiveStreams

      @Test public void testCloseOnIdleNoActiveStreams() throws InterruptedException
      Test that the connection gets closed immediately if there are no active streams on the connection.
      Throws:
      InterruptedException
    • testCloseOnIdleWithActiveStreams

      @Test public void testCloseOnIdleWithActiveStreams() throws Exception
      Test that the connection on idle only closes connections when all active streams close.
      Throws:
      Exception
    • testGoAwayReceived

      @Test public void testGoAwayReceived() throws Exception
      Test that if server sends a GOAWAY its correctly reflected in the state of clients HTTP/2 connection.
      Throws:
      Exception