0

We are using spring boot application for Kafka.

We want to do unit testing & integration testing for Kafka producer(kafkatemplate) & consumer (EventListner) application.

We explored couple of library for Kafka testing. #1 Test container/ Kafka container - no access to docker images so we skipped this

#2 MockProducer & MockConsumer not worked with kafkatemplate & Kafkalietner. -- not found good working example for reference. Worked with core KafkaProducer & Kafka consumer interface.

#3 spring-kafka-test - EmbededKafka working as expected:)

#4 Kafka for junit

Anyone used Kafka for junit for Kafka testing?

What are the advantages of Kafka for junit over spring-kafka-test library ?

When to use Kafka for junit library vs spring-kafka-test ?

Advantages & Disadvantage of Kafka for junit ?

Thanks for advance.

StackOverFlow
  • 4,486
  • 12
  • 52
  • 87

0 Answers0