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
2 files changed
tree: 104898703edd6d6a037b05eb469ac4b1a46d9ddf
  1. core/
  2. extensions/
  3. util/
  4. .gitignore
  5. .travis.yml
  6. CONTRIBUTING.md
  7. LICENSE
  8. pom.xml
  9. README.md
README.md

Main Site Build Status Maven Release Stackoverflow

What is Truth?

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.