Class NettyClientInitializerTest

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

public class NettyClientInitializerTest extends NettyClientTestBase
Test class for HTTP/2 handler initializer sets up the handlers as expected.
  • Constructor Details

    • NettyClientInitializerTest

      public NettyClientInitializerTest()
  • Method Details

    • testChannelHasAppropriateHandlers

      @Test public void testChannelHasAppropriateHandlers() throws Exception
      Test if the channel handler for the HTTP/2 connection is set up correctly. We will check for presence of: - SslHandler - ApplicationProtocolNegotiationHandler - Http2FrameCodec - Http2MultiplexHandler
      Throws:
      Exception
    • testChannelSkipsAlpnHandlerIfPlainText

      @Test public void testChannelSkipsAlpnHandlerIfPlainText() throws Exception
      Throws:
      Exception