Class SubjectUtils.DuplicateGroupedAndTyped

java.lang.Object
com.google.common.truth.SubjectUtils.DuplicateGroupedAndTyped
Enclosing class:
SubjectUtils

static final class SubjectUtils.DuplicateGroupedAndTyped extends Object
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 Details

  • Constructor Details

  • Method Details

    • totalCopies

      int totalCopies()
    • isEmpty

      boolean isEmpty()
    • entrySet

      Iterable<com.google.common.collect.Multiset.Entry<?>> entrySet()
    • toString

      public String toString()
      Overrides:
      toString in class Object