Class ShareFetchCollectorTest
java.lang.Object
org.apache.kafka.clients.consumer.internals.ShareFetchCollectorTest
This tests the
ShareFetchCollector functionality.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidtestErrorInInitialize(RuntimeException expectedException) voidtestErrorInInitializeDoesNotLoseRecordsFromEarlierPartitions(RuntimeException expectedException) voidvoidvoidtestFetchWithOtherErrors(org.apache.kafka.common.protocol.Errors error) voidvoidvoidvoidvoidvoid
-
Constructor Details
-
ShareFetchCollectorTest
public ShareFetchCollectorTest()
-
-
Method Details
-
testFetchNormal
@Test public void testFetchNormal() -
testWithRenew
@Test public void testWithRenew() -
testSecondFetchForSamePartitionMergesWithoutLeaking
@Test public void testSecondFetchForSamePartitionMergesWithoutLeaking() -
testEmptyFetchFollowedByDataFetchForSamePartitionDoesNotLeak
@Test public void testEmptyFetchFollowedByDataFetchForSamePartitionDoesNotLeak() -
testRepeatedFetchesForSamePartitionDoesNotAccumulateRetainedFetches
@Test public void testRepeatedFetchesForSamePartitionDoesNotAccumulateRetainedFetches() -
testErrorInInitializeDoesNotLoseRecordsFromEarlierPartitions
@ParameterizedTest @MethodSource("testErrorInInitializeSource") public void testErrorInInitializeDoesNotLoseRecordsFromEarlierPartitions(RuntimeException expectedException) -
testErrorInInitialize
@ParameterizedTest @MethodSource("testErrorInInitializeSource") public void testErrorInInitialize(RuntimeException expectedException) -
testFetchWithTopicAuthorizationFailed
@Test public void testFetchWithTopicAuthorizationFailed() -
testFetchWithUnknownLeaderEpoch
@Test public void testFetchWithUnknownLeaderEpoch() -
testFetchWithUnknownServerError
@Test public void testFetchWithUnknownServerError() -
testFetchWithCorruptMessage
@Test public void testFetchWithCorruptMessage() -
testFetchWithOtherErrors
@ParameterizedTest @MethodSource("testFetchWithOtherErrorsSource") public void testFetchWithOtherErrors(org.apache.kafka.common.protocol.Errors error)
-