Class ShareSessionHandlerTest

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

@Timeout(120L) public class ShareSessionHandlerTest extends Object
A unit test for ShareSessionHandler.
  • Constructor Details

    • ShareSessionHandlerTest

      public ShareSessionHandlerTest()
  • Method Details

    • testShareSession

      @ParameterizedTest @EnumSource(value=org.apache.kafka.common.protocol.Errors.class, names={"INVALID_SHARE_SESSION_EPOCH","SHARE_SESSION_NOT_FOUND","SHARE_SESSION_LIMIT_REACHED"}) public void testShareSession(org.apache.kafka.common.protocol.Errors error)
    • testPartitionRemoval

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testPartitionRemoval(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)
    • testTopicIdReplaced

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testTopicIdReplaced(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)
    • testPartitionForgottenOnAcknowledgeOnly

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testPartitionForgottenOnAcknowledgeOnly(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)
    • testForgottenPartitions

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testForgottenPartitions(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)
    • testAddNewIdAfterTopicRemovedFromSession

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testAddNewIdAfterTopicRemovedFromSession(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)
    • testNextAcknowledgementsClearedOnInvalidRequest

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testNextAcknowledgementsClearedOnInvalidRequest(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)
    • testCanSkipIfRequestEmpty

      @Test public void testCanSkipIfRequestEmpty()
    • testSkipEmptyShareFetchWhenSessionEmpty

      @Test public void testSkipEmptyShareFetchWhenSessionEmpty()
    • testAcknowledgeOnlyPartitionNotInSessionIsForgotten

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testAcknowledgeOnlyPartitionNotInSessionIsForgotten(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)
    • testCloseEmptySessionBuildsFinalEpochShareFetch

      @ParameterizedTest @MethodSource("shareFetchConfigProvider") public void testCloseEmptySessionBuildsFinalEpochShareFetch(org.apache.kafka.clients.consumer.internals.ShareFetchConfig shareFetchConfig)