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.containsAllIn(Iterable<?> expected)
Attests that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
IterableSubject.UsingCorrespondence.containsAllIn(Iterable<? extends E> expected)
Attests that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableSubject.UsingCorrespondence.containsAllOf(E first,
E second,
E... rest)
Attests that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableSubject.containsAllOf(Object firstExpected,
Object secondExpected,
Object... restOfExpected)
Attests that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
MapSubject.containsExactly()
Fails if the map is not empty.
|
Ordered |
IterableSubject.UsingCorrespondence.containsExactly(E... expected)
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
MultimapSubject.containsExactly(com.google.common.collect.Multimap<?,?> expectedMultimap)
Deprecated.
|
Ordered |
IterableSubject.containsExactly(Object... varargs)
Attests 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 |
MapSubject.containsExactly(Object k0,
Object v0,
Object... rest)
Fails if the map does not contain exactly the given set of key/value pairs.
|
Ordered |
IterableSubject.containsExactlyElementsIn(Iterable<?> expected)
Attests that a subject contains exactly the provided objects or fails.
|
Ordered |
IterableSubject.UsingCorrespondence.containsExactlyElementsIn(Iterable<? extends E> expected)
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
|
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(com.google.common.collect.Multimap<?,?> expectedMultimap)
Fails if the Multimap does not contain precisely the same entries as the argument Multimap.
|
Modifier and Type | Method and Description |
---|---|
Ordered |
IterableOfProtosSubject.containsAllIn(Iterable<?> expected)
Attests that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
IterableOfProtosFluentAssertion.containsAllIn(Iterable<? extends M> expected)
Attests that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableOfProtosFluentAssertion.containsAllOf(M first,
M second,
M... rest)
Attests that the subject contains elements that corresponds to all of the expected elements,
i.e.
|
Ordered |
IterableOfProtosSubject.containsAllOf(Object firstExpected,
Object secondExpected,
Object... restOfExpected)
Attests that the actual iterable contains at least all of the expected elements or fails.
|
Ordered |
IterableOfProtosFluentAssertion.containsExactly(M... expected)
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
|
Ordered |
IterableOfProtosSubject.containsExactly(Object... varargs)
Attests that a subject contains exactly the provided objects or fails.
|
Ordered |
IterableOfProtosSubject.containsExactlyElementsIn(Iterable<?> expected)
Attests that a subject contains exactly the provided objects or fails.
|
Ordered |
IterableOfProtosFluentAssertion.containsExactlyElementsIn(Iterable<? extends M> expected)
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
|
Copyright © 2016. All rights reserved.