commit | bd86b71b3ea9444b02f877e7fec6607e0019a3bf | [log] [tgz] |
---|---|---|
author | peteg <peteg@google.com> | Fri Jan 04 07:23:40 2019 -0800 |
committer | Ron Shapiro <shapiro.rd@gmail.com> | Tue Jan 08 14:12:22 2019 -0500 |
tree | 3eeecfd1103b49337153b3725ee70d0d28ea07f3 | |
parent | 051a3565109053bebd428c8a55b4200472ac3b36 [diff] |
Suppress an ErrorProne warning in Truth. The UndefinedEquals warning[*] triggers for MultimapSubject.ieEqualTo, because it calls Objects.equal on the multimaps. Whatever the issues with the contract of Multimap.equals, MultimapSubject.isEqualTo is required to follow that contract, so suppressing the warning seems like the right thing to do. [*] https://github.com/google/error-prone/blob/master/docs/bugpattern/UndefinedEquals.md RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=227852973
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.