Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14246 Update threading model for Consumer
  3. KAFKA-15913

Migrate AsyncKafkaConsumerTest away from ConsumerTestBuilder

    XMLWordPrintableJSON

Details

    Description

      ConsumerTestBuilder is meant to be an unit testing utility; however, we seem to use Mockito#spy quite liberally.  This is not the right testing strategy because we basically turn unit testing into integration testing.

       

      While the current unit tests run fine, we should probably make the mocking using Mockito#mock by default and test each dependency independently.

       

      The ask here is

      1. Make mock(class) by default
      2. Provide more flexible interface for the testBuilder to allow user to configure spy or mock.  Or, let user pass in their own mock.

      Attachments

        Issue Links

          Activity

            People

              lucasbru Lucas Brutschy
              pnee Philip Nee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: