Class FetchSessionHandlerTest
java.lang.Object
org.apache.kafka.clients.FetchSessionHandlerTest
A unit test for FetchSessionHandler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest that calling FetchSessionHandler#Builder#build twice fails.voidvoidvoidtestIdUsageWithAllForgottenPartitions(boolean useTopicIds) voidvoidTest handling an incremental fetch session.voidvoidvoidvoidtestSessionEpochWhenMixedUsageOfTopicIDs(boolean startsWithTopicIds) voidTest the handling of SESSIONLESS responses.voidtestTopicIdReplaced(boolean startsWithTopicIds, boolean endsWithTopicIds) voidvoidvoidvoid
-
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()
-