Uses of Class
com.google.common.truth.Fact

  • Uses of Fact in com.google.common.truth

    Fields in com.google.common.truth declared as Fact
    Modifier and Type
    Field
    Description
    (package private) static final Fact
     
    Fields in com.google.common.truth with type parameters of type Fact
    Modifier and Type
    Field
    Description
    (package private) final com.google.common.collect.ImmutableList<Fact>
    AssertionErrorWithFacts.facts
     
    (package private) final com.google.common.collect.ImmutableList<Fact>
    ComparisonFailureWithFacts.facts
     
    private final Iterable<Fact>
    Facts.facts
     
    private final com.google.common.collect.ImmutableList<Fact>
    Subject.ComparisonResult.facts
     
    Methods in com.google.common.truth that return Fact
    Modifier and Type
    Method
    Description
    (package private) final Fact
    Subject.butWas()
    Returns a "but was: " string.
    (package private) final Fact
    Correspondence.describeForIterable()
    Returns a Fact describing how this correspondence compares elements of an iterable.
    (package private) final Fact
    Correspondence.describeForMapValues()
    Returns a Fact describing how this correspondence compares values in a map (or multimap).
    static Fact
    Fact.fact(String key, Object value)
    Creates a fact with the given key and value, which will be printed in a format like "key: value." The value is converted to a string by calling String.valueOf on it.
    private Fact
    IterableSubject.fullContents()
     
    static Fact
    Fact.simpleFact(String key)
    Creates a fact with no value, which will be printed in the format "key" (with no colon or value).
    Methods in com.google.common.truth that return types with arguments of type Fact
    Modifier and Type
    Method
    Description
    (package private) Iterable<Fact>
    Facts.asIterable()
    Returns the facts wrapped by this instance.
    private com.google.common.collect.ImmutableList<Fact>
    FailureMetadata.description()
    Returns a description of the final actual value, if it appears "interesting" enough to show.
    com.google.common.collect.ImmutableList<Fact>
    AssertionErrorWithFacts.facts()
     
    com.google.common.collect.ImmutableList<Fact>
    ComparisonFailureWithFacts.facts()
     
    com.google.common.collect.ImmutableList<Fact>
    ErrorWithFacts.facts()
     
    (package private) com.google.common.collect.ImmutableList<Fact>
    Subject.ComparisonResult.factsOrEmpty()
     
    private static com.google.common.collect.ImmutableList<Fact>
    TruthFailureSubject.factsWithName(ErrorWithFacts error, String key)
     
    (package private) static com.google.common.collect.ImmutableList<Fact>
    ComparisonFailureWithFacts.formatExpectedAndActual(String expected, String actual)
    Returns one or more facts describing the difference between the given expected and actual values.
    (package private) static com.google.common.collect.ImmutableList<Fact>
    Platform.makeDiff(String expected, String actual)
     
    private static com.google.common.collect.ImmutableList<Fact>
    Returns a list of facts (zero, one, or many, depending on the number of elements and the grouping policy) describing the given missing, unexpected, or near-miss elements.
    private static com.google.common.collect.ImmutableList<Fact>
    IterableSubject.makeElementFactsForBoth(String firstKey, Collection<?> firstCollection, String secondKey, Collection<?> secondCollection)
     
    private static com.google.common.collect.ImmutableList<Fact>
    ComparisonFailureWithFacts.makeFacts(com.google.common.collect.ImmutableList<Fact> headFacts, com.google.common.collect.ImmutableList<Fact> tailFacts, String expected, String actual)
     
    private com.google.common.collect.ImmutableList<Fact>
    Subject.nameAsFacts()
     
    private com.google.common.collect.ImmutableList<Fact>
    Subject.prependNameIfAny(com.google.common.collect.ImmutableList<Fact> facts)
     
    private static com.google.common.collect.ImmutableList<Fact>
    ComparisonFailureWithFacts.removeCommonPrefixAndSuffix(String expected, String actual)
     
    private com.google.common.collect.ImmutableList<Fact>
    FailureMetadata.rootUnlessThrowable()
    Returns the root actual value, if we know it's "different enough" from the final actual value.
    Methods in com.google.common.truth with parameters of type Fact
    Modifier and Type
    Method
    Description
    (package private) Facts
    Facts.and(Fact... moreFacts)
    Returns an instance concatenating the facts wrapped by the current instance followed by the given facts.
    (package private) static Subject.ComparisonResult
    Subject.ComparisonResult.differentWithDescription(Fact... facts)
    Returns a non-equal result with the given description.
    (package private) static Facts
    Facts.facts(Fact... facts)
    Returns an instance wrapping the given facts.
    private void
     
    protected final void
    Subject.failWithActual(Fact first, Fact... rest)
    Fails, reporting a message with the given facts, followed by an automatically added fact of the form: but was: actual value.
    protected final void
    Subject.failWithoutActual(Fact first, Fact... rest)
    Fails, reporting a message with the given facts, without automatically adding the actual value.
    Method parameters in com.google.common.truth with type arguments of type Fact
    Modifier and Type
    Method
    Description
    private void
    Subject.doFail(com.google.common.collect.ImmutableList<Fact> facts)
     
    (package private) static Facts
    Facts.facts(Iterable<Fact> facts)
    Returns an instance wrapping the given facts.
    (package private) void
    FailureMetadata.fail(com.google.common.collect.ImmutableList<Fact> facts)
     
    (package private) void
    FailureMetadata.failEqualityCheck(com.google.common.collect.ImmutableList<Fact> headFacts, com.google.common.collect.ImmutableList<Fact> tailFacts, String expected, String actual)
     
    (package private) final void
    Subject.failWithActual(Iterable<Fact> facts)
     
    (package private) final void
     
    private static com.google.common.collect.ImmutableList<Fact>
    ComparisonFailureWithFacts.makeFacts(com.google.common.collect.ImmutableList<Fact> headFacts, com.google.common.collect.ImmutableList<Fact> tailFacts, String expected, String actual)
     
    private com.google.common.collect.ImmutableList<Fact>
    Subject.prependNameIfAny(com.google.common.collect.ImmutableList<Fact> facts)
     
    Constructor parameters in com.google.common.truth with type arguments of type Fact
    Modifier
    Constructor
    Description
    private
    ComparisonResult(com.google.common.collect.ImmutableList<Fact> facts)
     
    private