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
| Author | Yishun Guan |
| Status | Discussion |
| JIRA | KAFKA-6460 |
| Wiki | View on Apache Wiki |
| Created | 2019-04-01 |
| Last Modified | 2019-10-14 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.