alpakka-kafka icon indicating copy to clipboard operation
alpakka-kafka copied to clipboard

Consider use of upstream kafka-client mocks in testkit and project unit tests

Open seglo opened this issue 5 years ago • 0 comments

Short description

Apache Kafka provides a MockConsumer and MockProducer implementation. We should investigate if we can reuse and wrap these mocks in our own client mocking solution.

Details

We mock the Kafka clients in several tests (ProducerSpec and ConsumerSpec). Investigate if the upstream mocks could be used in place and if it provides any value.

https://kafka.apache.org/23/javadoc/org/apache/kafka/clients/consumer/MockConsumer.html https://kafka.apache.org/23/javadoc/org/apache/kafka/clients/producer/MockProducer.html

seglo avatar Oct 24 '19 14:10 seglo