I personally highly prefer the try-fail-catch pattern, because it allows to narrow down which operation throws the exception. The current test would pass if the same exception is thrown one line above. IMHO, the `expected` annotation should only be used, if no other part in the test code could potentially throw the same exception (what is rarely the case).
[ Full content available at: https://github.com/apache/kafka/pull/5709 ] This message was relayed via gitbox.apache.org for [email protected]
