Add the two-function transforming factory method for Correspondence.

Also fixes a minor typo in the javadoc of the one-function version.

Also tweaks the tests for the previous factory methods by adding a few missing cases and adding some comments showing what the usages might look like if we had lambdas / method references, in case anyone is looking at the tests for examples.

RELNOTES=You can now create a Correspondence instance that transforms the actual and expected elements using a lambda or method reference and tests for equality, with the Correspondence.transforming factory method.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=234491140
2 files changed
tree: 67e5fac2768514dbeead2b4e45353d269d59e360
  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.