TopologyTestDriver
A Kafka Streams test utility that runs a topology in memory without a broker.
In more detail
Tests pipe records into input topics, read what the topology writes to output topics and inspect state stores. Wall-clock time only moves when the test advances it, so punctuations and windows are deterministic.
Example
driver.advanceWallClockTime(Duration.ofMinutes(5))Related terms
- Kafka Streams — A Java library, part of Apache Kafka, for building applications that read, transform and write Kafka streams.
- MockProducer — In-memory stand-ins for the Kafka producer and consumer, shipped in kafka-clients for unit tests.
Taught in
- Green Tests, Red Production — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Seventy One Percent — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep