| Package | Description | 
|---|---|
| com.google.common.truth | 
 Truth is a library for performing assertions in tests: 
 | 
| com.google.common.truth.extensions.proto | 
 Custom subjects for testing Protocol
 Buffer instances. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Ordered | 
PrimitiveDoubleArraySubject.DoubleArrayAsIterable.containsAtLeast(double[] expected)
As  
IterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...) but taking a primitive double array. | 
Ordered | 
IterableSubject.UsingCorrespondence.containsAtLeast(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.containsAtLeast(float[] expected)
As  
IterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...) but taking a primitive float array. | 
Ordered | 
IntStreamSubject.containsAtLeast(int first,
               int second,
               int... rest)
Fails if the subject does not contain all of the given elements. 
 | 
Ordered | 
LongStreamSubject.containsAtLeast(long first,
               long second,
               long... rest)
Fails if the subject does not contain all of the given elements. 
 | 
Ordered | 
MapSubject.UsingCorrespondence.containsAtLeast(Object k0,
               E v0,
               Object... rest)
Fails if the map does not contain at least the given set of keys mapping to values that
 correspond to the given values. 
 | 
Ordered | 
StreamSubject.containsAtLeast(Object first,
               Object second,
               Object... rest)
Fails if the subject does not contain all of the given elements. 
 | 
Ordered | 
MultimapSubject.containsAtLeast(Object k0,
               Object v0,
               Object... rest)
Fails if the multimap does not contain at least the given key/value pairs. 
 | 
Ordered | 
IterableSubject.containsAtLeast(Object firstExpected,
               Object secondExpected,
               Object... restOfExpected)
Checks that the actual iterable contains at least all of the expected elements or fails. 
 | 
Ordered | 
MapSubject.containsAtLeast(Object k0,
               Object v0,
               Object... rest)  | 
<K,V extends E> | 
MultimapSubject.UsingCorrespondence.containsAtLeast(Object k0,
               Object v0,
               Object... rest)
Fails if the multimap does not contain at least the given key/value pairs. 
 | 
Ordered | 
IterableSubject.UsingCorrespondence.containsAtLeastElementsIn(E[] expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
 i.e. 
 | 
Ordered | 
StreamSubject.containsAtLeastElementsIn(Iterable<?> expected)
Fails if the subject does not contain all of the given elements. 
 | 
Ordered | 
LongStreamSubject.containsAtLeastElementsIn(Iterable<?> expected)
Fails if the subject does not contain all of the given elements. 
 | 
Ordered | 
IntStreamSubject.containsAtLeastElementsIn(Iterable<?> expected)
Fails if the subject does not contain all of the given elements. 
 | 
Ordered | 
IterableSubject.containsAtLeastElementsIn(Iterable<?> expectedIterable)
Checks that the actual iterable contains at least all of the expected elements or fails. 
 | 
Ordered | 
IterableSubject.UsingCorrespondence.containsAtLeastElementsIn(Iterable<? extends E> expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
 i.e. 
 | 
Ordered | 
IterableSubject.containsAtLeastElementsIn(Object[] expected)
Checks that the actual iterable contains at least all of the expected elements or fails. 
 | 
Ordered | 
MapSubject.containsAtLeastEntriesIn(Map<?,?> expectedMap)
Fails if the map does not contain at least the given set of entries in the given map. 
 | 
<K,V extends E> | 
MapSubject.UsingCorrespondence.containsAtLeastEntriesIn(Map<K,V> expectedMap)
Fails if the map does not contain at least the keys in the given map, mapping to values that
 correspond to the values of the given map. 
 | 
Ordered | 
MultimapSubject.containsAtLeastEntriesIn(Multimap<?,?> expectedMultimap)
 | 
<K,V extends E> | 
MultimapSubject.UsingCorrespondence.containsAtLeastEntriesIn(Multimap<K,V> expectedMultimap)
Fails if the map does not contain at least the keys in the given multimap, mapping to values
 that correspond to the values of the given multimap. 
 | 
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 | 
IterableOfProtosUsingCorrespondence.containsAtLeast(M first,
               M second,
               M... rest)
Checks that the subject contains elements that corresponds to all of the expected elements,
 i.e. 
 | 
Ordered | 
IterableOfProtosUsingCorrespondence.containsAtLeastElementsIn(Iterable<? extends M> expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
 i.e. 
 | 
Ordered | 
IterableOfProtosUsingCorrespondence.containsAtLeastElementsIn(M[] expected)
Checks that the subject contains elements that corresponds to all of the expected elements,
 i.e. 
 | 
Ordered | 
MultimapWithProtoValuesFluentAssertion.containsExactly()
Fails if the multimap is not empty. 
 | 
Ordered | 
IterableOfProtosUsingCorrespondence.containsExactly(M... expected)
Checks that subject contains exactly elements that correspond to the expected elements, i.e. 
 | 
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 | 
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 | 
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 | 
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 © 2019. All rights reserved.