Uses of Class
com.google.common.truth.Fact
-
Packages that use Fact Package Description com.google.common.truth Truth is a library for performing assertions in tests: -
-
Uses of Fact in com.google.common.truth
Methods in com.google.common.truth that return Fact Modifier and Type Method Description static Fact
Fact. fact(String key, @Nullable Object value)
Creates a fact with the given key and value, which will be printed in a format like "key: value."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 with parameters of type Fact Modifier and Type Method Description protected 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 void
Subject. failWithoutActual(Fact first, Fact... rest)
Fails, reporting a message with the given facts, without automatically adding the actual value.
-