arnabnandy7 opened a new pull request, #23307:
URL: https://github.com/apache/kafka/pull/23307
## Description
Remove Hamcrest usage from `ApiUtilsTest` and `ClientMetricsTest` as part of
KAFKA-20953.
The assertions now use their JUnit 5 equivalents:
- `assertThrows` and `assertTrue` for exception and message validation.
- `assertEquals` for sensor comparison.
This is a test-only migration and does not change production behavior.
## Testing
```bash
./gradlew :streams:test \
--tests org.apache.kafka.streams.internals.ApiUtilsTest \
--tests org.apache.kafka.streams.internals.metrics.ClientMetricsTest
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]