Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

about(SF) - Method in class com.google.common.truth.AbstractVerb
The recommended method of extension of Truth to new types, which is documented in com.google.common.truth.delegation.DelegationTest.
about(DelegatedVerbFactory<V>) - Method in class com.google.common.truth.AbstractVerb
A generic, advanced method of extension of Truth to new types, which is documented on DelegatedVerbFactory.
AbstractDelegatedVerb<V extends AbstractDelegatedVerb<V>> - Class in com.google.common.truth
An extendable type that allows plugin creators to define their own that() methods for the Truth SPI.
AbstractDelegatedVerb(FailureStrategy, DelegatedVerbFactory<V>) - Constructor for class com.google.common.truth.AbstractDelegatedVerb
 
AbstractFailureStrategy - Class in com.google.common.truth
AbstractFailureStrategy() - Constructor for class com.google.common.truth.AbstractFailureStrategy
 
AbstractVerb<T extends AbstractVerb<T>> - Class in com.google.common.truth
A parent type for some infrastructure used in the Verb.
AbstractVerb(FailureStrategy) - Constructor for class com.google.common.truth.AbstractVerb
 
AbstractVerb(FailureStrategy, String, Object...) - Constructor for class com.google.common.truth.AbstractVerb
 
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T> - Class in com.google.common.truth
A special Verb implementation which wraps a SubjectFactory
AbstractVerb.MessagePrependingFailureStrategy - Class in com.google.common.truth
 
actual() - Method in class com.google.common.truth.Subject
Returns the unedited, unformatted raw actual value.
actualAsString() - Method in class com.google.common.truth.Subject
Returns a string representation of the actual value.
actualCustomStringRepresentation() - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
 
actualCustomStringRepresentation() - Method in class com.google.common.truth.StreamSubject
 
actualCustomStringRepresentation() - Method in class com.google.common.truth.StringSubject
 
actualCustomStringRepresentation() - Method in class com.google.common.truth.Subject
Supplies the direct string representation of the actual value to other methods which may prefix or otherwise position it in an error message.
all() - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Returns a FieldScope which matches all fields without exception.
allowingFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Method in class com.google.common.truth.extensions.proto.FieldScope
Returns a FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptors.
allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Method in class com.google.common.truth.extensions.proto.FieldScope
Returns a FieldScope equivalent to this one, plus all fields matching the given Descriptors.FieldDescriptors.
allowingFieldDescriptors(Descriptors.FieldDescriptor, Descriptors.FieldDescriptor...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Returns a FieldScope which matches nothing except the provided field descriptors for the message.
allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Returns a FieldScope which matches nothing except the provided field descriptors for the message.
allowingFields(int, int...) - Method in class com.google.common.truth.extensions.proto.FieldScope
Returns a FieldScope equivalent to this one, plus all fields defined by the given field numbers.
allowingFields(Iterable<Integer>) - Method in class com.google.common.truth.extensions.proto.FieldScope
Returns a FieldScope equivalent to this one, plus all fields defined by the given field numbers.
allowingFields(int, int...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Returns a FieldScope which matches nothing except the provided field numbers for the top level message type.
allowingFields(Iterable<Integer>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Returns a FieldScope which matches nothing except the provided field numbers for the top level message type.
apply(Statement, Description) - Method in class com.google.common.truth.Expect
 
apply(Statement, Description) - Method in class com.google.common.truth.ExpectFailure
 
asList() - Method in class com.google.common.truth.ObjectArraySubject
 
asList() - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
 
asList() - Method in class com.google.common.truth.PrimitiveByteArraySubject
 
asList() - Method in class com.google.common.truth.PrimitiveCharArraySubject
 
asList() - Method in class com.google.common.truth.PrimitiveIntArraySubject
 
asList() - Method in class com.google.common.truth.PrimitiveLongArraySubject
 
asList() - Method in class com.google.common.truth.PrimitiveShortArraySubject
 
assert_() - Static method in class com.google.common.truth.Truth
 
assertAbout(SubjectFactory<S, T>) - Static method in class com.google.common.truth.Truth
The recommended method of extension of Truth to new types, which is documented in com.google.common.truth.delegation.DelegationTest.
assertAbout(DelegatedVerbFactory<V>) - Static method in class com.google.common.truth.Truth
A generic, advanced method of extension of Truth to new types, which is documented on DelegatedVerbFactory.
assertThat(MessageLite) - Static method in class com.google.common.truth.extensions.proto.LiteProtoTruth
 
assertThat(MessageLite) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Assert on a single MessageLite instance.
assertThat(Message) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Assert on a single Message instance.
assertThat(Iterable<M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Assert on a sequence of Messages.
assertThat(Map<K, M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Assert on a map with Message values.
assertThat(Multimap<K, M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Assert on a Multimap with Message values.
assertThat(ListMultimap<K, M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Assert on a ListMultimap with Message values.
assertThat(SetMultimap<K, M>) - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Assert on a Multimap with Message values.
assertThat(T) - Static method in class com.google.common.truth.Truth
 
assertThat(BigDecimal) - Static method in class com.google.common.truth.Truth
 
assertThat(Object) - Static method in class com.google.common.truth.Truth
 
assertThat(Class<?>) - Static method in class com.google.common.truth.Truth
 
assertThat(Throwable) - Static method in class com.google.common.truth.Truth
 
assertThat(Long) - Static method in class com.google.common.truth.Truth
 
assertThat(Double) - Static method in class com.google.common.truth.Truth
 
assertThat(Float) - Static method in class com.google.common.truth.Truth
 
assertThat(Integer) - Static method in class com.google.common.truth.Truth
 
assertThat(Boolean) - Static method in class com.google.common.truth.Truth
 
assertThat(String) - Static method in class com.google.common.truth.Truth
 
assertThat(Iterable<?>) - Static method in class com.google.common.truth.Truth
 
assertThat(SortedSet<?>) - Static method in class com.google.common.truth.Truth
 
assertThat(T[]) - Static method in class com.google.common.truth.Truth
 
assertThat(boolean[]) - Static method in class com.google.common.truth.Truth
 
assertThat(short[]) - Static method in class com.google.common.truth.Truth
 
assertThat(int[]) - Static method in class com.google.common.truth.Truth
 
assertThat(long[]) - Static method in class com.google.common.truth.Truth
 
assertThat(byte[]) - Static method in class com.google.common.truth.Truth
 
assertThat(char[]) - Static method in class com.google.common.truth.Truth
 
assertThat(float[]) - Static method in class com.google.common.truth.Truth
 
assertThat(double[]) - Static method in class com.google.common.truth.Truth
 
assertThat(Optional<?>) - Static method in class com.google.common.truth.Truth
 
assertThat(Map<?, ?>) - Static method in class com.google.common.truth.Truth
 
assertThat(SortedMap<?, ?>) - Static method in class com.google.common.truth.Truth
 
assertThat(Multimap<?, ?>) - Static method in class com.google.common.truth.Truth
 
assertThat(ListMultimap<?, ?>) - Static method in class com.google.common.truth.Truth
 
assertThat(SetMultimap<?, ?>) - Static method in class com.google.common.truth.Truth
 
assertThat(Multiset<?>) - Static method in class com.google.common.truth.Truth
 
assertThat(Table<?, ?, ?>) - Static method in class com.google.common.truth.Truth
 
assertThat(AtomicLongMap<?>) - Static method in class com.google.common.truth.Truth
 
assertThat(Optional<?>) - Static method in class com.google.common.truth.Truth8
 
assertThat(OptionalInt) - Static method in class com.google.common.truth.Truth8
 
assertThat(OptionalLong) - Static method in class com.google.common.truth.Truth8
 
assertThat(OptionalDouble) - Static method in class com.google.common.truth.Truth8
 
assertThat(Stream<?>) - Static method in class com.google.common.truth.Truth8
 
assertWithMessage(String) - Static method in class com.google.common.truth.Truth
Returns a TestVerb that will prepend the given message to the failure message in the event of a test failure.
assertWithMessage(String, Object...) - Static method in class com.google.common.truth.Truth
Returns a TestVerb that will prepend the formatted message using the specified arguments to the failure message in the event of a test failure.
assume() - Static method in class com.google.common.truth.TruthJUnit
 
AtomicLongMapSubject - Class in com.google.common.truth
Propositions for AtomicLongMap subjects.

B

BigDecimalSubject - Class in com.google.common.truth
Propositions for BigDecimal typed subjects.
BooleanSubject - Class in com.google.common.truth
Propositions for boolean subjects.

C

check() - Method in class com.google.common.truth.Subject
A convenience for implementers of Subject subclasses to use other truth Subject wrappers within their own propositional logic.
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
Custom subjects for testing Protocol Buffer instances.
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
Propositions for Comparable typed subjects.
ComparableSubject(FailureStrategy, T) - Constructor for class com.google.common.truth.ComparableSubject
 
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 test proposition 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 test proposition in which the actual elements (i.e.
comparingValuesUsing(Correspondence<A, E>) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
Starts a method chain for a test proposition 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 test proposition 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 test proposition 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 test proposition in which the actual values (i.e.
contains(M) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that the subject contains at least one element that corresponds to the given expected element.
contains(Object) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests (with a side-effect failure) that the subject contains the supplied item.
contains(Object) - Method in class com.google.common.truth.IterableSubject
Attests (with a side-effect failure) that the subject contains the supplied item.
contains(E) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
Attests that the subject contains at least one element that corresponds to the given expected 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
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<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that the subject contains elements that corresponds to all of the expected elements, i.e.
containsAllIn(Iterable<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests that the actual iterable contains at least all of the expected elements or fails.
containsAllIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests 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
Attests that the subject contains elements that corresponds to all of the expected elements, i.e.
containsAllIn(Iterable<?>) - Method in class com.google.common.truth.StreamSubject
Fails if the subject does not contain all of the given elements.
containsAllOf(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that the subject contains elements that corresponds to all of the expected elements, i.e.
containsAllOf(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests that the actual iterable contains at least all of the expected elements or fails.
containsAllOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
Attests 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
Attests that the subject contains elements that corresponds to all of the expected elements, i.e.
containsAllOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
As #containsAllOf(Number, Number, Number...) but taking a primitive double array.
containsAllOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
As #containsAllOf(Number, Number, Number...) but taking a primitive float array.
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<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests 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.extensions.proto.IterableOfProtosSubject
Attests that the subject contains at least one of the objects contained in the provided collection or fails.
containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests that the subject contains at least one of the objects contained in the provided collection or fails.
containsAnyIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
Attests 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.StreamSubject
Fails if the subject does not contain at least one of the given elements.
containsAnyOf(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that the subject contains at least one element that corresponds to at least one of the expected elements.
containsAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests that the subject contains at least one of the provided objects or fails.
containsAnyOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
Attests 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
Attests that the subject contains at least one element that corresponds to at least one of the expected elements.
containsAnyOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
As #containsAnyOf(Number, Number, Number...) but taking a primitive double array.
containsAnyOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
As #containsAnyOf(Number, Number, Number...) but taking a primitive float array.
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
Fails if the AtomicLongMap does not contain the given entry.
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(M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
containsExactly(Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests that a subject contains exactly the provided objects or fails.
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(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(Object...) - Method in class com.google.common.truth.IterableSubject
Attests that a subject contains exactly the provided objects or fails.
containsExactly(E...) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
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(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(Multimap<?, ?>) - Method in class com.google.common.truth.MultimapSubject
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(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
As #containsExactly(Number...) but taking a primitive double array.
containsExactly(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
As #containsExactly(Number...) but taking a primitive float array.
containsExactly(Object...) - Method in class com.google.common.truth.StreamSubject
Fails if the subject does not contain exactly the given elements.
containsExactlyElementsIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests that a subject contains exactly the provided objects or fails.
containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests that a subject contains exactly the provided objects or fails.
containsExactlyElementsIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
Attests that subject contains exactly elements that correspond to the expected elements, i.e.
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
Fails if the AtomicLongMap does not contain the given key.
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
Attests that the subject does not contain duplicate elements.
containsNoDuplicates() - Method in class com.google.common.truth.IterableSubject
Attests that the subject does not contain duplicate elements.
containsNoDuplicates() - Method in class com.google.common.truth.StreamSubject
Fails if the subject contains duplicate elements.
containsNoneIn(Iterable<? extends M>) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that the subject contains no elements that correspond to any of the given elements.
containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests that a actual iterable contains none of the elements contained in the excluded iterable or fails.
containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests that a actual iterable contains none of the elements contained in the excluded iterable or fails.
containsNoneIn(Iterable<? extends E>) - Method in class com.google.common.truth.IterableSubject.UsingCorrespondence
Attests that the subject contains no elements that correspond to 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(M, M, M...) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that the subject contains no elements that correspond to any of the given elements.
containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests that a actual iterable contains none of the excluded objects or fails.
containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
Attests 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
Attests that the subject contains no elements that correspond to any of the given elements.
containsNoneOf(double[]) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
As #containsNoneOf(Number, Number, Number...) but taking a primitive double array.
containsNoneOf(float[]) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
As #containsNoneOf(Number, Number, Number...) but taking a primitive float array.
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
 
create(Expect.ExpectationGatherer) - Static method in class com.google.common.truth.Expect
 
createAndEnableStackTrace() - Static method in class com.google.common.truth.Expect
 
createVerb(FailureStrategy) - Method in interface com.google.common.truth.DelegatedVerbFactory
Instantiates a new V with failureStrategy and itself.

D

DefaultSubject - Class in com.google.common.truth
 
DefaultSubject(FailureStrategy, Object) - Constructor for class com.google.common.truth.DefaultSubject
 
DelegatedVerb(FailureStrategy, SubjectFactory<S, T>) - Constructor for class com.google.common.truth.AbstractVerb.DelegatedVerb
 
DelegatedVerbFactory<V extends AbstractDelegatedVerb<V>> - Interface in com.google.common.truth
A generic version of SubjectFactory which defines its own verb type.
doesNotContain(M) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Attests that none of the actual elements correspond to the given element.
doesNotContain(Object) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Attests (with a side-effect failure) that the subject does not contain the supplied item.
doesNotContain(Object) - Method in class com.google.common.truth.IterableSubject
Attests (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
Attests that none of the actual elements correspond to 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
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
Fails if the AtomicLongMap contains the given entry.
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
Fails if the AtomicLongMap contains the given key.
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 proposition about an approximate relationship to a double subject using a tolerance.

E

endsWith(String) - Method in class com.google.common.truth.StringSubject
Fails if the string does not end with the given string.
equals(Object) - Method in class com.google.common.truth.Correspondence
Deprecated.
Object.equals(Object) is not supported. If you meant to compare objects using this Correspondence, use Correspondence.compare(A, E).
equals(Object) - Method in class com.google.common.truth.DoubleSubject.TolerantDoubleComparison
Deprecated.
Object.equals(Object) is not supported on TolerantDoubleComparison. If you meant to compare doubles, use DoubleSubject.TolerantDoubleComparison.of(double) instead.
equals(Object) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Deprecated.
Do not call equals() on a IterableOfProtosFluentAssertion.
equals(Object) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
Deprecated.
Do not call equals() on a MapWithProtoValuesFluentAssertion.
equals(Object) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
Deprecated.
Do not call equals() on a MultimapWithProtoValuesFluentAssertion.
equals(Object) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
Deprecated.
Do not call equals() on a ProtoFluentAssertion. Use ProtoFluentAssertion.isEqualTo(Object) instead.
equals(Object) - Method in class com.google.common.truth.FloatSubject.TolerantFloatComparison
Deprecated.
Object.equals(Object) is not supported on TolerantFloatComparison. If you meant to compare floats, use FloatSubject.TolerantFloatComparison.of(float) instead.
equals(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison
equals(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison
equals(Object) - Method in class com.google.common.truth.Subject
Deprecated.
Object.equals(Object) is not supported on Truth subjects. If you meant to test object equality between an expected and the actual value, use Subject.isEqualTo(Object) instead.
equalWithinTolerance(double, double, double) - Static method in class com.google.common.truth.MathUtil
Returns true iff left and right are finite values within tolerance of each other.
equalWithinTolerance(float, float, float) - Static method in class com.google.common.truth.MathUtil
Returns true iff left and right are finite values within tolerance of each other.
Expect - Class in com.google.common.truth
 
Expect.ExpectationGatherer - Class in com.google.common.truth
 
ExpectationGatherer() - Constructor for class com.google.common.truth.Expect.ExpectationGatherer
 
ExpectationGatherer(boolean) - Constructor for class com.google.common.truth.Expect.ExpectationGatherer
 
ExpectFailure - Class in com.google.common.truth
An assertion strategy that expects the given assertion to fail, and captures the failure rather than throwing it.
ExpectFailure() - Constructor for class com.google.common.truth.ExpectFailure
 
expectFailure(ExpectFailure.AssertionCallback) - Static method in class com.google.common.truth.ExpectFailure
Static alternative that directly returns the triggered failure.
ExpectFailure.AssertionCallback - Interface in com.google.common.truth
A "functional interface" for expectFailure() to invoke and capture failures.
ExpectFailure.DelegatedAssertionCallback<S extends Subject<S,D>,D> - Interface in com.google.common.truth
A "functional interface" for expectFailureAbout() to invoke and capture failures.
expectFailureAbout(SubjectFactory<S, D>, ExpectFailure.DelegatedAssertionCallback<S, D>) - Static method in class com.google.common.truth.ExpectFailure
Static alternative that directly returns the triggered failure.

F

Factory() - Constructor for class com.google.common.truth.extensions.proto.LiteProtoSubject.Factory
 
fail(String) - Method in class com.google.common.truth.AbstractFailureStrategy
 
fail() - Method in class com.google.common.truth.AbstractVerb
Triggers the failure strategy with an empty failure message
fail(String, Object...) - Method in class com.google.common.truth.AbstractVerb
Triggers the failure strategy with the given failure message
fail(String) - Method in class com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
 
fail(String, Throwable) - Method in class com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
 
fail(String, Throwable) - Method in class com.google.common.truth.Expect.ExpectationGatherer
 
fail(String) - Method in class com.google.common.truth.FailureStrategy
Report an assertion failure with a text message.
fail(String, Throwable) - Method in class com.google.common.truth.FailureStrategy
Report an assertion failure with a text message and a throwable that indicates the cause of the failure.
fail(String) - Method in class com.google.common.truth.Subject
Reports a failure constructing a message from a simple verb.
fail(String, Object) - Method in class com.google.common.truth.Subject
Assembles a failure message and passes such to the FailureStrategy.
fail(String, Object...) - Method in class com.google.common.truth.Subject
Assembles a failure message and passes such to the FailureStrategy
failComparing(String, CharSequence, CharSequence) - Method in class com.google.common.truth.AbstractFailureStrategy
 
failComparing(String, CharSequence, CharSequence, Throwable) - Method in class com.google.common.truth.AbstractFailureStrategy
 
failComparing(String, CharSequence, CharSequence) - Method in class com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
 
failComparing(String, CharSequence, CharSequence, Throwable) - Method in class com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
 
failComparing(String, CharSequence, CharSequence, Throwable) - Method in class com.google.common.truth.Expect.ExpectationGatherer
 
failComparing(String, CharSequence, CharSequence) - Method in class com.google.common.truth.FailureStrategy
Convenience method to report string-comparison failures with more detail (e.g.
failComparing(String, CharSequence, CharSequence, Throwable) - Method in class com.google.common.truth.FailureStrategy
Convenience method to report string-comparison failures with more detail (e.g.
FailureContext - Class in com.google.common.truth
An abstract type which holds a context message and formats it on demand.
FailureContext(String, Object...) - Constructor for class com.google.common.truth.FailureContext
 
failureStrategy - Variable in class com.google.common.truth.AbstractDelegatedVerb
 
FailureStrategy - Class in com.google.common.truth
A FailureStrategy defines how assertion failures are handled.
FailureStrategy() - Constructor for class com.google.common.truth.FailureStrategy
 
failureStrategy - Variable in class com.google.common.truth.Subject
 
failWithBadResults(String, Object, String, Object) - Method in class com.google.common.truth.Subject
Assembles a failure message and passes it to the FailureStrategy
failWithBadResultsAndSuffix(String, Object, String, Object, String) - Method in class com.google.common.truth.IterableSubject
Fails with the bad results and a suffix.
failWithCustomSubject(String, Object, Object) - Method in class com.google.common.truth.Subject
Assembles a failure message with an alternative representation of the wrapped subject and passes it to the FailureStrategy
failWithoutActual(String) - Method in class com.google.common.truth.Subject
Assembles a failure message without a given subject and passes it to the FailureStrategy
failWithoutSubject(String) - Method in class com.google.common.truth.Subject
failWithRawMessage(String, Object...) - Method in class com.google.common.truth.Subject
Passes through a failure message verbatim.
FieldScope - Class in com.google.common.truth.extensions.proto
An immutable, abstract representation of a set of specific field paths.
FieldScopes - Class in com.google.common.truth.extensions.proto
Factory class for FieldScope instances.
FloatSubject - Class in com.google.common.truth
Propositions for Float subjects.
FloatSubject.TolerantFloatComparison - Class in com.google.common.truth
A partially specified proposition about an approximate relationship to a float subject using a tolerance.
fromSetFields(Message) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Returns a FieldScope which is constrained to precisely those specific field paths that are explicitly set in the message.
fromSetFields(Message, Message, Message...) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Creates a FieldScope covering the fields set in every message in the provided list of messages, with the same semantics as in FieldScopes.fromSetFields(Message).
fromSetFields(Iterable<? extends Message>) - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Creates a FieldScope covering the fields set in every message in the provided list of messages, with the same semantics as in FieldScopes.fromSetFields(Message).

G

getDisplaySubject() - Method in class com.google.common.truth.Subject
Deprecated.
Prefer #actualAsString() for display-formatted access to the subject.
getFailure() - Method in class com.google.common.truth.ExpectFailure
Returns the captured failure, if one occurred.
getFailureMessage() - Method in class com.google.common.truth.FailureContext
 
getFailureStrategy() - Method in class com.google.common.truth.AbstractVerb
 
getFailureStrategy() - Method in class com.google.common.truth.Expect
 
getMessages() - Method in class com.google.common.truth.Expect.ExpectationGatherer
 
getSubject() - Method in class com.google.common.truth.Subject
Deprecated.
Prefer #actual() for direct access to the subject.
getSubject(FailureStrategy, T) - Method in class com.google.common.truth.SubjectFactory
 
getTrimmedDisplaySubject() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
 
GuavaOptionalSubject - Class in com.google.common.truth
Propositions for Guava Optional subjects.

H

hasAllRequiredFields() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
Checks whether the subject has all required fields set.
hasAllRequiredFields() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
 
hasCauseThat() - Method in class com.google.common.truth.ThrowableSubject
Returns a new ThrowableSubject that supports assertions on this throwable's direct cause.
hasCount(Object, int) - Method in class com.google.common.truth.MultisetSubject
Fails if the element does not have the given count.
hasFailureMessage() - Method in class com.google.common.truth.FailureContext
 
hasFailures() - Method in class com.google.common.truth.Expect
 
hasFirstElement(Object) - Method in class com.google.common.truth.SortedSetSubject
Fails if the subject does not have the given first element.
hasFirstEntry(Object, Object) - Method in class com.google.common.truth.SortedMapSubject
Fails if the map's first key/value pair is not equal to the given entry.
hasFirstKey(Object) - Method in class com.google.common.truth.SortedMapSubject
Fails if the map's first key is not equal to the given key.
hashCode() - Method in class com.google.common.truth.Correspondence
Deprecated.
Object.hashCode() is not supported.
hashCode() - Method in class com.google.common.truth.DoubleSubject.TolerantDoubleComparison
Deprecated.
Object.hashCode() is not supported on TolerantDoubleComparison
hashCode() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Deprecated.
IterableOfProtosFluentAssertion does not support hashCode().
hashCode() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
Deprecated.
MapWithProtoValuesFluentAssertion does not support hashCode().
hashCode() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
Deprecated.
MultimapWithProtoValuesFluentAssertion does not support hashCode().
hashCode() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
Deprecated.
ProtoFluentAssertion does not support hashCode(). Use ProtoFluentAssertion.isEqualTo(Object) for testing.
hashCode() - Method in class com.google.common.truth.FloatSubject.TolerantFloatComparison
Deprecated.
Object.hashCode() is not supported on TolerantFloatComparison
hashCode() - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison
Deprecated.
Object.hashCode() is not supported on TolerantPrimitiveDoubleArrayComparison
hashCode() - Method in class com.google.common.truth.PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison
Deprecated.
Object.hashCode() is not supported on TolerantPrimitiveFloatArrayComparison
hashCode() - Method in class com.google.common.truth.Subject
Deprecated.
Object.hashCode() is not supported on Truth subjects.
hasLastElement(Object) - Method in class com.google.common.truth.SortedSetSubject
Fails if the subject does not have the given last element.
hasLastEntry(Object, Object) - Method in class com.google.common.truth.SortedMapSubject
Fails if the map's last key/value pair is not equal to the given entry.
hasLastKey(Object) - Method in class com.google.common.truth.SortedMapSubject
Fails if the map's last key is not equal to the given key.
hasLength(int) - Method in class com.google.common.truth.StringSubject
Fails if the string does not have the given length.
hasMessage(String) - Method in class com.google.common.truth.ThrowableSubject
Deprecated.
Use hasMessageThat().isEqualTo(expected) instead. You may also consider using inexact matching of the message (e.g. hasMessageThat().contains(substring)) for less brittle tests.
hasMessageThat() - Method in class com.google.common.truth.ThrowableSubject
Returns a StringSubject to make assertions about the throwable's message.
hasSize(int) - Method in class com.google.common.truth.AtomicLongMapSubject
Fails if the AtomicLongMap does not have the given size.
hasSize(int) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Fails if the subject does not have the given size.
hasSize(int) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
Fails if the map does not have the given size.
hasSize(int) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
Fails if the multimap does not have the given size.
hasSize(int) - Method in class com.google.common.truth.IterableSubject
Fails if the subject does not have the given size.
hasSize(int) - Method in class com.google.common.truth.MapSubject
Fails if the map does not have the given size.
hasSize(int) - Method in class com.google.common.truth.MultimapSubject
Fails if the multimap does not have the given size.
hasSize(int) - Method in class com.google.common.truth.StreamSubject
Fails if the subject does not have the given size.
hasSize(int) - Method in class com.google.common.truth.TableSubject
Fails if the table does not have the given size.
hasSum(long) - Method in class com.google.common.truth.AtomicLongMapSubject
Fails if the AtomicLongMap does not have the given sum.
hasValue(Object) - Method in class com.google.common.truth.GuavaOptionalSubject
Fails if the Optional<T> does not have the given value or the subject is null.
hasValue(double) - Method in class com.google.common.truth.OptionalDoubleSubject
Fails if the OptionalDouble does not have the given value or the subject is null.
hasValue(int) - Method in class com.google.common.truth.OptionalIntSubject
Fails if the OptionalInt does not have the given value or the subject is null.
hasValue(long) - Method in class com.google.common.truth.OptionalLongSubject
Fails if the OptionalLong does not have the given value or the subject is null.
hasValue(Object) - Method in class com.google.common.truth.OptionalSubject
Fails if the Optional<T> does not have the given value or the subject is null.
hasValuesNotWithin(double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
Deprecated.
Write a for loop over the values looking for mismatches (see this implementation for an example)
hasValuesNotWithin(float) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
Deprecated.
Write a for loop over the values looking for mismatches (see this implementation for an example)
hasValuesWithin(double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
Deprecated.
Use PrimitiveDoubleArraySubject.usingTolerance(double), e.g. assertThat(doubleArray).usingTolerance(1e-5).containsExactly(1.2, 3.4, 5.6).inOrder();
hasValuesWithin(float) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
Deprecated.
Use PrimitiveFloatArraySubject.usingTolerance(double), e.g. assertThat(floatArray).usingTolerance(1e-5).containsExactly(1.2f, 3.4f, 5.6f).inOrder();
hasValueThat() - Method in class com.google.common.truth.OptionalDoubleSubject
Prepares for a check regarding the value contained within the OptionalDouble.
hasValueThat() - Method in class com.google.common.truth.OptionalIntSubject
Prepares for a check regarding the value contained within the OptionalInt.
hasValueThat() - Method in class com.google.common.truth.OptionalLongSubject
Prepares for a check regarding the value contained within the OptionalLong.

I

ignoreCheck() - Method in class com.google.common.truth.Subject
A convenience for implementers of Subject subclasses that use other truth Subject wrappers within their own propositional logic and sometimes need to short-circuit those subjects because the assertion chain has already failed.
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.FieldDescriptors.
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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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.FieldDescriptors 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
Propositions for Integer subjects.
IntegerSubject(FailureStrategy, Integer) - Constructor for class com.google.common.truth.IntegerSubject
 
internalCustomName() - Method in class com.google.common.truth.Subject
An internal method used to obtain the value set by Subject.named(String, Object...).
invokeAssertion(TestVerb) - Method in interface com.google.common.truth.ExpectFailure.AssertionCallback
 
invokeAssertion(AbstractVerb.DelegatedVerb<S, D>) - Method in interface com.google.common.truth.ExpectFailure.DelegatedAssertionCallback
 
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
Fails if the subject is less than the given value.
isAtMost(T) - Method in class com.google.common.truth.ComparableSubject
Fails if the subject is greater than the given value.
isEmpty() - Method in class com.google.common.truth.AtomicLongMapSubject
Fails if the AtomicLongMap is not empty.
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.IterableSubject
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
Fails if the OptionalDouble is present or the subject is null.
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
Deprecated.
AtomicLongMap does not define equality (i.e., it does not implement equals()), so you probably don't want to call this method. Instead, perform your assertion on the map view (e.g., assertThat(atomicLongMap.asMap()).isEqualTo(EXPECTED_MAP)).
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 .
isEqualTo(SetMultimap<?, ?>) - Method in class com.google.common.truth.extensions.proto.ListMultimapWithProtoValuesSubject
Deprecated.
#isEqualTo A SetMultimap can never compare equal with a ListMultimap if either Multimap is non-empty, because Set and List can never compare equal. Prefer MultimapWithProtoValuesSubject.containsExactlyEntriesIn( com.google.common.collect.Multimap) instead. Consult Multimap.equals(java.lang.Object) for more information.
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
Deprecated.
A Builder can never compare equal to a MessageLite instance. Use build(), or buildPartial() on the argument to get a MessageLite for comparison instead.
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
Deprecated.
#isEqualTo A ListMultimap can never compare equal with a SetMultimap if either Multimap is non-empty, because List and Set can never compare equal. Prefer MultimapSubject.containsExactlyEntriesIn(com.google.common.collect.Multimap) instead. Consult Multimap.equals(java.lang.Object) for more information.
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 .
isEqualTo(SetMultimap<?, ?>) - Method in class com.google.common.truth.ListMultimapSubject
Deprecated.
#isEqualTo A SetMultimap can never compare equal with a ListMultimap if either Multimap is non-empty, because Set and List can never compare equal. Prefer MultimapSubject.containsExactlyEntriesIn(com.google.common.collect.Multimap) instead. Consult Multimap.equals(java.lang.Object) for more information.
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.ObjectArraySubject
A proposition that the provided Object[] is an array of the same length and type, and contains elements such that each element in expected is equal to each element in the subject, and in the same position.
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
A proposition 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.
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveByteArraySubject
A proposition 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.
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveCharArraySubject
A proposition 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.
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
A proposition 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, double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
Deprecated.
use usingTolerance(someTolerance).containsExactly(someValues).inOrder(), noting the different behaviour for non-finite values
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
A proposition 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(Object, float) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
Deprecated.
use usingTolerance(someTolerance).containsExactly(someValues).inOrder(), noting the different behaviour for non-finite values
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveIntArraySubject
A proposition 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.
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveLongArraySubject
A proposition 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.
isEqualTo(Object) - Method in class com.google.common.truth.PrimitiveShortArraySubject
A proposition 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.
isEqualTo(ListMultimap<?, ?>) - Method in class com.google.common.truth.SetMultimapSubject
Deprecated.
#isEqualTo A ListMultimap can never compare equal with a SetMultimap if either Multimap is non-empty, because List and Set can never compare equal. Prefer MultimapSubject.containsExactlyEntriesIn(com.google.common.collect.Multimap) instead. Consult Multimap.equals(java.lang.Object) for more information.
isEqualTo(Object) - Method in class com.google.common.truth.StringSubject
 
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
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(Double) - Method in class com.google.common.truth.DoubleSubject
Deprecated.
Use DoubleSubject.isWithin(double) or DoubleSubject.isEqualTo(java.lang.Double) instead (see documentation for advice).
isEquivalentAccordingToCompareTo(Float) - Method in class com.google.common.truth.FloatSubject
Deprecated.
Use FloatSubject.isWithin(float) or FloatSubject.isEqualTo(java.lang.Float) instead (see documentation for advice).
isEquivalentAccordingToCompareTo(Integer) - Method in class com.google.common.truth.IntegerSubject
Deprecated.
Use Subject.isEqualTo(java.lang.Object) instead. Integer comparison is consistent with equality.
isEquivalentAccordingToCompareTo(Long) - Method in class com.google.common.truth.LongSubject
Deprecated.
Use Subject.isEqualTo(java.lang.Object) instead. Long comparison is consistent with equality.
isEquivalentAccordingToCompareTo(String) - Method in class com.google.common.truth.StringSubject
Deprecated.
Use StringSubject.isEqualTo(java.lang.Object) instead. String comparison is consistent with equality.
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
Fails if the subject is not greater than the given value.
isIn(Range<T>) - Method in class com.google.common.truth.ComparableSubject
Fails if the subject is not in the given 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
Fails if the subject is not less than the given value.
isNaN() - Method in class com.google.common.truth.DoubleSubject
Asserts that the subject is Double.NaN.
isNaN() - Method in class com.google.common.truth.FloatSubject
Asserts that the subject is Float.NaN.
isNegativeInfinity() - Method in class com.google.common.truth.DoubleSubject
Asserts that the subject is Double.NEGATIVE_INFINITY.
isNegativeInfinity() - Method in class com.google.common.truth.FloatSubject
Asserts that the subject is Float.NEGATIVE_INFINITY.
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
Fails if the AtomicLongMap is empty.
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.IterableSubject
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
Deprecated.
AtomicLongMap does not define equality (i.e., it does not implement equals()), so you probably don't want to call this method. Instead, perform your assertion on the map view (e.g., assertThat(atomicLongMap.asMap()).isNotEqualTo(UNEXPECTED_MAP)).
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 .
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
Deprecated.
A Builder will never compare equal to a MessageLite instance. Use build(), or buildPartial() on the argument to get a MessageLite for comparison instead.
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 .
isNotEqualTo(Object) - Method in class com.google.common.truth.ObjectArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
A proposition 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.
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveByteArraySubject
A proposition 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.
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveCharArraySubject
A proposition 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.
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
A proposition 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, double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
Deprecated.
Write a for loop over the values looking for mismatches (see this implementation for an example)
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
A proposition 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(Object, float) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
Deprecated.
Write a for loop over the values looking for mismatches (see this implementation for an example)
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveIntArraySubject
A proposition 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.
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveLongArraySubject
A proposition 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.
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveShortArraySubject
A proposition 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.
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
Fails if the subject is in the given range.
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
Asserts that the subject is a non-null value other than Double.NaN (but it may be Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY).
isNotNaN() - Method in class com.google.common.truth.FloatSubject
Asserts that the subject is a non-null value other than Float.NaN (but it may be Float.POSITIVE_INFINITY or Float.NEGATIVE_INFINITY).
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.StringSubject
Fails if the string is not null.
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.
isPartiallyOrdered() - Method in class com.google.common.truth.IterableSubject
Deprecated.
isPartiallyOrdered(Comparator<?>) - Method in class com.google.common.truth.IterableSubject
Deprecated.
isPositiveInfinity() - Method in class com.google.common.truth.DoubleSubject
Asserts that the subject is Double.POSITIVE_INFINITY.
isPositiveInfinity() - Method in class com.google.common.truth.FloatSubject
Asserts that the subject is Float.POSITIVE_INFINITY.
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
Fails if the OptionalDouble is empty or the subject is null.
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
Fails if the OptionalLong is empty or the subject is null.
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(FailureStrategy, 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
Default implementation of IterableOfProtosSubject.
IterableSubject - Class in com.google.common.truth
Propositions for Iterable subjects.
IterableSubject(FailureStrategy, Iterable<?>) - Constructor for class com.google.common.truth.IterableSubject
 
IterableSubject.UsingCorrespondence<A,E> - Class in com.google.common.truth
A partially specified proposition in which the actual elements (normally the elements of the Iterable under test) are compared to expected elements using a Correspondence.

L

ListMultimapSubject - Class in com.google.common.truth
Type-specific extensions of Multimap subjects for ListMultimap subjects.
ListMultimapWithProtoValuesSubject<S extends ListMultimapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends com.google.common.collect.ListMultimap<K,M>> - Class in com.google.common.truth.extensions.proto
ListMultimapWithProtoValuesSubject(FailureStrategy, C) - Constructor for class com.google.common.truth.extensions.proto.ListMultimapWithProtoValuesSubject
 
ListMultimapWithProtoValuesSubject.ListMultimapWithMessageValuesSubject<K,M extends com.google.protobuf.Message> - Class in com.google.common.truth.extensions.proto
Default implementation of ListMultimapWithProtoValuesSubject.
listRepresentation() - Method in class com.google.common.truth.ObjectArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveByteArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveCharArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveFloatArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveIntArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveLongArraySubject
 
listRepresentation() - Method in class com.google.common.truth.PrimitiveShortArraySubject
 
liteProtos() - Static method in class com.google.common.truth.extensions.proto.LiteProtoTruth
 
LiteProtoSubject<S extends LiteProtoSubject<S,M>,M extends com.google.protobuf.MessageLite> - Class in com.google.common.truth.extensions.proto
Truth subjects for the Lite version of Protocol Buffers.
LiteProtoSubject(FailureStrategy, M) - Constructor for class com.google.common.truth.extensions.proto.LiteProtoSubject
 
LiteProtoSubject.Factory<S extends LiteProtoSubject<S,M>,M extends com.google.protobuf.MessageLite> - Class in com.google.common.truth.extensions.proto
Typed extension of SubjectFactory.
LiteProtoTruth - Class in com.google.common.truth.extensions.proto
A set of static methods to begin a Truth assertion chain for the lite version of protocol buffers.
LongSubject - Class in com.google.common.truth
Propositions for long subjects.
LongSubject(FailureStrategy, Long) - Constructor for class com.google.common.truth.LongSubject
 

M

MapSubject - Class in com.google.common.truth
Propositions for Map subjects.
MapSubject.UsingCorrespondence<A,E> - Class in com.google.common.truth
A partially specified proposition in which the actual values (i.e.
MapWithProtoValuesFluentAssertion<M extends com.google.protobuf.Message> - Interface in com.google.common.truth.extensions.proto
Fluent API to perform detailed, customizable comparison of maps containing protocol buffers as values.
MapWithProtoValuesSubject<S extends MapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends Map<K,M>> - Class in com.google.common.truth.extensions.proto
Truth subject for maps with protocol buffers for values.
MapWithProtoValuesSubject(FailureStrategy, C) - Constructor for class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
 
MapWithProtoValuesSubject.MapWithMessageValuesSubject<K,M extends com.google.protobuf.Message> - Class in com.google.common.truth.extensions.proto
Default implementation of MapWithProtoValuesSubject.
matches(String) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
Fails if the string does not match the given regex.
matches(Pattern) - Method in class com.google.common.truth.extensions.re2j.Re2jSubjects.Re2jStringSubject
Fails if the string does not match the given regex.
matches(String) - Method in class com.google.common.truth.StringSubject
Fails if the string does not match the given regex.
matches(Pattern) - Method in class com.google.common.truth.StringSubject
Fails if the string does not match the given regex.
MathUtil - Class in com.google.common.truth
Math utilities to be shared by numeric subjects.
MessagePrependingFailureStrategy(FailureStrategy, FailureContext) - Constructor for class com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
 
MultimapSubject - Class in com.google.common.truth
Propositions for Multimap subjects.
MultimapSubject.UsingCorrespondence<A,E> - Class in com.google.common.truth
A partially specified proposition in which the actual values (i.e.
MultimapWithProtoValuesFluentAssertion<M extends com.google.protobuf.Message> - Interface in com.google.common.truth.extensions.proto
Fluent API to perform detailed, customizable comparison of Multimaps containing protocol buffers as values.
MultimapWithProtoValuesSubject<S extends MultimapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends com.google.common.collect.Multimap<K,M>> - Class in com.google.common.truth.extensions.proto
Truth subject for Multimaps with protocol buffers for values.
MultimapWithProtoValuesSubject(FailureStrategy, C) - Constructor for class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
 
MultimapWithProtoValuesSubject.MultimapWithMessageValuesSubject<K,M extends com.google.protobuf.Message> - Class in com.google.common.truth.extensions.proto
Default implementation of MultimapWithProtoValuesSubject.
MultisetSubject - Class in com.google.common.truth
Propositions for Multiset subjects.

N

named(String, Object...) - Method in class com.google.common.truth.ListMultimapSubject
 
named(String, Object...) - Method in class com.google.common.truth.MultisetSubject
 
named(String, Object...) - Method in class com.google.common.truth.SetMultimapSubject
 
named(String, Object...) - Method in class com.google.common.truth.SortedMapSubject
 
named(String, Object...) - Method in class com.google.common.truth.SortedSetSubject
 
named(String, Object...) - Method in class com.google.common.truth.Subject
Adds a prefix to the subject, when it is displayed in error messages.
none() - Static method in class com.google.common.truth.extensions.proto.FieldScopes
Returns a FieldScope which matches no fields.
notEqualWithinTolerance(double, double, double) - Static method in class com.google.common.truth.MathUtil
Returns true iff left and right are finite values not within tolerance of each other.
notEqualWithinTolerance(float, float, float) - Static method in class com.google.common.truth.MathUtil
Returns true iff left and right are finite values not within tolerance of each other.

O

ObjectArraySubject<T> - Class in com.google.common.truth
A Subject to handle testing propositions for Object[] and more generically T[].
of(double) - Method in class com.google.common.truth.DoubleSubject.TolerantDoubleComparison
Fails if the subject was expected to be within the tolerance of the given value but was not or if it was expected not to be within the tolerance but was.
of(float) - Method in class com.google.common.truth.FloatSubject.TolerantFloatComparison
Fails if the subject was expected to be within the tolerance of the given value but was not or if it was expected not to be within the tolerance but was.
of(double...) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison
Fails if the values in the subject were expected to be within the tolerance of the given values but were not or if they were expected not to be within the tolerance but were.
of(float...) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison
Fails if the values in the subject were expected to be within the tolerance of the given values but were not or if they were expected not to be within the tolerance but were.
ofElementsIn(Iterable<? extends Number>) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison
Fails if the values in the subject were expected to be within the tolerance of the given values but were not or if they were expected not to be within the tolerance but were.
ofElementsIn(Iterable<? extends Number>) - Method in class com.google.common.truth.PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison
Fails if the values in the subject were expected to be within the tolerance of the given values but were not or if they were expected not to be within the tolerance but were.
optionalDoubles() - Static method in class com.google.common.truth.OptionalDoubleSubject
 
OptionalDoubleSubject - Class in com.google.common.truth
Propositions for Java 8 OptionalDouble subjects.
optionalInts() - Static method in class com.google.common.truth.OptionalIntSubject
 
OptionalIntSubject - Class in com.google.common.truth
Propositions for Java 8 OptionalInt subjects.
optionalLongs() - Static method in class com.google.common.truth.OptionalLongSubject
 
OptionalLongSubject - Class in com.google.common.truth
Propositions for Java 8 OptionalLong subjects.
optionals() - Static method in class com.google.common.truth.OptionalSubject
 
OptionalSubject - Class in com.google.common.truth
Propositions for Java 8 Optional subjects.
Ordered - Interface in com.google.common.truth
 

P

PrimitiveBooleanArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for boolean[].
PrimitiveByteArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for byte[].
PrimitiveCharArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for char[].
PrimitiveDoubleArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for double[].
PrimitiveDoubleArraySubject.DoubleArrayAsIterable - Class in com.google.common.truth
A partially specified proposition for doing assertions on the array similar to the assertions supported for Iterable subjects, in which the elements of the array under test are compared to expected elements using either exact or tolerant double equality: see PrimitiveDoubleArraySubject.usingExactEquality() and PrimitiveDoubleArraySubject.usingTolerance(double).
PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison - Class in com.google.common.truth
A partially specified proposition about an approximate relationship to a double[] subject using a tolerance.
PrimitiveFloatArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for float[].
PrimitiveFloatArraySubject.FloatArrayAsIterable - Class in com.google.common.truth
A partially specified proposition for doing assertions on the array similar to the assertions supported for Iterable subjects, in which the elements of the array under test are compared to expected elements using either exact or tolerant float equality: see PrimitiveFloatArraySubject.usingExactEquality() and PrimitiveFloatArraySubject.usingTolerance(double).
PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison - Class in com.google.common.truth
A partially specified proposition about an approximate relationship to a float[] subject using a tolerance.
PrimitiveIntArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for int[].
PrimitiveLongArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for long[].
PrimitiveShortArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for short[].
ProtoFluentAssertion - Interface in com.google.common.truth.extensions.proto
Fluent API to perform detailed, customizable comparison of Protocol buffers.
protos() - Static method in class com.google.common.truth.extensions.proto.ProtoTruth
Returns a DelegatedVerbFactory, akin to a SubjectFactory, which can be used to assert on multiple types of Protos and collections containing them.
ProtoSubject<S extends ProtoSubject<S,M>,M extends com.google.protobuf.Message> - Class in com.google.common.truth.extensions.proto
Truth subject for the full version of Protocol Buffers.
ProtoSubject(FailureStrategy, M) - Constructor for class com.google.common.truth.extensions.proto.ProtoSubject
 
ProtoTruth - Class in com.google.common.truth.extensions.proto
A set of static methods to begin a Truth assertion chain for protocol buffers.
ProtoTruthDelegatedVerb - Class in com.google.common.truth.extensions.proto
Custom AbstractDelegatedVerb which aggregates all Proto-related Subject classes into a single place.

R

re2jString() - Static method in class com.google.common.truth.extensions.re2j.Re2jSubjects
Returns a subject factory for String subjects which you can use to assert things about Pattern regexes.
Re2jSubjects - Class in com.google.common.truth.extensions.re2j
Truth subjects for re2j regular expressions.
Re2jSubjects.Re2jStringSubject - Class in com.google.common.truth.extensions.re2j
Subject for String subjects which you can use to assert things about Pattern regexes.
reportingMismatchesOnly() - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values.
reportingMismatchesOnly() - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values.
reportingMismatchesOnly() - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values.
reportingMismatchesOnly() - Method in class com.google.common.truth.extensions.proto.ProtoSubject
 
reportingMismatchesOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values.
reportingMismatchesOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values.
reportingMismatchesOnlyForValues() - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values.
reportingMismatchesOnlyForValues() - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values.

S

serializedSize() - Method in class com.google.common.truth.extensions.proto.LiteProtoSubject
Returns an IntegerSubject on the serialized size of the MessageLite.
SetMultimapSubject - Class in com.google.common.truth
Type-specific extensions of Multimap subjects for SetMultimap subjects.
SetMultimapWithProtoValuesSubject<S extends SetMultimapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends com.google.common.collect.SetMultimap<K,M>> - Class in com.google.common.truth.extensions.proto
SetMultimapWithProtoValuesSubject(FailureStrategy, C) - Constructor for class com.google.common.truth.extensions.proto.SetMultimapWithProtoValuesSubject
 
SetMultimapWithProtoValuesSubject.SetMultimapWithMessageValuesSubject<K,M extends com.google.protobuf.Message> - Class in com.google.common.truth.extensions.proto
Default implementation of SetMultimapWithProtoValuesSubject.
SortedMapSubject - Class in com.google.common.truth
Tests for SortedMap and NavigableMap objects.
SortedSetSubject - Class in com.google.common.truth
Tests for SortedSet and NavigableSet objects.
startsWith(String) - Method in class com.google.common.truth.StringSubject
Fails if the string does not start with the given string.
streams() - Static method in class com.google.common.truth.StreamSubject
 
StreamSubject - Class in com.google.common.truth
Propositions for Stream subjects.
StringSubject - Class in com.google.common.truth
Propositions for string subjects.
StringSubject(FailureStrategy, String) - Constructor for class com.google.common.truth.StringSubject
 
Subject<S extends Subject<S,T>,T> - Class in com.google.common.truth
A Subject in Truth fits into the assertion fluent chain, taking the place of the "subject of the test".
Subject(FailureStrategy, T) - Constructor for class com.google.common.truth.Subject
 
SubjectFactory<S extends Subject<S,T>,T> - Class in com.google.common.truth
A custom subject factory which will return a FooSubject (which is a Subject<Foo>).
SubjectFactory() - Constructor for class com.google.common.truth.SubjectFactory
 

T

TableSubject - Class in com.google.common.truth
Propositions for Table subjects.
TestVerb - Class in com.google.common.truth
 
TestVerb(FailureStrategy) - Constructor for class com.google.common.truth.TestVerb
 
TestVerb(FailureStrategy, String) - Constructor for class com.google.common.truth.TestVerb
 
TestVerb(FailureStrategy, String, Object...) - Constructor for class com.google.common.truth.TestVerb
 
that(T) - Method in class com.google.common.truth.AbstractVerb.DelegatedVerb
 
that(MessageLite) - Method in class com.google.common.truth.extensions.proto.ProtoTruthDelegatedVerb
 
that(Message) - Method in class com.google.common.truth.extensions.proto.ProtoTruthDelegatedVerb
 
that(Iterable<M>) - Method in class com.google.common.truth.extensions.proto.ProtoTruthDelegatedVerb
 
that(Map<K, M>) - Method in class com.google.common.truth.extensions.proto.ProtoTruthDelegatedVerb
 
that(Multimap<K, M>) - Method in class com.google.common.truth.extensions.proto.ProtoTruthDelegatedVerb
 
that(ListMultimap<K, M>) - Method in class com.google.common.truth.extensions.proto.ProtoTruthDelegatedVerb
 
that(SetMultimap<K, M>) - Method in class com.google.common.truth.extensions.proto.ProtoTruthDelegatedVerb
 
that(T) - Method in class com.google.common.truth.TestVerb
 
that(BigDecimal) - Method in class com.google.common.truth.TestVerb
 
that(Object) - Method in class com.google.common.truth.TestVerb
 
that(Class<?>) - Method in class com.google.common.truth.TestVerb
 
that(Throwable) - Method in class com.google.common.truth.TestVerb
 
that(Long) - Method in class com.google.common.truth.TestVerb
 
that(Double) - Method in class com.google.common.truth.TestVerb
 
that(Float) - Method in class com.google.common.truth.TestVerb
 
that(Integer) - Method in class com.google.common.truth.TestVerb
 
that(Boolean) - Method in class com.google.common.truth.TestVerb
 
that(String) - Method in class com.google.common.truth.TestVerb
 
that(Iterable<?>) - Method in class com.google.common.truth.TestVerb
 
that(SortedSet<?>) - Method in class com.google.common.truth.TestVerb
 
that(T[]) - Method in class com.google.common.truth.TestVerb
 
that(boolean[]) - Method in class com.google.common.truth.TestVerb
 
that(short[]) - Method in class com.google.common.truth.TestVerb
 
that(int[]) - Method in class com.google.common.truth.TestVerb
 
that(long[]) - Method in class com.google.common.truth.TestVerb
 
that(char[]) - Method in class com.google.common.truth.TestVerb
 
that(byte[]) - Method in class com.google.common.truth.TestVerb
 
that(float[]) - Method in class com.google.common.truth.TestVerb
 
that(double[]) - Method in class com.google.common.truth.TestVerb
 
that(Optional<?>) - Method in class com.google.common.truth.TestVerb
 
that(Map<?, ?>) - Method in class com.google.common.truth.TestVerb
 
that(SortedMap<?, ?>) - Method in class com.google.common.truth.TestVerb
 
that(Multimap<?, ?>) - Method in class com.google.common.truth.TestVerb
 
that(ListMultimap<?, ?>) - Method in class com.google.common.truth.TestVerb
 
that(SetMultimap<?, ?>) - Method in class com.google.common.truth.TestVerb
 
that(Multiset<?>) - Method in class com.google.common.truth.TestVerb
 
that(Table<?, ?, ?>) - Method in class com.google.common.truth.TestVerb
 
that(AtomicLongMap<?>) - Method in class com.google.common.truth.TestVerb
 
THROW_ASSERTION_ERROR - Static variable in class com.google.common.truth.Truth
 
ThrowableSubject - Class in com.google.common.truth
Propositions for Throwable subjects.
throwAssumptionError() - Static method in class com.google.common.truth.TruthJUnit
 
tolerance(double) - Static method in class com.google.common.truth.Correspondence
Returns a Correspondence between Number instances that considers instances to correspond (i.e.
toString() - Method in class com.google.common.truth.Correspondence
Returns a description of the correspondence, suitable to fill the gap in a failure message of the form {@code " is an element that ...
toString() - Method in class com.google.common.truth.Expect.ExpectationGatherer
 
Truth - Class in com.google.common.truth
Truth - a proposition framework for tests, supporting JUnit style assertion and assumption semantics in a fluent style.
Truth8 - Class in com.google.common.truth
A set of static methods to begin a Truth assertion chain for types that require java8.
TruthJUnit - Class in com.google.common.truth
Truth - a proposition framework for tests, supporting JUnit style assertion and assumption semantics in a fluent style.

U

underlyingType() - Method in class com.google.common.truth.ObjectArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveByteArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveCharArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveFloatArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveIntArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveLongArraySubject
 
underlyingType() - Method in class com.google.common.truth.PrimitiveShortArraySubject
 
usingExactEquality() - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
Starts a method chain for a test proposition in which the actual values (i.e.
usingExactEquality() - Method in class com.google.common.truth.PrimitiveFloatArraySubject
Starts a method chain for a test proposition in which the actual values (i.e.
usingTolerance(double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
Starts a method chain for a test proposition in which the actual values (i.e.
usingTolerance(double) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
Starts a method chain for a test proposition in which the actual values (i.e.

V

valuesForKey(Object) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
Returns a context-aware Subject for making assertions about the values for the given key within the Multimap.
valuesForKey(Object) - Method in class com.google.common.truth.MultimapSubject
Returns a context-aware Subject for making assertions about the values for the given key within the Multimap.

W

whenTesting() - Method in class com.google.common.truth.ExpectFailure
Returns a test verb that expects the chained assertion to fail, and makes the failure available via ExpectFailure.getFailure().
withFailureMessage(String) - Method in class com.google.common.truth.AbstractDelegatedVerb
Deprecated.
Call withFailureMessage on the AbstractVerb before calling about.
withFailureMessage(String, Object...) - Method in class com.google.common.truth.AbstractDelegatedVerb
Deprecated.
Call withFailureMessage on the AbstractVerb before calling about.
withFailureMessage(String) - Method in class com.google.common.truth.AbstractVerb
Deprecated.
Use withMessage, the new name of this method.
withFailureMessage(String, Object...) - Method in class com.google.common.truth.AbstractVerb
Deprecated.
Use withMessage, the new name of this method.
withFailureMessage(String) - Method in class com.google.common.truth.TestVerb
Deprecated.
Use withMessage, the new name of this method.
withFailureMessage(String, Object...) - Method in class com.google.common.truth.TestVerb
Deprecated.
Use withMessage, the new name of this method.
withMessage(String) - Method in class com.google.common.truth.AbstractVerb
Overrides the failure message of the subsequent subject's propositions.
withMessage(String, Object...) - Method in class com.google.common.truth.AbstractVerb
Overrides the failure message of the subsequent subject's propositions.
withMessage(String) - Method in class com.google.common.truth.TestVerb
 
withMessage(String, Object...) - Method in class com.google.common.truth.TestVerb
Returns a TestVerb that will prepend the formatted message using the specified arguments to the failure message in the event of a test failure.
withPartialScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.IterableOfProtosFluentAssertion
Limits the comparison of Protocol buffers to the defined FieldScope.
withPartialScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.IterableOfProtosSubject
Limits the comparison of Protocol buffers to the defined FieldScope.
withPartialScope(FieldScope) - Method in interface com.google.common.truth.extensions.proto.ProtoFluentAssertion
Limits the comparison of Protocol buffers to the defined FieldScope.
withPartialScope(FieldScope) - Method in class com.google.common.truth.extensions.proto.ProtoSubject
 
withPartialScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MapWithProtoValuesFluentAssertion
Limits the comparison of Protocol buffers to the defined FieldScope.
withPartialScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MapWithProtoValuesSubject
Limits the comparison of Protocol buffers to the defined FieldScope.
withPartialScopeForValues(FieldScope) - Method in interface com.google.common.truth.extensions.proto.MultimapWithProtoValuesFluentAssertion
Limits the comparison of Protocol buffers to the defined FieldScope.
withPartialScopeForValues(FieldScope) - Method in class com.google.common.truth.extensions.proto.MultimapWithProtoValuesSubject
Limits the comparison of Protocol buffers to the defined FieldScope.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2017. All rights reserved.