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
| Author | Tom Bentley |
| Status | Discussion |
| JIRA | KAFKA-13285 |
| Wiki | View on Apache Wiki |
| Created | 2021-09-24 |
| Last Modified | 2021-09-24 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.