EmbeddedKafka how to check received messages in unit test
问题 I created a spring boot application that sends messages to a Kafka topic. I am using spring spring-integration-kafka : A KafkaProducerMessageHandler<String,String> is subscribed to a channel ( SubscribableChannel ) and pushes all messages received to one topic. The application works fine. I see messages arriving in Kafka via console consumer (local kafka). I also create an Integrationtest that uses KafkaEmbedded . I am checking the expected messages by subscribing to the channel within the