Package | Description |
---|---|
com.google.common.truth |
Truth is an open source, fluent testing framework for Java that is designed to make your test
assertions and failure messages more readable.
|
Modifier and Type | Method and Description |
---|---|
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. |
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).
|
Modifier and Type | Method and 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.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.
|
protected void |
Subject.failWithoutActual(Fact first,
Fact... rest)
Fails, reporting a message with the given facts, without automatically adding the actual
value.
|
Copyright © 2018. All rights reserved.