- check() - Method in class com.google.common.truth.Subject
-
Returns a builder for creating a derived subject but without providing information about how
the derived subject will relate to the current subject.
- check(String, Object...) - Method in class com.google.common.truth.Subject
-
Returns a builder for creating a derived subject.
- ClassSubject - Class in com.google.common.truth
-
Propositions for
Class
subjects.
- com.google.common.truth - package 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 - package com.google.common.truth.extensions.proto
-
- com.google.common.truth.extensions.re2j - package com.google.common.truth.extensions.re2j
-
- ComparableSubject<S extends ComparableSubject<S,T>,T extends Comparable> - Class in com.google.common.truth
-
- ComparableSubject(FailureMetadata, T) - Constructor for class com.google.common.truth.ComparableSubject
-
Constructor for use by subclasses.
- compare(A, E) - Method in class com.google.common.truth.Correspondence
-
Returns whether or not the actual
value is said to correspond to the expected
value for the purposes of this test.
- comparesEqualTo(T) - Method in class com.google.common.truth.ComparableSubject
-
- comparingElementsUsing(Correspondence<A, E>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Starts a method chain for a check in which the actual elements (i.e.
- comparingElementsUsing(Correspondence<A, E>) - Method in class com.google.common.truth.IterableSubject
-
Starts a method chain for a check in which the actual elements (i.e.
- comparingExpectedFieldsOnly() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
- comparingExpectedFieldsOnly() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
- comparingExpectedFieldsOnly() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
- comparingExpectedFieldsOnly() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- comparingExpectedFieldsOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
- comparingExpectedFieldsOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
- comparingExpectedFieldsOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
- comparingExpectedFieldsOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Limits the comparison of Protocol buffers to the fields set in the expected proto(s).
- comparingValuesUsing(Correspondence<A, E>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Starts a method chain for a check in which the actual values (i.e.
- comparingValuesUsing(Correspondence<A, E>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Starts a method chain for a check in which the actual values (i.e.
- comparingValuesUsing(Correspondence<A, E>) - Method in class com.google.common.truth.MapSubject
-
Starts a method chain for a check in which the actual values (i.e.
- comparingValuesUsing(Correspondence<A, E>) - Method in class com.google.common.truth.MultimapSubject
-
Starts a method chain for a check in which the actual values (i.e.
- contains(Object) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks (with a side-effect failure) that the subject contains the supplied item.
- contains(M) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to the given expected
element.
- contains(int) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject does not contain the given element.
- contains(Object) - Method in class com.google.common.truth.IterableSubject
-
Checks (with a side-effect failure) that the subject contains the supplied item.
- contains(E) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to the given expected
element.
- contains(long) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject does not contain the given element.
- contains(Object) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject does not contain the given element.
- contains(CharSequence) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
-
Fails if the string does not contain the given sequence (while ignoring case).
- contains(CharSequence) - Method in class com.google.common.truth.StringSubject
-
Fails if the string does not contain the given sequence.
- contains(Object, Object) - Method in class com.google.common.truth.TableSubject
-
Fails if the table does not contain a mapping for the given row key and column key.
- containsAllIn(Iterable<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that the actual iterable contains at least all of the expected elements or fails.
- containsAllIn(Object[]) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that the actual iterable contains at least all of the expected elements or fails.
- containsAllIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
- containsAllIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
- containsAllIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject does not contain all of the given elements.
- containsAllIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
-
Checks that the actual iterable contains at least all of the expected elements or fails.
- containsAllIn(Object[]) - Method in class com.google.common.truth.IterableSubject
-
Checks that the actual iterable contains at least all of the expected elements or fails.
- containsAllIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
- containsAllIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
- containsAllIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject does not contain all of the given elements.
- containsAllIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject does not contain all of the given elements.
- containsAllOf(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that the actual iterable contains at least all of the expected elements or fails.
- containsAllOf(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
- containsAllOf(int, int, int...) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject does not contain all of the given elements.
- containsAllOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
-
Checks that the actual iterable contains at least all of the expected elements or fails.
- containsAllOf(E, E, E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains elements that corresponds to all of the expected elements,
i.e.
- containsAllOf(long, long, long...) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject does not contain all of the given elements.
- containsAllOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
-
- containsAllOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
-
- containsAllOf(Object, Object, Object...) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject does not contain all of the given elements.
- containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that the subject contains at least one of the objects contained in the provided
collection or fails.
- containsAnyIn(Object[]) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that the subject contains at least one of the objects contained in the provided array or
fails.
- containsAnyIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to at least one of the
expected elements.
- containsAnyIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to at least one of the
expected elements.
- containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject does not contain at least one of the given elements.
- containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
-
Checks that the subject contains at least one of the objects contained in the provided
collection or fails.
- containsAnyIn(Object[]) - Method in class com.google.common.truth.IterableSubject
-
Checks that the subject contains at least one of the objects contained in the provided array or
fails.
- containsAnyIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to at least one of the
expected elements.
- containsAnyIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to at least one of the
expected elements.
- containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject does not contain at least one of the given elements.
- containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject does not contain at least one of the given elements.
- containsAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that the subject contains at least one of the provided objects or fails.
- containsAnyOf(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to at least one of the
expected elements.
- containsAnyOf(int, int, int...) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject does not contain at least one of the given elements.
- containsAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
-
Checks that the subject contains at least one of the provided objects or fails.
- containsAnyOf(E, E, E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains at least one element that corresponds to at least one of the
expected elements.
- containsAnyOf(long, long, long...) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject does not contain at least one of the given elements.
- containsAnyOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
-
- containsAnyOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
-
- containsAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject does not contain at least one of the given elements.
- containsCell(Object, Object, Object) - Method in class com.google.common.truth.TableSubject
-
Fails if the table does not contain the given cell.
- containsCell(Table.Cell<?, ?, ?>) - Method in class com.google.common.truth.TableSubject
-
Fails if the table does not contain the given cell.
- containsColumn(Object) - Method in class com.google.common.truth.TableSubject
-
Fails if the table does not contain the given column key.
- containsEntry(Object, long) - Method in class com.google.common.truth.AtomicLongMapSubject
-
- containsEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Fails if the map does not contain an entry with the given key and a value that corresponds to
the given value.
- containsEntry(Object, Object) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map does not contain the given entry.
- containsEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Fails if the multimap does not contain an entry with the given key and a value that corresponds
to the given value.
- containsEntry(Object, Object) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap does not contain the given entry.
- containsEntry(Object, Object) - Method in class com.google.common.truth.MapSubject
-
Fails if the map does not contain the given entry.
- containsEntry(Object, E) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
-
Fails if the map does not contain an entry with the given key and a value that corresponds to
the given value.
- containsEntry(Object, Object) - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap does not contain the given entry.
- containsEntry(Object, E) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
-
Fails if the multimap does not contain an entry with the given key and a value that
corresponds to the given value.
- containsExactly(Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that a subject contains exactly the provided objects or fails.
- containsExactly(M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
- containsExactly(Object, M, Object...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Fails if the map does not contain exactly the given set of keys mapping to values that
correspond to the given values.
- containsExactly() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map is not empty.
- containsExactly(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map does not contain exactly the given set of key/value pairs.
- containsExactly() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Fails if the multimap is not empty.
- containsExactly(Object, M, Object...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Fails if the multimap does not contain exactly the given set of key/value pairs.
- containsExactly(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap does not contain exactly the given set of key/value pairs.
- containsExactly() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap is not empty.
- containsExactly(int...) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject does not contain exactly the given elements.
- containsExactly(Object...) - Method in class com.google.common.truth.IterableSubject
-
Checks that a subject contains exactly the provided objects or fails.
- containsExactly(E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
- containsExactly(long...) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject does not contain exactly the given elements.
- containsExactly() - Method in class com.google.common.truth.MapSubject
-
Fails if the map is not empty.
- containsExactly(Object, Object, Object...) - Method in class com.google.common.truth.MapSubject
-
Fails if the map does not contain exactly the given set of key/value pairs.
- containsExactly(Object, E, Object...) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
-
Fails if the map does not contain exactly the given set of keys mapping to values that
correspond to the given values.
- containsExactly() - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap is not empty.
- containsExactly(Object, Object, Object...) - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap does not contain exactly the given set of key/value pairs.
- containsExactly(Object, Object, Object...) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
-
Fails if the multimap does not contain exactly the given set of key/value pairs.
- containsExactly() - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
-
Fails if the multimap is not empty.
- containsExactly(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
-
- containsExactly(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
-
- containsExactly(Object...) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject does not contain exactly the given elements.
- containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that a subject contains exactly the provided objects or fails.
- containsExactlyElementsIn(Object[]) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that a subject contains exactly the provided objects or fails.
- containsExactlyElementsIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
- containsExactlyElementsIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
- containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject does not contain exactly the given elements.
- containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
-
Checks that a subject contains exactly the provided objects or fails.
- containsExactlyElementsIn(Object[]) - Method in class com.google.common.truth.IterableSubject
-
Checks that a subject contains exactly the provided objects or fails.
- containsExactlyElementsIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
- containsExactlyElementsIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that subject contains exactly elements that correspond to the expected elements, i.e.
- containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject does not contain exactly the given elements.
- containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject does not contain exactly the given elements.
- containsExactlyEntriesIn(Map<?, ? extends M>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
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.
- containsExactlyEntriesIn(Map<?, ?>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map does not contain exactly the given set of entries in the given map.
- containsExactlyEntriesIn(Multimap<?, ? extends M>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
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.
- containsExactlyEntriesIn(Multimap<?, ?>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the
Multimap
does not contain precisely the same entries as the argument
Multimap
.
- containsExactlyEntriesIn(Map<?, ?>) - Method in class com.google.common.truth.MapSubject
-
Fails if the map does not contain exactly the given set of entries in the given map.
- containsExactlyEntriesIn(Map<K, V>) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
-
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.
- containsExactlyEntriesIn(Multimap<?, ?>) - Method in class com.google.common.truth.MultimapSubject
-
Fails if the
Multimap
does not contain precisely the same entries as the argument
Multimap
.
- containsExactlyEntriesIn(Multimap<K, V>) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
-
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.
- containsKey(Object) - Method in class com.google.common.truth.AtomicLongMapSubject
-
- containsKey(Object) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map does not contain the given key.
- containsKey(Object) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap does not contain the given key.
- containsKey(Object) - Method in class com.google.common.truth.MapSubject
-
Fails if the map does not contain the given key.
- containsKey(Object) - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap does not contain the given key.
- containsMatch(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
-
Fails if the string does not contain a match on the given regex.
- containsMatch(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
-
Fails if the string does not contain a match on the given regex.
- containsMatch(Pattern) - Method in class com.google.common.truth.StringSubject
-
Fails if the string does not contain a match on the given regex.
- containsMatch(String) - Method in class com.google.common.truth.StringSubject
-
Fails if the string does not contain a match on the given regex.
- containsNoDuplicates() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that the subject does not contain duplicate elements.
- containsNoDuplicates() - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject contains duplicate elements.
- containsNoDuplicates() - Method in class com.google.common.truth.IterableSubject
-
Checks that the subject does not contain duplicate elements.
- containsNoDuplicates() - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject contains duplicate elements.
- containsNoDuplicates() - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject contains duplicate elements.
- containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that a actual iterable contains none of the elements contained in the excluded iterable
or fails.
- containsNoneIn(Object[]) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that a actual iterable contains none of the elements contained in the excluded iterable
or fails.
- containsNoneIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains no elements that correspond to any of the given elements.
- containsNoneIn(M[]) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains no elements that correspond to any of the given elements.
- containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject contains any of the given elements.
- containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
-
Checks that the actual iterable contains none of the elements contained in the excluded
iterable or fails.
- containsNoneIn(Object[]) - Method in class com.google.common.truth.IterableSubject
-
Checks that the actual iterable contains none of the elements contained in the excluded array
or fails.
- containsNoneIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains no elements that correspond to any of the given elements.
- containsNoneIn(E[]) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains no elements that correspond to any of the given elements.
- containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject contains any of the given elements.
- containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject contains any of the given elements.
- containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks that a actual iterable contains none of the excluded objects or fails.
- containsNoneOf(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that the subject contains no elements that correspond to any of the given elements.
- containsNoneOf(int, int, int...) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject contains any of the given elements.
- containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
-
Checks that a actual iterable contains none of the excluded objects or fails.
- containsNoneOf(E, E, E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that the subject contains no elements that correspond to any of the given elements.
- containsNoneOf(long, long, long...) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject contains any of the given elements.
- containsNoneOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
-
- containsNoneOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
-
- containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject contains any of the given elements.
- containsRow(Object) - Method in class com.google.common.truth.TableSubject
-
Fails if the table does not contain the given row key.
- containsValue(Object) - Method in class com.google.common.truth.TableSubject
-
Fails if the table does not contain the given value.
- Correspondence<A,E> - Class in com.google.common.truth
-
Determines whether an instance of type A
corresponds in some way to an instance of type
E
.
- Correspondence() - Constructor for class com.google.common.truth.Correspondence
-
- create() - Static method in class com.google.common.truth.Expect
-
- createAndEnableStackTrace() - Static method in class com.google.common.truth.Expect
-
- createSubject(FailureMetadata, ActualT) - Method in interface com.google.common.truth.Subject.Factory
-
- createSubjectBuilder(FailureMetadata) - Method in interface com.google.common.truth.CustomSubjectBuilder.Factory
-
- CustomSubjectBuilder - Class in com.google.common.truth
-
In a fluent assertion chain, exposes one or more "custom"
that
methods, which accept a
value under test and return a
Subject
.
- CustomSubjectBuilder(FailureMetadata) - Constructor for class com.google.common.truth.CustomSubjectBuilder
-
Constructor for use by subclasses.
- CustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder> - Interface in com.google.common.truth
-
In a fluent assertion chain, the argument to the "custom" overload of
about
, the method that specifies
what kind of
Subject
to create.
- DefaultSubject - Class in com.google.common.truth
-
- displayingDiffsPairedBy(Function<? super M, ?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Specifies a way to pair up unexpected and missing elements in the message when an assertion
fails.
- displayingDiffsPairedBy(Function<? super M, ?>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Specifies a way to pair up unexpected and missing elements in the message when an assertion
fails.
- displayingDiffsPairedBy(Function<? super E, ? extends Object>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Specifies a way to pair up unexpected and missing elements in the message when an assertion
fails.
- displayingDiffsPairedBy(Function<? super A, ? extends Object>, Function<? super E, ? extends Object>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Specifies a way to pair up unexpected and missing elements in the message when an assertion
fails.
- doesNotContain(Object) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Checks (with a side-effect failure) that the subject does not contain the supplied item.
- doesNotContain(M) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosUsingCorrespondence
-
Checks that none of the actual elements correspond to the given element.
- doesNotContain(int) - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject contains the given element.
- doesNotContain(Object) - Method in class com.google.common.truth.IterableSubject
-
Checks (with a side-effect failure) that the subject does not contain the supplied item.
- doesNotContain(E) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
-
Checks that none of the actual elements correspond to the given element.
- doesNotContain(long) - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject contains the given element.
- doesNotContain(Object) - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject contains the given element.
- doesNotContain(CharSequence) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
-
Fails if the string contains the given sequence (while ignoring case).
- doesNotContain(CharSequence) - Method in class com.google.common.truth.StringSubject
-
Fails if the string contains the given sequence.
- doesNotContain(Object, Object) - Method in class com.google.common.truth.TableSubject
-
Fails if the table contains a mapping for the given row key and column key.
- doesNotContainCell(Object, Object, Object) - Method in class com.google.common.truth.TableSubject
-
Fails if the table contains the given cell.
- doesNotContainCell(Table.Cell<?, ?, ?>) - Method in class com.google.common.truth.TableSubject
-
Fails if the table contains the given cell.
- doesNotContainEntry(Object, long) - Method in class com.google.common.truth.AtomicLongMapSubject
-
- doesNotContainEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Fails if the map contains an entry with the given key and a value that corresponds to the given
value.
- doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map contains the given entry.
- doesNotContainEntry(Object, M) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Fails if the multimap contains an entry with the given key and a value that corresponds to the
given value.
- doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap contains the given entry.
- doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.MapSubject
-
Fails if the map contains the given entry.
- doesNotContainEntry(Object, E) - Method in class com.google.common.truth.MapSubject.UsingCorrespondence
-
Fails if the map contains an entry with the given key and a value that corresponds to the
given value.
- doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap contains the given entry.
- doesNotContainEntry(Object, E) - Method in class com.google.common.truth.MultimapSubject.UsingCorrespondence
-
Fails if the multimap contains an entry with the given key and a value that corresponds to
the given value.
- doesNotContainKey(Object) - Method in class com.google.common.truth.AtomicLongMapSubject
-
- doesNotContainKey(Object) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map contains the given key.
- doesNotContainKey(Object) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap contains the given key.
- doesNotContainKey(Object) - Method in class com.google.common.truth.MapSubject
-
Fails if the map contains the given key.
- doesNotContainKey(Object) - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap contains the given key.
- doesNotContainMatch(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
-
Fails if the string contains a match on the given regex.
- doesNotContainMatch(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
-
Fails if the string contains a match on the given regex.
- doesNotContainMatch(Pattern) - Method in class com.google.common.truth.StringSubject
-
Fails if the string contains a match on the given regex.
- doesNotContainMatch(String) - Method in class com.google.common.truth.StringSubject
-
Fails if the string contains a match on the given regex.
- doesNotMatch(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
-
Fails if the string matches the given regex.
- doesNotMatch(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
-
Fails if the string matches the given regex.
- doesNotMatch(String) - Method in class com.google.common.truth.StringSubject
-
Fails if the string matches the given regex.
- doesNotMatch(Pattern) - Method in class com.google.common.truth.StringSubject
-
Fails if the string matches the given regex.
- DoubleSubject - Class in com.google.common.truth
-
Propositions for
Double
subjects.
- DoubleSubject.TolerantDoubleComparison - Class in com.google.common.truth
-
A partially specified check about an approximate relationship to a double
subject using
a tolerance.
- ignoreCheck() - Method in class com.google.common.truth.Subject
-
Begins a new call chain that ignores any failures.
- ignoringCase() - Method in class com.google.common.truth.StringSubject
-
Returns a
StringSubject
-like instance that will ignore the case of the characters.
- ignoringExtraRepeatedFieldElements() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are
not found in the 'expected' proto are ignored, with the exception of fields in the expected
proto which are empty.
- ignoringExtraRepeatedFieldElements() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are
not found in the 'expected' proto are ignored, with the exception of fields in the expected
proto which are empty.
- ignoringExtraRepeatedFieldElements() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are
not found in the 'expected' proto are ignored, with the exception of fields in the expected
proto which are empty.
- ignoringExtraRepeatedFieldElements() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringExtraRepeatedFieldElementsForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are
not found in the 'expected' proto are ignored, with the exception of fields in the expected
proto which are empty.
- ignoringExtraRepeatedFieldElementsForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are
not found in the 'expected' proto are ignored, with the exception of fields in the expected
proto which are empty.
- ignoringExtraRepeatedFieldElementsForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are
not found in the 'expected' proto are ignored, with the exception of fields in the expected
proto which are empty.
- ignoringExtraRepeatedFieldElementsForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are
not found in the 'expected' proto are ignored, with the exception of fields in the expected
proto which are empty.
- ignoringFieldAbsence() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
- ignoringFieldAbsence() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
- ignoringFieldAbsence() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
- ignoringFieldAbsence() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringFieldAbsenceForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
- ignoringFieldAbsenceForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
- ignoringFieldAbsenceForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
- ignoringFieldAbsenceForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Specifies that the 'has' bit of individual fields should be ignored when comparing for
equality.
- ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.FieldScope
-
Returns a FieldScope
equivalent to this one, minus all fields matching the given Descriptors.FieldDescriptor
s.
- ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.FieldScope
-
Returns a FieldScope
equivalent to this one, minus all fields defined by the given
field numbers.
- ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
-
Returns a
FieldScope
which matches everything except the provided field descriptors for
the message.
- ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
-
Returns a
FieldScope
which matches everything except the provided field descriptors for
the message.
- ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptorsForValues(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFieldDescriptorsForValues(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Excludes all message fields matching the given Descriptors.FieldDescriptor
s from the comparison.
- ignoringFields(int, int...) - Method in class com.google.common.truth.extensions.proto.FieldScope
-
Returns a FieldScope
equivalent to this one, minus all fields defined by the given
field numbers.
- ignoringFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.FieldScope
-
Returns a FieldScope
equivalent to this one, minus all fields defined by the given
field numbers.
- ignoringFields(int, int...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
-
Returns a
FieldScope
which matches everything except the provided field numbers for the
top level message type.
- ignoringFields(Iterable<Integer>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
-
Returns a
FieldScope
which matches everything except the provided field numbers for the
top level message type.
- ignoringFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFields(int, int...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFields(int, int...) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFields(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFields(int, int...) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringFieldScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Excludes all specific field paths under the argument
FieldScope
from the comparison.
- ignoringFieldScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Excludes all specific field paths under the argument
FieldScope
from the comparison.
- ignoringFieldScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Excludes all specific field paths under the argument
FieldScope
from the comparison.
- ignoringFieldScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringFieldScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Excludes all specific field paths under the argument
FieldScope
from the comparison.
- ignoringFieldScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Excludes all specific field paths under the argument
FieldScope
from the comparison.
- ignoringFieldScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Excludes all specific field paths under the argument
FieldScope
from the comparison.
- ignoringFieldScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Excludes all specific field paths under the argument
FieldScope
from the comparison.
- ignoringFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFieldsForValues(int, int...) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFieldsForValues(Iterable<Integer>) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFieldsForValues(int, int...) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringFieldsForValues(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Excludes the top-level message fields with the given tag numbers from the comparison.
- ignoringRepeatedFieldOrder() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
-
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
- ignoringRepeatedFieldOrder() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
- ignoringRepeatedFieldOrder() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
- ignoringRepeatedFieldOrder() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- ignoringRepeatedFieldOrderForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
-
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
- ignoringRepeatedFieldOrderForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
- ignoringRepeatedFieldOrderForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
-
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
- ignoringRepeatedFieldOrderForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing
for equality.
- inOrder() - Method in interface com.google.common.truth.Ordered
-
An additional assertion, implemented by some containment subjects which allows for a further
constraint of orderedness.
- IntegerSubject - Class in com.google.common.truth
-
- IntegerSubject(FailureMetadata, Integer) - Constructor for class com.google.common.truth.IntegerSubject
-
Constructor for use by subclasses.
- internalCustomName() - Method in class com.google.common.truth.Subject
-
- intStreams() - Static method in class com.google.common.truth.IntStreamSubject
-
- IntStreamSubject - Class in com.google.common.truth
-
- invokeAssertion(SimpleSubjectBuilder<S, A>) - Method in interface com.google.common.truth.ExpectFailure.SimpleSubjectBuilderCallback
-
- invokeAssertion(StandardSubjectBuilder) - Method in interface com.google.common.truth.ExpectFailure.StandardSubjectBuilderCallback
-
- isAbsent() - Method in class com.google.common.truth.GuavaOptionalSubject
-
Fails if the
Optional
<T>
is present or the subject is null.
- isAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.Subject
-
Fails unless the subject is equal to any of the given elements.
- isAssignableTo(Class<?>) - Method in class com.google.common.truth.ClassSubject
-
Fails if this class or interface is not the same as or a subclass or subinterface of, the given
class or interface.
- isAtLeast(T) - Method in class com.google.common.truth.ComparableSubject
-
Checks that the subject is greater than or equal to other
.
- isAtMost(T) - Method in class com.google.common.truth.ComparableSubject
-
Checks that the subject is less than or equal to other
.
- isEmpty() - Method in class com.google.common.truth.AtomicLongMapSubject
-
- isEmpty() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Fails if the subject is not empty.
- isEmpty() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map is not empty.
- isEmpty() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap is not empty.
- isEmpty() - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject is not empty.
- isEmpty() - Method in class com.google.common.truth.IterableSubject
-
Fails if the subject is not empty.
- isEmpty() - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject is not empty.
- isEmpty() - Method in class com.google.common.truth.MapSubject
-
Fails if the map is not empty.
- isEmpty() - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap is not empty.
- isEmpty() - Method in class com.google.common.truth.OptionalDoubleSubject
-
- isEmpty() - Method in class com.google.common.truth.OptionalIntSubject
-
Fails if the
OptionalInt
is present or the subject is null.
- isEmpty() - Method in class com.google.common.truth.OptionalLongSubject
-
Fails if the
OptionalLong
is present or the subject is null.
- isEmpty() - Method in class com.google.common.truth.OptionalSubject
-
Fails if the
Optional
<T>
is present or the subject is null.
- isEmpty() - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject is not empty.
- isEmpty() - Method in class com.google.common.truth.StringSubject
-
Fails if the string is not equal to the zero-length "empty string."
- isEmpty() - Method in class com.google.common.truth.TableSubject
-
Fails if the table is not empty.
- isEqualTo(Object) - Method in class com.google.common.truth.AtomicLongMapSubject
-
- isEqualTo(Object) - Method in class com.google.common.truth.BigDecimalSubject
-
Fails if the subject's value and scale is not equal to the given
BigDecimal
.
- isEqualTo(Double) - Method in class com.google.common.truth.DoubleSubject
-
Asserts that the subject is exactly equal to the given value, with equality defined as by
Double#equals
.
- isEqualTo(SetMultimap<?, ?>) - Method in class com.google.common.truth.extensions.proto.ListMultimapWithProtoValuesSubject
-
- isEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
-
Checks whether the MessageLite is equivalent to the argument, using the standard equals()
implementation.
- isEqualTo(MessageLite.Builder) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
-
- isEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the subject is not equal to the given object.
- isEqualTo(Object) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Compares the subject of the assertion to expected
, using all of the rules specified by
earlier operations.
- isEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- isEqualTo(ListMultimap<?, ?>) - Method in class com.google.common.truth.extensions.proto.SetMultimapWithProtoValuesSubject
-
- isEqualTo(Float) - Method in class com.google.common.truth.FloatSubject
-
Asserts that the subject is exactly equal to the given value, with equality defined as by
Float#equals
.
- isEqualTo(SetMultimap<?, ?>) - Method in class com.google.common.truth.ListMultimapSubject
-
- isEqualTo(Object) - Method in class com.google.common.truth.MapSubject
-
Fails if the subject is not equal to the given object.
- isEqualTo(Object) - Method in class com.google.common.truth.MultimapSubject
-
- isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
-
A check that the actual array and
expected
are arrays of the same length and type,
containing elements such that each element in
expected
is equal to each element in the
actual array, and in the same position, with element equality defined the same way that
Arrays.equals(double[], double[])
and
Double.equals(Object)
define it (which is
different to the way that the
==
operator on primitive
double
defines it).
- isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
-
A check that the actual array and
expected
are arrays of the same length and type,
containing elements such that each element in
expected
is equal to each element in the
actual array, and in the same position, with element equality defined the same way that
Arrays.equals(float[], float[])
and
Float.equals(Object)
define it (which is different
to the way that the
==
operator on primitive
float
defines it).
- isEqualTo(ListMultimap<?, ?>) - Method in class com.google.common.truth.SetMultimapSubject
-
- isEqualTo(String) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
-
Fails if the subject is not equal to the given sequence (while ignoring case).
- isEqualTo(Object) - Method in class com.google.common.truth.Subject
-
Fails if the subject is not equal to the given object.
- isEqualToDefaultInstance() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
-
Checks whether the subject is a MessageLite
with no fields set.
- isEqualToIgnoringScale(BigDecimal) - Method in class com.google.common.truth.BigDecimalSubject
-
Fails if the subject's value is not equal to the value of the given
BigDecimal
.
- isEqualToIgnoringScale(String) - Method in class com.google.common.truth.BigDecimalSubject
-
Fails if the subject's value is not equal to the value of the
BigDecimal
created from
the expected string (i.e., fails if
actual.comparesTo(new BigDecimal(expected)) != 0
).
- isEqualToIgnoringScale(long) - Method in class com.google.common.truth.BigDecimalSubject
-
Fails if the subject's value is not equal to the value of the
BigDecimal
created from
the expected
long
(i.e., fails if
actual.comparesTo(new BigDecimal(expected)) !=
0
).
- isEquivalentAccordingToCompareTo(BigDecimal) - Method in class com.google.common.truth.BigDecimalSubject
-
Fails if the subject is not equivalent to the given value according to
Comparable.compareTo(T)
, (i.e., fails if
a.comparesTo(b) != 0
).
- isEquivalentAccordingToCompareTo(T) - Method in class com.google.common.truth.ComparableSubject
-
Checks that the subject is equivalent to
other
according to
Comparable.compareTo(T)
, (i.e., checks that
a.comparesTo(b) == 0
).
- isEquivalentAccordingToCompareTo(Double) - Method in class com.google.common.truth.DoubleSubject
-
- isEquivalentAccordingToCompareTo(Float) - Method in class com.google.common.truth.FloatSubject
-
- isEquivalentAccordingToCompareTo(Integer) - Method in class com.google.common.truth.IntegerSubject
-
- isEquivalentAccordingToCompareTo(Long) - Method in class com.google.common.truth.LongSubject
-
- isEquivalentAccordingToCompareTo(String) - Method in class com.google.common.truth.StringSubject
-
- isFalse() - Method in class com.google.common.truth.BooleanSubject
-
Fails if the subject is true or null
.
- isFinite() - Method in class com.google.common.truth.DoubleSubject
-
Asserts that the subject is finite, i.e.
- isFinite() - Method in class com.google.common.truth.FloatSubject
-
Asserts that the subject is finite, i.e.
- isGreaterThan(T) - Method in class com.google.common.truth.ComparableSubject
-
Checks that the subject is greater than other
.
- isIn(Range<T>) - Method in class com.google.common.truth.ComparableSubject
-
Checks that the subject is in range
.
- isIn(Iterable<?>) - Method in class com.google.common.truth.Subject
-
Fails unless the subject is equal to any element in the given iterable.
- isInstanceOf(Class<?>) - Method in class com.google.common.truth.Subject
-
Fails if the subject is not an instance of the given class.
- isLessThan(T) - Method in class com.google.common.truth.ComparableSubject
-
Checks that the subject is less than other
.
- isNaN() - Method in class com.google.common.truth.DoubleSubject
-
- isNaN() - Method in class com.google.common.truth.FloatSubject
-
- isNegativeInfinity() - Method in class com.google.common.truth.DoubleSubject
-
- isNegativeInfinity() - Method in class com.google.common.truth.FloatSubject
-
- isNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
-
- isNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.Subject
-
Fails if the subject is equal to any of the given elements.
- isNonZero() - Method in class com.google.common.truth.DoubleSubject
-
Asserts that the subject is a non-null value other than zero (i.e.
- isNonZero() - Method in class com.google.common.truth.FloatSubject
-
Asserts that the subject is a non-null value other than zero (i.e.
- isNotEmpty() - Method in class com.google.common.truth.AtomicLongMapSubject
-
- isNotEmpty() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Fails if the subject is empty.
- isNotEmpty() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
-
Fails if the map is empty.
- isNotEmpty() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
-
Fails if the multimap is empty.
- isNotEmpty() - Method in class com.google.common.truth.IntStreamSubject
-
Fails if the subject is empty.
- isNotEmpty() - Method in class com.google.common.truth.IterableSubject
-
Fails if the subject is empty.
- isNotEmpty() - Method in class com.google.common.truth.LongStreamSubject
-
Fails if the subject is empty.
- isNotEmpty() - Method in class com.google.common.truth.MapSubject
-
Fails if the map is empty.
- isNotEmpty() - Method in class com.google.common.truth.MultimapSubject
-
Fails if the multimap is empty.
- isNotEmpty() - Method in class com.google.common.truth.StreamSubject
-
Fails if the subject is empty.
- isNotEmpty() - Method in class com.google.common.truth.StringSubject
-
Fails if the string is equal to the zero-length "empty string."
- isNotEmpty() - Method in class com.google.common.truth.TableSubject
-
Fails if the table is empty.
- isNotEqualTo(Object) - Method in class com.google.common.truth.AtomicLongMapSubject
-
- isNotEqualTo(Double) - Method in class com.google.common.truth.DoubleSubject
-
Asserts that the subject is not exactly equal to the given value, with equality defined as by
Double#equals
.
- isNotEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
-
- isNotEqualTo(MessageLite.Builder) - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
-
- isNotEqualTo(Object) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
-
Compares the subject of the assertion to expected
, expecting a difference, using all of
the rules specified by earlier operations.
- isNotEqualTo(Object) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
-
- isNotEqualTo(Float) - Method in class com.google.common.truth.FloatSubject
-
Asserts that the subject is not exactly equal to the given value, with equality defined as by
Float#equals
.
- isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
-
A check that the actual array and
expected
are not arrays of the same length and type,
containing elements such that each element in
expected
is equal to each element in the
actual array, and in the same position, with element equality defined the same way that
Arrays.equals(double[], double[])
and
Double.equals(Object)
define it (which is
different to the way that the
==
operator on primitive
double
defines it).
- isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
-
A check that the actual array and
expected
are not arrays of the same length and type,
containing elements such that each element in
expected
is equal to each element in the
actual array, and in the same position, with element equality defined the same way that
Arrays.equals(float[], float[])
and
Float.equals(Object)
define it (which is different
to the way that the
==
operator on primitive
float
defines it).
- isNotEqualTo(String) - Method in class com.google.common.truth.StringSubject.CaseInsensitiveStringComparison
-
Fails if the subject is equal to the given string (while ignoring case).
- isNotEqualTo(Object) - Method in class com.google.common.truth.Subject
-
Fails if the subject is equal to the given object.
- isNotEqualToDefaultInstance() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
-
Checks whether the subject is not equivalent to a MessageLite
with no fields set.
- isNotIn(Range<T>) - Method in class com.google.common.truth.ComparableSubject
-
Checks that the subject is not in range
.
- isNotIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
-
- isNotIn(Iterable<?>) - Method in class com.google.common.truth.Subject
-
Fails if the subject is equal to any element in the given iterable.
- isNotInstanceOf(Class<?>) - Method in class com.google.common.truth.Subject
-
Fails if the subject is an instance of the given class.
- isNotNaN() - Method in class com.google.common.truth.DoubleSubject
-
- isNotNaN() - Method in class com.google.common.truth.FloatSubject
-
- isNotNull() - Method in class com.google.common.truth.Subject
-
Fails if the subject is null.
- isNotSameAs(Object) - Method in class com.google.common.truth.Subject
-
Fails if the subject is the same instance as the given object.
- isNotWithin(double) - Method in class com.google.common.truth.DoubleSubject
-
Prepares for a check that the subject is a finite number not within the given tolerance of an
expected value that will be provided in the next call in the fluent chain.
- isNotWithin(float) - Method in class com.google.common.truth.FloatSubject
-
Prepares for a check that the subject is a finite number not within the given tolerance of an
expected value that will be provided in the next call in the fluent chain.
- isNull() - Method in class com.google.common.truth.Subject
-
Fails if the subject is not null.
- isOrdered(Comparator<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Fails if the iterable is not ordered, according to the given comparator.
- isOrdered() - Method in class com.google.common.truth.IterableSubject
-
Fails if the iterable is not ordered, according to the natural ordering of its elements.
- isOrdered(Comparator<?>) - Method in class com.google.common.truth.IterableSubject
-
Fails if the iterable is not ordered, according to the given comparator.
- isPositiveInfinity() - Method in class com.google.common.truth.DoubleSubject
-
- isPositiveInfinity() - Method in class com.google.common.truth.FloatSubject
-
- isPresent() - Method in class com.google.common.truth.GuavaOptionalSubject
-
Fails if the
Optional
<T>
is absent or the subject is null.
- isPresent() - Method in class com.google.common.truth.OptionalDoubleSubject
-
- isPresent() - Method in class com.google.common.truth.OptionalIntSubject
-
Fails if the
OptionalInt
is empty or the subject is null.
- isPresent() - Method in class com.google.common.truth.OptionalLongSubject
-
- isPresent() - Method in class com.google.common.truth.OptionalSubject
-
Fails if the
Optional
<T>
is empty or the subject is null.
- isSameAs(Object) - Method in class com.google.common.truth.Subject
-
Fails if the subject is not the same instance as the given object.
- isStrictlyOrdered(Comparator<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
Fails if the iterable is not strictly ordered, according to the given comparator.
- isStrictlyOrdered() - Method in class com.google.common.truth.IterableSubject
-
Fails if the iterable is not strictly ordered, according to the natural ordering of its
elements.
- isStrictlyOrdered(Comparator<?>) - Method in class com.google.common.truth.IterableSubject
-
Fails if the iterable is not strictly ordered, according to the given comparator.
- isTrue() - Method in class com.google.common.truth.BooleanSubject
-
Fails if the subject is false or null
.
- isWithin(double) - Method in class com.google.common.truth.DoubleSubject
-
Prepares for a check that the subject is a finite number within the given tolerance of an
expected value that will be provided in the next call in the fluent chain.
- isWithin(float) - Method in class com.google.common.truth.FloatSubject
-
Prepares for a check that the subject is a finite number within the given tolerance of an
expected value that will be provided in the next call in the fluent chain.
- isZero() - Method in class com.google.common.truth.DoubleSubject
-
Asserts that the subject is zero (i.e.
- isZero() - Method in class com.google.common.truth.FloatSubject
-
Asserts that the subject is zero (i.e.
- IterableOfProtosFluentAssertion<M extends com.google.protobuf.Message> - Interface in com.google.common.truth.extensions.proto
-
Fluent API to perform detailed, customizable comparison of iterables of protocol buffers.
- IterableOfProtosSubject<S extends IterableOfProtosSubject<S,M,C>,M extends com.google.protobuf.Message,C extends Iterable<M>> - Class in com.google.common.truth.extensions.proto
-
Truth subject for the iterables of protocol buffers.
- IterableOfProtosSubject(FailureMetadata, C) - Constructor for class com.google.common.truth.extensions.proto.IterableOfProtosSubject
-
- IterableOfProtosSubject.IterableOfMessagesSubject<M extends com.google.protobuf.Message> - Class in com.google.common.truth.extensions.proto
-
- IterableOfProtosUsingCorrespondence<M extends com.google.protobuf.Message> - Interface in com.google.common.truth.extensions.proto
-
- IterableSubject - Class in com.google.common.truth
-
- IterableSubject(FailureMetadata, Iterable<?>) - Constructor for class com.google.common.truth.IterableSubject
-
Constructor for use by subclasses.
- IterableSubject.UsingCorrespondence<A,E> - Class in com.google.common.truth
-
A partially specified check in which the actual elements (normally the elements of the
Iterable
under test) are compared to expected elements using a
Correspondence
.