Class MockConsumerTest

java.lang.Object
org.apache.kafka.clients.consumer.MockConsumerTest

public class MockConsumerTest extends Object
  • Constructor Details

    • MockConsumerTest

      public MockConsumerTest()
  • Method Details

    • testSimpleMock

      @Test public void testSimpleMock()
    • testConsumerRecordsIsEmptyWhenReturningNoRecords

      @Test public void testConsumerRecordsIsEmptyWhenReturningNoRecords()
    • shouldNotClearRecordsForPausedPartitions

      @Test public void shouldNotClearRecordsForPausedPartitions()
    • endOffsetsShouldBeIdempotent

      @Test public void endOffsetsShouldBeIdempotent()
    • testDurationBasedOffsetReset

      @Test public void testDurationBasedOffsetReset()
    • testRebalanceListener

      @Test public void testRebalanceListener()
    • testRe2JPatternSubscription

      @Test public void testRe2JPatternSubscription()
    • shouldReturnMaxPollRecords

      @Test public void shouldReturnMaxPollRecords()
    • testLosePartitionsCallsOnPartitionsLost

      @Test public void testLosePartitionsCallsOnPartitionsLost()
    • testLosePartitionsRemovesFromAssignment

      @Test public void testLosePartitionsRemovesFromAssignment()
    • testLosePartitionsThrowsIfNotAssigned

      @Test public void testLosePartitionsThrowsIfNotAssigned()
    • testLosePartitionsClearsOnlyLostRecords

      @Test public void testLosePartitionsClearsOnlyLostRecords()
    • testLosePartitionsThenRebalance

      @Test public void testLosePartitionsThenRebalance()