siddiqueirshad opened a new pull request, #24022:
URL: https://github.com/apache/kafka/pull/24022
### Description
Replace remaining `try { ... fail(...); } catch (...)` blocks with JUnit 5
`assertThrows` in `clients` unit tests:
- `KafkaConsumerTest#testConstructorInvalidMetricReporters`
- `ConsumerCoordinatorTest#testRefreshOffsetsGroupNotAuthorized`
- `FetcherTest#testFetchRequestInternalError`
- `FetcherTest#testUnauthorizedTopic`
- `FetchRequestManagerTest#testFetchRequestInternalError`
- `FetchRequestManagerTest#testUnauthorizedTopic`
- `ProducerBatchTest#testBatchCannotAbortTwice`
- `ProducerBatchTest#testBatchCannotCompleteTwice`
- `TransactionManagerTest#verifyProducerFenced`
All underlying assertions on the thrown exceptions and causes are preserved.
--
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]