Uses of Interface
com.google.common.truth.Ordered
-
Uses of Ordered in com.google.common.truth
Classes in com.google.common.truth that implement OrderedModifier and TypeClassDescriptionprivate class
private class
Fields in com.google.common.truth declared as OrderedModifier and TypeFieldDescriptionprivate static final Ordered
IterableSubject.ALREADY_FAILED
Ordered implementation that does nothing because an earlier check already caused a failure.private static final Ordered
MapSubject.ALREADY_FAILED
Ordered implementation that does nothing because an earlier check already caused a failure.private static final Ordered
MultimapSubject.ALREADY_FAILED
Ordered implementation that does nothing because an earlier check already caused a failure.private static final Ordered
IterableSubject.IN_ORDER
Ordered implementation that does nothing because it's already known to be true.private static final Ordered
MapSubject.IN_ORDER
Ordered implementation that does nothing because it's already known to be true.Methods in com.google.common.truth that return OrderedModifier and TypeMethodDescriptionIntStreamSubject.containsAtLeast
(int first, int second, int... rest) Fails if the subject does not contain all of the given elements.final Ordered
IterableSubject.containsAtLeast
(Object firstExpected, Object secondExpected, Object... restOfExpected) Checks that the actual iterable contains at least all of the expected elements or fails.final 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.LongStreamSubject.containsAtLeast
(long first, long second, long... rest) Fails if the subject does not contain all of the given elements.final Ordered
MapSubject.containsAtLeast
(Object k0, Object v0, Object... rest) 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.final Ordered
MultimapSubject.containsAtLeast
(Object k0, Object v0, Object... rest) Fails if the multimap does not contain at least the given key/value pairs.MultimapSubject.UsingCorrespondence.containsAtLeast
(Object k0, E v0, Object... rest) Fails if the multimap does not contain at least the given key/value pairs.PrimitiveDoubleArraySubject.DoubleArrayAsIterable.containsAtLeast
(double[] expected) AsIterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...)
but taking a primitive double array.PrimitiveFloatArraySubject.FloatArrayAsIterable.containsAtLeast
(float[] expected) AsIterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...)
but taking a primitive float array.StreamSubject.containsAtLeast
(Object first, Object second, Object... rest) Fails if the subject does not contain all of the given elements.IntStreamSubject.containsAtLeastElementsIn
(Iterable<?> expected) Fails if the subject does not contain all of the given elements.final Ordered
IterableSubject.containsAtLeastElementsIn
(Iterable<?> expectedIterable) Checks that the actual iterable contains at least all of the expected elements or fails.final Ordered
IterableSubject.containsAtLeastElementsIn
(Object[] expected) Checks that the actual iterable contains at least all of the expected elements or fails.IterableSubject.UsingCorrespondence.containsAtLeastElementsIn
(E[] expected) Checks that the subject contains elements that corresponds to all of the expected elements, i.e.IterableSubject.UsingCorrespondence.containsAtLeastElementsIn
(Iterable<? extends E> expected) Checks that the subject contains elements that corresponds to all of the expected elements, i.e.LongStreamSubject.containsAtLeastElementsIn
(Iterable<?> expected) Fails if the subject does not contain all of the given elements.StreamSubject.containsAtLeastElementsIn
(Iterable<?> expected) Fails if the subject does not contain all of the given elements.final Ordered
MapSubject.containsAtLeastEntriesIn
(Map<?, ?> expectedMap) Fails if the map does not contain at least the given set of entries in the given map.MapSubject.UsingCorrespondence.containsAtLeastEntriesIn
(Map<?, ? extends E> 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.final Ordered
MultimapSubject.containsAtLeastEntriesIn
(com.google.common.collect.Multimap<?, ?> expectedMultimap) Fails if theMultimap
does not contain at least the entries in the argumentMultimap
.MultimapSubject.UsingCorrespondence.containsAtLeastEntriesIn
(com.google.common.collect.Multimap<?, ? extends E> 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.IntStreamSubject.containsExactly
(int... varargs) Fails if the subject does not contain exactly the given elements.final Ordered
IterableSubject.containsExactly
(Object... varargs) Checks that a subject contains exactly the provided objects or fails.final Ordered
IterableSubject.UsingCorrespondence.containsExactly
(E... expected) Checks that subject contains exactly elements that correspond to the expected elements, i.e.LongStreamSubject.containsExactly
(long... varargs) Fails if the subject does not contain exactly the given elements.final Ordered
MapSubject.containsExactly()
Fails if the map is not empty.final Ordered
MapSubject.containsExactly
(Object k0, Object v0, Object... rest) Fails if the map does not contain exactly the given set of key/value pairs.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.final Ordered
MultimapSubject.containsExactly()
Fails if the multimap is not empty.final Ordered
MultimapSubject.containsExactly
(Object k0, Object v0, Object... rest) Fails if the multimap does not contain exactly the given set of key/value pairs.MultimapSubject.UsingCorrespondence.containsExactly()
Fails if the multimap is not empty.MultimapSubject.UsingCorrespondence.containsExactly
(Object k0, E v0, Object... rest) Fails if the multimap does not contain exactly the given set of key/value pairs.PrimitiveDoubleArraySubject.DoubleArrayAsIterable.containsExactly
(double[] expected) AsIterableSubject.UsingCorrespondence.containsExactly(Object...)
but taking a primitive double array.PrimitiveFloatArraySubject.FloatArrayAsIterable.containsExactly
(float[] expected) AsIterableSubject.UsingCorrespondence.containsExactly(Object...)
but taking a primitive float array.StreamSubject.containsExactly
(Object... varargs) Fails if the subject does not contain exactly the given elements.IntStreamSubject.containsExactlyElementsIn
(Iterable<?> expected) Fails if the subject does not contain exactly the given elements.final Ordered
IterableSubject.containsExactlyElementsIn
(Iterable<?> expected) Checks that a subject contains exactly the provided objects or fails.private Ordered
IterableSubject.containsExactlyElementsIn
(Iterable<?> required, boolean addElementsInWarning) final Ordered
IterableSubject.containsExactlyElementsIn
(Object[] expected) Checks that a subject contains exactly the provided objects or fails.IterableSubject.UsingCorrespondence.containsExactlyElementsIn
(E[] expected) Checks that subject contains exactly elements that correspond to the expected elements, i.e.IterableSubject.UsingCorrespondence.containsExactlyElementsIn
(Iterable<? extends E> expected) Checks that subject contains exactly elements that correspond to the expected elements, i.e.LongStreamSubject.containsExactlyElementsIn
(Iterable<?> expected) Fails if the subject does not contain exactly the given elements.StreamSubject.containsExactlyElementsIn
(Iterable<?> expected) Fails if the subject does not contain exactly the given elements.final Ordered
MapSubject.containsExactlyEntriesIn
(Map<?, ?> expectedMap) Fails if the map does not contain exactly the given set of entries in the given map.MapSubject.UsingCorrespondence.containsExactlyEntriesIn
(Map<?, ? extends E> 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.final Ordered
MultimapSubject.containsExactlyEntriesIn
(com.google.common.collect.Multimap<?, ?> expectedMultimap) Fails if theMultimap
does not contain precisely the same entries as the argumentMultimap
.MultimapSubject.UsingCorrespondence.containsExactlyEntriesIn
(com.google.common.collect.Multimap<?, ? extends E> 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.private Ordered
IterableSubject.failAtLeast
(Collection<?> expected, Collection<?> missingRawObjects) private Ordered
IterableSubject.failExactly
(Iterable<?> required, boolean addElementsInWarning, Collection<?> missingRawObjects, Collection<?> extraRawObjects) MultimapSubject.UsingCorrespondence.internalContainsAtLeastEntriesIn
(com.google.common.collect.Multimap<K, V> expectedMultimap) MapSubject.UsingCorrespondence.internalContainsEntriesIn
(String modifier, Map<K, V> expectedMap, boolean allowUnexpected) MultimapSubject.UsingCorrespondence.internalContainsExactlyEntriesIn
(com.google.common.collect.Multimap<K, V> expectedMultimap)