junit-team/junit — pull request #778 by pimterry (2013-12-02 01:55:38+00:00)
Title: Add expectRootCause to expected exception rule, fixes #714

Adds an expectRootCause test, which tests a matcher against the root cause of the thrown exception, rather than just the first-level contained cause matched by expectCause.

I've also updated the expectCause docs & errors to refer to 'immediate cause', to try and differentiate the two cases.