Make "value of" lines work with `StreamSubject`.

...by migrating off the deprecated no-arg `check()` overload.

Usages of that method [cause problems for "value of" lines](https://github.com/google/truth/blob/37fd8bea90c0ab4528c4c922c88fa176eb45f65b/core/src/main/java/com/google/common/truth/FailureMetadata.java#L230-L232).

Also, fill in a `typeDescriptionOverride` value for `MultisetSubject`. This is largely a no-op, but it helps under GWT/J2CL (where [we can't infer the type name](https://github.com/google/truth/blob/37fd8bea90c0ab4528c4c922c88fa176eb45f65b/core/src/main/java/com/google/common/truth/super/com/google/common/truth/Platform.java#L72)).

I left `IterableSubject` itself without a `typeDescriptionOverride`, since it has subclasses outside the package, some of which may prefer the more specific names (which are normally automatically derived from the `Subject` class's name—e.g., `AttributeListSubject` would result in `value of: attributeList.size()`). In hindsight, I guess that I could have given _direct_ usages of `IterableSubject` a `typeDescriptionOverride` (by making `StandardSubjectBuilder` pass one), but that seems like more effort than is worthwhile now that I've already tested this CL as it stands.

RELNOTES=n/a
PiperOrigin-RevId: 598964798
4 files changed
tree: 9210ac4fc6756f6696c52b32e31d2c4dff27eaab
  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.