steveloughran commented on PR #6557: URL: https://github.com/apache/hadoop/pull/6557#issuecomment-2050311828
> Junit has assertThrows though. Would that be a bit more Java friendly? one thing intercept does, which I haven't seen the others to, is include the toString() value of anything returned by the callable in the assertion. which lets you add tests that explicitly print their state on failures, rather than just "l-exp invoked didn't fail". Diagnostics information is too important to be lost... -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org