conduktor.io ↗

KIP-448 — Add State Stores Unit Test Support to Kafka Streams Test Utils

Discussion StreamsTesting

KIP-448 adds `MockStoreFactory` and mock `KeyValueStoreBuilder`, `WindowStoreBuilder`, and `SessionStoreBuilder` implementations to the `kafka-streams-test-utils` module so developers can build state stores backed by simple in-memory maps for unit testing. Writing unit tests for DSL operators previously required hand-rolling complex EasyMock-based store builder mocks, making test code verbose and fragile.

Details

AuthorYishun Guan
StatusDiscussion
JIRAKAFKA-6460
WikiView on Apache Wiki
Created2019-04-01
Last Modified2019-10-14
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.