Copy `Truth8.assertThat` overloads for `Optional` and `Stream` to the main `Truth` class.

(and prepare AutoValue tests for the new overloads, since the Eclipse compiler considers the (temporary!) signatures of `assertThat(Optional)` to be ambiguous)

We'll post some migration suggestions as part of the release notes.

This is the biggest part of https://github.com/google/truth/issues/746.

RELNOTES=Added `assertThat` overloads for `Optional` and `Stream` to the main `Truth` class.
PiperOrigin-RevId: 598664192
2 files changed
tree: 36748b1ce7aaff587ffe1b33acd6c1237713c68c
  1. .github/
  2. core/
  3. extensions/
  4. refactorings/
  5. util/
  6. .gitignore
  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.