Class NetworkClientDelegateTest

java.lang.Object
org.apache.kafka.clients.consumer.internals.NetworkClientDelegateTest

public class NetworkClientDelegateTest extends Object
  • Constructor Details

    • NetworkClientDelegateTest

      public NetworkClientDelegateTest()
  • Method Details

    • setup

      @BeforeEach public void setup()
    • testSuccessfulResponse

      @Test public void testSuccessfulResponse() throws Exception
      Throws:
      Exception
    • testTimeoutBeforeSend

      @Test public void testTimeoutBeforeSend() throws Exception
      Throws:
      Exception
    • testTimeoutAfterSend

      @Test public void testTimeoutAfterSend() throws Exception
      Throws:
      Exception
    • testEnsureCorrectCompletionTimeOnFailure

      @Test public void testEnsureCorrectCompletionTimeOnFailure()
    • testEnsureCorrectCompletionTimeOnComplete

      @Test public void testEnsureCorrectCompletionTimeOnComplete()
    • testEnsureTimerSetOnAdd

      @Test public void testEnsureTimerSetOnAdd()
    • testHasAnyPendingRequests

      @Test public void testHasAnyPendingRequests() throws Exception
      Throws:
      Exception
    • testPropagateMetadataError

      @Test public void testPropagateMetadataError()
    • testPropagateMetadataErrorWithErrorEvent

      @Test public void testPropagateMetadataErrorWithErrorEvent()
    • testBootstrapResolutionExceptionPropagatedViaErrorEventOnce

      @Test public void testBootstrapResolutionExceptionPropagatedViaErrorEventOnce() throws Exception
      Throws:
      Exception
    • testRecordUnsentRequestsQueueTime

      @ParameterizedTest @MethodSource("org.apache.kafka.clients.consumer.internals.metrics.AsyncConsumerMetricsTest#groupNameProvider") public void testRecordUnsentRequestsQueueTime(String groupName) throws Exception
      Throws:
      Exception
    • testPollWithOnClose

      @Test public void testPollWithOnClose() throws Exception
      Throws:
      Exception
    • testCheckDisconnectsWithOnClose

      @Test public void testCheckDisconnectsWithOnClose() throws Exception
      Throws:
      Exception
    • newNetworkClientDelegate

      public org.apache.kafka.clients.consumer.internals.NetworkClientDelegate newNetworkClientDelegate(boolean notifyMetadataErrorsViaErrorQueue)
    • newNetworkClientDelegate

      public org.apache.kafka.clients.consumer.internals.NetworkClientDelegate newNetworkClientDelegate(boolean notifyMetadataErrorsViaErrorQueue, org.apache.kafka.clients.consumer.internals.metrics.AsyncConsumerMetrics asyncConsumerMetrics)
    • newUnsentFindCoordinatorRequest

      public org.apache.kafka.clients.consumer.internals.NetworkClientDelegate.UnsentRequest newUnsentFindCoordinatorRequest()
    • prepareFindCoordinatorResponse

      public void prepareFindCoordinatorResponse(org.apache.kafka.common.protocol.Errors error)