Class SslSelectorTest

java.lang.Object
org.apache.kafka.common.network.SelectorTest
org.apache.kafka.common.network.SslSelectorTest
Direct Known Subclasses:
Tls12SelectorTest, Tls13SelectorTest

public abstract class SslSelectorTest extends SelectorTest
A set of tests for the selector. These use a test harness that runs a simple socket server that echos back responses.
  • Constructor Details

    • SslSelectorTest

      public SslSelectorTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp() throws Exception
      Overrides:
      setUp in class SelectorTest
      Throws:
      Exception
    • tearDown

      @AfterEach public void tearDown() throws Exception
      Overrides:
      tearDown in class SelectorTest
      Throws:
      Exception
    • testConnectionWithCustomKeyManager

      @Test public void testConnectionWithCustomKeyManager() throws Exception
      Throws:
      Exception
    • testDisconnectWithIntermediateBufferedBytes

      @Test public void testDisconnectWithIntermediateBufferedBytes() throws Exception
      Throws:
      Exception
    • testBytesBufferedChannelWithNoIncomingBytes

      @Test public void testBytesBufferedChannelWithNoIncomingBytes() throws Exception
      Throws:
      Exception
    • testBytesBufferedChannelAfterMute

      @Test public void testBytesBufferedChannelAfterMute() throws Exception
      Throws:
      Exception
    • testMuteOnOOM

      @Test public void testMuteOnOOM() throws Exception
      Overrides:
      testMuteOnOOM in class SelectorTest
      Throws:
      Exception
    • testSSLMetricsCreation

      @Test public void testSSLMetricsCreation() throws Exception
      Testing only the existence of these SSL metrics in the metrics registry and that the defaults are set to NaN
      Throws:
      Exception
    • testSSLHandshakeFailureMetric

      @Test public void testSSLHandshakeFailureMetric() throws Exception
      Injects SSL handshake failures and tests for metric to reflect the failure
      Throws:
      Exception
    • testSSLHandshakeTimeMetric

      @Test public void testSSLHandshakeTimeMetric() throws Exception
      Establishes SSL connections and verifies recorded handshake time is accurate
      Throws:
      Exception
    • testSSLHandshakeTimeMetricReconnect

      @Test public void testSSLHandshakeTimeMetricReconnect() throws Exception
      Reconnects SSL connections and verifies recorded handshake time is accurate
      Throws:
      Exception