Package com.google.common.truth
Class SubjectUtils.DuplicateGroupedAndTyped
java.lang.Object
com.google.common.truth.SubjectUtils.DuplicateGroupedAndTyped
- Enclosing class:
SubjectUtils
Missing or unexpected values from a collection assertion, with equal objects grouped together
and, in some cases, type information added. If the type information is present, it is either
present in
homogeneousTypeToDisplay
(if all objects have the same type) or appended to
each individual element (if some elements have different types).
This allows collection assertions to the type information on a separate line from the elements and even to output different elements on different lines.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.google.common.base.Optional
<String> (package private) final SubjectUtils.NonHashingMultiset
<?> -
Constructor Summary
ConstructorsConstructorDescriptionDuplicateGroupedAndTyped
(SubjectUtils.NonHashingMultiset<?> valuesAndMaybeTypes, com.google.common.base.Optional<String> homogeneousTypeToDisplay) -
Method Summary
-
Field Details
-
valuesAndMaybeTypes
-
homogeneousTypeToDisplay
-
-
Constructor Details
-
DuplicateGroupedAndTyped
DuplicateGroupedAndTyped(SubjectUtils.NonHashingMultiset<?> valuesAndMaybeTypes, com.google.common.base.Optional<String> homogeneousTypeToDisplay)
-
-
Method Details