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.
|
com.google.common.truth.extensions.proto |
Custom subjects for testing Protocol
Buffer instances.
|
Modifier and Type | Class and Description |
---|---|
static class |
PrimitiveDoubleArraySubject.DoubleArrayAsIterable
A partially specified check for doing assertions on the array similar to the assertions
supported for
Iterable subjects, in which the elements of the array under test are
compared to expected elements using either exact or tolerant double equality: see PrimitiveDoubleArraySubject.usingExactEquality() and PrimitiveDoubleArraySubject.usingTolerance(double) . |
static class |
PrimitiveFloatArraySubject.FloatArrayAsIterable
A partially specified check for doing assertions on the array similar to the assertions
supported for
Iterable subjects, in which the elements of the array under test are
compared to expected elements using either exact or tolerant float equality: see PrimitiveFloatArraySubject.usingExactEquality() and PrimitiveFloatArraySubject.usingTolerance(double) . |
Modifier and Type | Method and Description |
---|---|
<A,E> IterableSubject.UsingCorrespondence<A,E> |
IterableSubject.comparingElementsUsing(Correspondence<A,E> correspondence)
Starts a method chain for a check in which the actual elements (i.e.
|
IterableSubject.UsingCorrespondence<A,E> |
IterableSubject.UsingCorrespondence.displayingDiffsPairedBy(Function<? super A,? extends Object> actualKeyFunction,
Function<? super E,? extends Object> expectedKeyFunction)
Specifies a way to pair up unexpected and missing elements in the message when an assertion
fails.
|
IterableSubject.UsingCorrespondence<A,E> |
IterableSubject.UsingCorrespondence.displayingDiffsPairedBy(Function<? super E,? extends Object> keyFunction)
Specifies a way to pair up unexpected and missing elements in the message when an assertion
fails.
|
Modifier and Type | Method and Description |
---|---|
<A,E> IterableSubject.UsingCorrespondence<A,E> |
IterableOfProtosSubject.comparingElementsUsing(Correspondence<A,E> correspondence)
Starts a method chain for a check in which the actual elements (i.e.
|
Copyright © 2018. All rights reserved.