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 | Method and Description |
---|---|
Ordered |
IterableSubject.UsingCorrespondence.containsAllIn(E[] expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
StreamSubject.containsAllIn(Iterable<?> expected)
Fails if the subject does not contain all of the given elements.
|
Ordered |
LongStreamSubject.containsAllIn(Iterable<?> expected)
Fails if the subject does not contain all of the given elements.
|
Ordered |
IntStreamSubject.containsAllIn(Iterable<?> expected)
Fails if the subject does not contain all of the given elements.
|
Ordered |
IterableSubject.containsAllIn(Iterable<?> expectedIterable)
Checks that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
IterableSubject.UsingCorrespondence.containsAllIn(Iterable<? extends E> expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableSubject.containsAllIn(Object[] expected)
Checks that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
PrimitiveDoubleArraySubject.DoubleArrayAsIterable.containsAllOf(double[] expected)
As
IterableSubject.UsingCorrespondence.containsAllOf(Object, Object, Object...) but taking a primitive double array. |
Ordered |
IterableSubject.UsingCorrespondence.containsAllOf(E first,
E second,
E... rest)
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
PrimitiveFloatArraySubject.FloatArrayAsIterable.containsAllOf(float[] expected)
As
IterableSubject.UsingCorrespondence.containsAllOf(Object, Object, Object...) but taking a primitive float array. |
Ordered |
IntStreamSubject.containsAllOf(int first,
int second,
int... rest)
Fails if the subject does not contain all of the given elements.
|
Ordered |
LongStreamSubject.containsAllOf(long first,
long second,
long... rest)
Fails if the subject does not contain all of the given elements.
|
Ordered |
StreamSubject.containsAllOf(Object first,
Object second,
Object... rest)
Fails if the subject does not contain all of the given elements.
|
Ordered |
IterableSubject.containsAllOf(Object firstExpected,
Object secondExpected,
Object... restOfExpected)
Checks that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
MultimapSubject.containsExactly()
Fails if the multimap is not empty.
|
Ordered |
MapSubject.containsExactly()
Fails if the map is not empty.
|
<K,V extends E> |
MultimapSubject.UsingCorrespondence.containsExactly()
Fails if the multimap is not empty.
|
Ordered |
PrimitiveDoubleArraySubject.DoubleArrayAsIterable.containsExactly(double[] expected)
As
IterableSubject.UsingCorrespondence.containsExactly(Object...) but taking a primitive double array. |
Ordered |
IterableSubject.UsingCorrespondence.containsExactly(E... expected)
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
PrimitiveFloatArraySubject.FloatArrayAsIterable.containsExactly(float[] expected)
As
IterableSubject.UsingCorrespondence.containsExactly(Object...) but taking a primitive float array. |
Ordered |
IntStreamSubject.containsExactly(int... varargs)
Fails if the subject does not contain exactly the given elements.
|
Ordered |
LongStreamSubject.containsExactly(long... varargs)
Fails if the subject does not contain exactly the given elements.
|
Ordered |
StreamSubject.containsExactly(Object... varargs)
Fails if the subject does not contain exactly the given elements.
|
Ordered |
IterableSubject.containsExactly(Object... varargs)
Checks that a subject contains exactly the provided objects or fails.
|
Ordered |
MapSubject.UsingCorrespondence.containsExactly(Object k0,
E v0,
Object... rest)
Fails if the map does not contain exactly the given set of keys mapping to values that
correspond to the given values.
|
Ordered |
MultimapSubject.containsExactly(Object k0,
Object v0,
Object... rest)
Fails if the multimap does not contain exactly the given set of key/value pairs.
|
Ordered |
MapSubject.containsExactly(Object k0,
Object v0,
Object... rest)
Fails if the map does not contain exactly the given set of key/value pairs.
|
<K,V extends E> |
MultimapSubject.UsingCorrespondence.containsExactly(Object k0,
Object v0,
Object... rest)
Fails if the multimap does not contain exactly the given set of key/value pairs.
|
Ordered |
IterableSubject.UsingCorrespondence.containsExactlyElementsIn(E[] expected)
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
StreamSubject.containsExactlyElementsIn(Iterable<?> expected)
Fails if the subject does not contain exactly the given elements.
|
Ordered |
LongStreamSubject.containsExactlyElementsIn(Iterable<?> expected)
Fails if the subject does not contain exactly the given elements.
|
Ordered |
IntStreamSubject.containsExactlyElementsIn(Iterable<?> expected)
Fails if the subject does not contain exactly the given elements.
|
Ordered |
IterableSubject.containsExactlyElementsIn(Iterable<?> expected)
Checks that a subject contains exactly the provided objects or fails.
|
Ordered |
IterableSubject.UsingCorrespondence.containsExactlyElementsIn(Iterable<? extends E> expected)
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
IterableSubject.containsExactlyElementsIn(Object[] expected)
Checks that a subject contains exactly the provided objects or fails.
|
Ordered |
MapSubject.containsExactlyEntriesIn(Map<?,?> expectedMap)
Fails if the map does not contain exactly the given set of entries in the given map.
|
<K,V extends E> |
MapSubject.UsingCorrespondence.containsExactlyEntriesIn(Map<K,V> expectedMap)
Fails if the map does not contain exactly the keys in the given map, mapping to values that
correspond to the values of the given map.
|
Ordered |
MultimapSubject.containsExactlyEntriesIn(Multimap<?,?> expectedMultimap)
|
<K,V extends E> |
MultimapSubject.UsingCorrespondence.containsExactlyEntriesIn(Multimap<K,V> expectedMultimap)
Fails if the map does not contain exactly the keys in the given multimap, mapping to values
that correspond to the values of the given multimap.
|
Modifier and Type | Method and Description |
---|---|
Ordered |
IterableOfProtosSubject.containsAllIn(Iterable<?> expected)
Checks that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
IterableOfProtosUsingCorrespondence.containsAllIn(Iterable<? extends M> expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableOfProtosUsingCorrespondence.containsAllIn(M[] expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableOfProtosSubject.containsAllIn(Object[] expected)
Checks that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
IterableOfProtosUsingCorrespondence.containsAllOf(M first,
M second,
M... rest)
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableOfProtosSubject.containsAllOf(Object firstExpected,
Object secondExpected,
Object... restOfExpected)
Checks that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
MultimapWithProtoValuesSubject.containsExactly()
Fails if the multimap is not empty.
|
Ordered |
MultimapWithProtoValuesFluentAssertion.containsExactly()
Fails if the multimap is not empty.
|
Ordered |
MapWithProtoValuesSubject.containsExactly()
Fails if the map is not empty.
|
Ordered |
IterableOfProtosUsingCorrespondence.containsExactly(M... expected)
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
IterableOfProtosSubject.containsExactly(Object... varargs)
Checks that a subject contains exactly the provided objects or fails.
|
Ordered |
MultimapWithProtoValuesFluentAssertion.containsExactly(Object k0,
M v0,
Object... rest)
Fails if the multimap does not contain exactly the given set of key/value pairs.
|
Ordered |
MapWithProtoValuesFluentAssertion.containsExactly(Object k0,
M v0,
Object... rest)
Fails if the map does not contain exactly the given set of keys mapping to values that
correspond to the given values.
|
Ordered |
MultimapWithProtoValuesSubject.containsExactly(Object k0,
Object v0,
Object... rest)
Fails if the multimap does not contain exactly the given set of key/value pairs.
|
Ordered |
MapWithProtoValuesSubject.containsExactly(Object k0,
Object v0,
Object... rest)
Fails if the map does not contain exactly the given set of key/value pairs.
|
Ordered |
IterableOfProtosSubject.containsExactlyElementsIn(Iterable<?> expected)
Checks that a subject contains exactly the provided objects or fails.
|
Ordered |
IterableOfProtosUsingCorrespondence.containsExactlyElementsIn(Iterable<? extends M> expected)
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
IterableOfProtosUsingCorrespondence.containsExactlyElementsIn(M[] expected)
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
IterableOfProtosSubject.containsExactlyElementsIn(Object[] expected)
Checks that a subject contains exactly the provided objects or fails.
|
Ordered |
MapWithProtoValuesSubject.containsExactlyEntriesIn(Map<?,?> expectedMap)
Fails if the map does not contain exactly the given set of entries in the given map.
|
Ordered |
MapWithProtoValuesFluentAssertion.containsExactlyEntriesIn(Map<?,? extends M> expectedMap)
Fails if the map does not contain exactly the keys in the given map, mapping to values that
correspond to the values of the given map.
|
Ordered |
MultimapWithProtoValuesSubject.containsExactlyEntriesIn(Multimap<?,?> expectedMultimap)
|
Ordered |
MultimapWithProtoValuesFluentAssertion.containsExactlyEntriesIn(Multimap<?,? extends M> expectedMultimap)
Fails if the map does not contain exactly the keys in the given multimap, mapping to values
that correspond to the values of the given multimap.
|
Copyright © 2018. All rights reserved.