Use singletonList instead of ArrayList.

This emphasizes that we don't mutate it.

RELNOTES=n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=322567775
1 file changed
tree: 09d0f6a93a1f68583c76a51d6819a95e391e1b06
  1. core/
  2. extensions/
  3. refactorings/
  4. util/
  5. .gitignore
  6. .travis.yml
  7. CONTRIBUTING.md
  8. LICENSE
  9. overview.html
  10. pom.xml
  11. 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 in the majority of the tests in Google’s own codebase.

Read more at the main website.