conduktor.io ↗

KIP-777 — Improved testability for Admin client

Discussion AdminTesting

Establishes a consistent convention for `AdminClient` `*Result` class constructors—package-private by default, with static factory methods for test mocking—to make mock-based testing easier without exposing internal implementation details. Previous KIPs proposed either making all constructors public (risking ABI breakage) or keeping them package-private (blocking testability), leaving users unable to write reliable mock Admin tests.

Details

AuthorTom Bentley
StatusDiscussion
JIRAKAFKA-13285
WikiView on Apache Wiki
Created2021-09-24
Last Modified2021-09-24
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.