Class FetchSessionHandlerTest

java.lang.Object
org.apache.kafka.clients.FetchSessionHandlerTest

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

    • FetchSessionHandlerTest

      public FetchSessionHandlerTest()
  • Method Details

    • testFindMissing

      @Test public void testFindMissing()
    • testSessionless

      @Test public void testSessionless()
      Test the handling of SESSIONLESS responses. Pre-KIP-227 brokers always supply this kind of response.
    • testIncrementals

      @Test public void testIncrementals()
      Test handling an incremental fetch session.
    • testReplicationSessionIdIsRespected

      @Test public void testReplicationSessionIdIsRespected()
    • testReplicationSessionIdChangeIsRespected

      @Test public void testReplicationSessionIdChangeIsRespected()
    • testDoubleBuild

      @Test public void testDoubleBuild()
      Test that calling FetchSessionHandler#Builder#build twice fails.
    • testIncrementalPartitionRemoval

      @Test public void testIncrementalPartitionRemoval()
    • testTopicIdUsageGrantedOnIdUpgrade

      @Test public void testTopicIdUsageGrantedOnIdUpgrade()
    • testIdUsageRevokedOnIdDowngrade

      @Test public void testIdUsageRevokedOnIdDowngrade()
    • testTopicIdReplaced

      @ParameterizedTest @MethodSource("idUsageCombinations") public void testTopicIdReplaced(boolean startsWithTopicIds, boolean endsWithTopicIds)
    • testSessionEpochWhenMixedUsageOfTopicIDs

      @ParameterizedTest @ValueSource(booleans={true,false}) public void testSessionEpochWhenMixedUsageOfTopicIDs(boolean startsWithTopicIds)
    • testIdUsageWithAllForgottenPartitions

      @ParameterizedTest @ValueSource(booleans={true,false}) public void testIdUsageWithAllForgottenPartitions(boolean useTopicIds)
    • testOkToAddNewIdAfterTopicRemovedFromSession

      @Test public void testOkToAddNewIdAfterTopicRemovedFromSession()
    • testVerifyFullFetchResponsePartitions

      @Test public void testVerifyFullFetchResponsePartitions()
    • testVerifyFullFetchResponsePartitionsWithTopicIds

      @Test public void testVerifyFullFetchResponsePartitionsWithTopicIds()
    • testTopLevelErrorResetsMetadata

      @Test public void testTopLevelErrorResetsMetadata()