| commit | 8325cf0eb8387c0dfcce53080b167d607de4e6ef | [log] [tgz] |
|---|---|---|
| author | cpovirk <cpovirk@google.com> | Mon Mar 05 15:28:37 2018 -0800 |
| committer | Ron Shapiro <shapiro.rd@gmail.com> | Mon Mar 05 21:28:02 2018 -0500 |
| tree | 104898703edd6d6a037b05eb469ac4b1a46d9ddf | |
| parent | 3566006afd557a3c4b2ad9bb9601c4fd66096e9a [diff] |
Tweak the message you get when calling hasCauseThat() too many times. Now we display the getCause() call that would have produced a NullPointerException, not the prior one. It also means that the number of times "getCause()" appears in the message matches the number of times that "hasCauseThat()" appears in the source -- at least unless you have _even more_ levels of invalid hasCauseThat() calls :) RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187934266
Truth makes your test assertions and failure messages more readable. Similar to AssertJ, it natively supports many JDK and Guava types, and it is extensible to others.
Truth is owned and maintained by the Guava team. It is used from the majority of the tests in Google’s own codebase.
Read more at the main website.