I have an application code that produce events to a Kafka Topic. So now I needed to write Integration tests for it. After searching on internet, I got confused with definition of Integration test that whether should I use embedded Kafka server provided by spring-kafka-test
library or shall I test my code with actual Kafka cluster that I am going to use?
What would be the integration test here? Somebody please help clear my confusion.
My Test would be: First produce a record to a topic and then consume it whether it actually produced.