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 .
AbstractArraySubject<S extends AbstractArraySubject<S,T>,T> - Class in com.google.common.truth
A common supertype for Array subjects, abstracting some common display and error infrastructure.
AbstractVerb<T extends AbstractVerb<T>> - Class in com.google.common.truth
 
AbstractVerb(FailureStrategy) - 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
 
apply(Statement, Description) - Method in class com.google.common.truth.Expect
 
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
 
assert_() - Static method in class com.google.common.truth.Truth
 
assertAbout(SF) - 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.
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(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<T>) - 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(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<T>) - Static method in class com.google.common.truth.Truth
 
assertThat(Map<?, ?>) - Static method in class com.google.common.truth.Truth
 
assertThat(Multimap<K, V>) - Static method in class com.google.common.truth.Truth
 
assertThat(ListMultimap<K, V>) - Static method in class com.google.common.truth.Truth
 
assertThat(SetMultimap<K, V>) - Static method in class com.google.common.truth.Truth
 
assertThat(Multiset<E>) - Static method in class com.google.common.truth.Truth
 
assertThat(Table<?, ?, ?>) - Static method in class com.google.common.truth.Truth
 
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.
assume() - Static method in class com.google.common.truth.TruthJUnit
 

B

BigDecimalSubject - Class in com.google.common.truth
Propositions for BigDecimal typed subjects.
BooleanSubject - Class in com.google.common.truth
Propositions for boolean subjects.
build() - Method in class com.google.common.truth.codegen.IteratingWrapperClassBuilder
 

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.
className - Variable in class com.google.common.truth.codegen.IteratingWrapperClassBuilder
 
ClassSubject - Class in com.google.common.truth
Propositions for Class subjects.
com.google.common.truth - package com.google.common.truth
 
com.google.common.truth.codegen - package com.google.common.truth.codegen
 
ComparableSubject<S extends Subject<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
 
comparesEqualTo(T) - Method in class com.google.common.truth.ComparableSubject
comparisonFailure(String, String, String) - Static method in class com.google.common.truth.Platform
 
CompilerException(String) - Constructor for exception com.google.common.truth.codegen.CompilingClassLoader.CompilerException
 
CompilingClassLoader - Class in com.google.common.truth.codegen
This is a Java ClassLoader that will attempt to load a class from a string of source code.
CompilingClassLoader(ClassLoader, String, String, DiagnosticListener<JavaFileObject>) - Constructor for class com.google.common.truth.codegen.CompilingClassLoader
 
CompilingClassLoader.CompilerException - Exception in com.google.common.truth.codegen
Thrown when code cannot be compiled.
compressType(String) - Static method in class com.google.common.truth.Platform
Inspired by JavaWriter.
contains(Object) - Method in class com.google.common.truth.IterableSubject
Attests (with a side-effect failure) that the subject contains the supplied item.
contains(CharSequence) - Method in class com.google.common.truth.StringSubject
Fails if the string does not contain the given sequence.
contains(Object, Object) - Method in class com.google.common.truth.TableSubject
Fails if the table does not contain a mapping for the given row key and column key.
containsAllIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests that the subject contains at least all of the provided objects or fails, potentially permitting duplicates in both the subject and the parameters (if the subject even can have duplicates).
containsAllOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
Attests that the subject contains at least all of the provided objects or fails, potentially permitting duplicates in both the subject and the parameters (if the subject even can have duplicates).
containsAnyIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests that a Collection contains at least one of the objects contained in the provided collection 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.
containsCell(Object, Object, Object) - 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, Object) - Method in class com.google.common.truth.MapSubject
Fails if the map does not contain the given entry.
containsEntry(Object, Object) - Method in class com.google.common.truth.MultimapSubject
Fails if the multimap does not contain the given entry.
containsExactly(Object...) - Method in class com.google.common.truth.IterableSubject
Attests that a subject contains exactly the provided objects or fails.
containsExactly(Multimap<?, ?>) - Method in class com.google.common.truth.MultimapSubject
Fails if the Multimap does not contain precisely the same entries as the argument Multimap.
containsExactlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests that a subject contains exactly the provided objects or fails.
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(String, String) - Static method in class com.google.common.truth.Platform
Determines if the given subject contains a match for 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.IterableSubject
Attests that the subject does not contain duplicate elements.
containsNoneIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Attests that a Collection contains none of the objects contained in the provided collection or fails, eliding duplicates.
containsNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
Attests that a subject contains none of the provided objects or fails, eliding duplicates.
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.
create() - Static method in class com.google.common.truth.Expect
 

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
 
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(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.
doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.MapSubject
Fails if the map contains the given entry.
doesNotContainEntry(Object, Object) - Method in class com.google.common.truth.MultimapSubject
Fails if the multimap contains the given entry.
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.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.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.DoubleSubject.TolerantDoubleComparison
Deprecated.
Object.equals(Object) is not supported on TolerantDoubleComparison If you meant to compare doubles, use DoubleSubject.TolerantDoubleComparison.of(double) instead.
equals(double, double, double) - Static method in class com.google.common.truth.MathUtil
 
equals(float, float, float) - Static method in class com.google.common.truth.MathUtil
 
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, use Subject.isEqualTo(Object) instead.
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
 

F

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) - Method in class com.google.common.truth.Expect.ExpectationGatherer
 
fail(String, Throwable) - Method in class com.google.common.truth.Expect.ExpectationGatherer
 
fail(String) - Method in class com.google.common.truth.FailureStrategy
 
fail(String, Throwable) - Method in class com.google.common.truth.FailureStrategy
 
fail(String) - 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.
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.AbstractVerb.MessagePrependingFailureStrategy
 
failComparing(String, CharSequence, CharSequence) - Method in class com.google.common.truth.Expect.ExpectationGatherer
 
failComparing(String, CharSequence, CharSequence) - Method in class com.google.common.truth.FailureStrategy
 
FailureStrategy - Class in com.google.common.truth
 
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
failWithoutSubject(String) - Method in class com.google.common.truth.Subject
Assembles a failure message without a given subject and passes it to the FailureStrategy
failWithRawMessage(String, Object...) - Method in class com.google.common.truth.Subject
Passes through a failure message verbatim.
findClass(String) - Method in class com.google.common.truth.codegen.CompilingClassLoader
Override ClassLoader's class resolving method.

G

getDisplaySubject() - Method in class com.google.common.truth.AbstractArraySubject
 
getDisplaySubject() - Method in class com.google.common.truth.StringSubject
 
getDisplaySubject() - Method in class com.google.common.truth.Subject
 
getFailureMessage() - Method in class com.google.common.truth.AbstractVerb
 
getFailureMessage() - Method in class com.google.common.truth.TestVerb
 
getFailureStrategy() - Method in class com.google.common.truth.AbstractVerb
 
getFailureStrategy() - Method in class com.google.common.truth.Expect
 
getSubject() - Method in class com.google.common.truth.Subject
 
getSubject(FailureStrategy, T) - Method in class com.google.common.truth.SubjectFactory
 
getSubjectClass() - Method in class com.google.common.truth.SubjectFactory
 

H

hasCount(Object, int) - Method in class com.google.common.truth.MultisetSubject
Fails if the element does not have the given count.
hashCode() - Method in class com.google.common.truth.DoubleSubject.TolerantDoubleComparison
Deprecated.
Object.hashCode() is not supported on TolerantDoubleComparison
hashCode() - Method in class com.google.common.truth.Subject
Deprecated.
Object.hashCode() is not supported on Truth subjects.
hasLength(int) - Method in class com.google.common.truth.AbstractArraySubject
Fails if the array does not have the given length.
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
Fails if the subject does not have the given message.
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.TableSubject
Fails if the table does not have the given size.
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.

I

in(Iterable<T>) - Method in class com.google.common.truth.AbstractVerb
 
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
 
isAbsent() - Method in class com.google.common.truth.OptionalSubject
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.AbstractArraySubject
Fails if the array is not empty (i.e.
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.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.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
Deprecated.
Use DoubleSubject.isWithin(double) instead. Double comparison should always have a tolerance.
isEqualTo(Object) - Method in class com.google.common.truth.IntegerSubject
 
isEqualTo(long) - Method in class com.google.common.truth.IntegerSubject
 
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.containsExactly(com.google.common.collect.Multimap) instead. Consult Multimap.equals(java.lang.Object) for more information.
isEqualTo(Object) - Method in class com.google.common.truth.LongSubject
 
isEqualTo(int) - Method in class com.google.common.truth.LongSubject
 
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 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.PrimitiveByteArraySubject
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.PrimitiveCharArraySubject
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.PrimitiveDoubleArraySubject
isEqualTo(Object, double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
A proposition that the provided double[] 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.PrimitiveFloatArraySubject
Deprecated.
use #isEqualTo(Object, double)
isEqualTo(Object, float) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
A proposition that the provided float[] 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.PrimitiveIntArraySubject
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.PrimitiveLongArraySubject
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(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.containsExactly(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.
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(Boolean) - Method in class com.google.common.truth.BooleanSubject
Deprecated.
Use Subject.isEqualTo(java.lang.Object) instead. Boolean comparison is consistent with equality.
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) instead. Double comparison should always have a tolerance.
isEquivalentAccordingToCompareTo(Integer) - Method in class com.google.common.truth.IntegerSubject
Deprecated.
Use IntegerSubject.isEqualTo(java.lang.Object) instead. Integer comparison is consistent with equality.
isEquivalentAccordingToCompareTo(Long) - Method in class com.google.common.truth.LongSubject
Deprecated.
Use LongSubject.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.
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.
isInstanceOfType(Object, Class<?>) - Static method in class com.google.common.truth.Platform
Returns true if the instance is assignable to the type Clazz.
isLessThan(T) - Method in class com.google.common.truth.ComparableSubject
Fails if the subject is not less than the given value.
isNoneOf(Object, Object, Object...) - Method in class com.google.common.truth.Subject
Fails if the subject is equal to any of the given elements.
isNotEmpty() - Method in class com.google.common.truth.AbstractArraySubject
Fails if the array is empty (i.e.
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.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(Double) - Method in class com.google.common.truth.DoubleSubject
Deprecated.
Use DoubleSubject.isNotWithin(double) instead. Double comparison should always have a tolerance.
isNotEqualTo(Object) - Method in class com.google.common.truth.IntegerSubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.LongSubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.ObjectArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveBooleanArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveByteArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveCharArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
isNotEqualTo(Object, double) - Method in class com.google.common.truth.PrimitiveDoubleArraySubject
A proposition that the provided double[] is not an array of the same length or type, or has at least one element that does not pass an equality test within the given tolerance.
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
Deprecated.
use #isNotEqualTo(Object, double)
isNotEqualTo(Object, float) - Method in class com.google.common.truth.PrimitiveFloatArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveIntArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.PrimitiveLongArraySubject
 
isNotEqualTo(Object) - Method in class com.google.common.truth.Subject
Fails if the subject is equal to the given object.
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.
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 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.
isPartiallyOrdered() - Method in class com.google.common.truth.IterableSubject
Fails if the list is not ordered according to the natural ordering of its elements.
isPartiallyOrdered(Comparator<? super T>) - Method in class com.google.common.truth.IterableSubject
Fails if the list is not ordered according to the given comparator.
isPresent() - Method in class com.google.common.truth.OptionalSubject
Fails if the Optional<T> is absent 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() - Method in class com.google.common.truth.IterableSubject
Fails if the list is not strictly ordered according to the natural ordering of its elements.
isStrictlyOrdered(Comparator<? super T>) - Method in class com.google.common.truth.IterableSubject
Fails if the list is not strictly ordered according to the given comparator.
isTrue() - Method in class com.google.common.truth.BooleanSubject
Fails if the subject is false.
isWithin(double) - Method in class com.google.common.truth.DoubleSubject
Prepares for a check that the subject is within the given tolerance of an expected value that will be provided in the next call in the fluent chain.
IterableSubject<S extends IterableSubject<S,T,C>,T,C extends Iterable<T>> - Class in com.google.common.truth
Propositions for Iterable subjects.
IterableSubject(FailureStrategy, C) - Constructor for class com.google.common.truth.IterableSubject
 
IteratingVerb<T> - Class in com.google.common.truth
A verb that iterates over data and applies the predicate iteratively
IteratingVerb(Iterable<T>, FailureStrategy) - Constructor for class com.google.common.truth.IteratingVerb
 
IteratingWrapperClassBuilder - Class in com.google.common.truth.codegen
A builder of classes to wrap a provided SubjectFactory's concrete Subject subclass.
IteratingWrapperClassBuilder(SubjectFactory<?, ?>) - Constructor for class com.google.common.truth.codegen.IteratingWrapperClassBuilder
 

L

ListMultimapSubject<S extends ListMultimapSubject<S,K,V,M>,K,V,M extends com.google.common.collect.ListMultimap<K,V>> - Class in com.google.common.truth
Type-specific extensions of Multimap subjects for ListMultimap subjects.
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
 
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.
matches(String, String) - Static method in class com.google.common.truth.Platform
Determines if the entirety of the given subject matches 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, String) - Constructor for class com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
 
MultimapSubject<S extends MultimapSubject<S,K,V,M>,K,V,M extends com.google.common.collect.Multimap<K,V>> - Class in com.google.common.truth
Propositions for Multimap subjects.
MultisetSubject<S extends MultisetSubject<S,E,M>,E,M extends com.google.common.collect.Multiset<E>> - Class in com.google.common.truth
Propositions for Multiset subjects.

N

named(String) - Method in class com.google.common.truth.AbstractArraySubject
 
named(String) - Method in class com.google.common.truth.Subject
Renames the subject so that this name appears in the error messages in place of string representations of the subject.
notEquals(double, double, double) - Static method in class com.google.common.truth.MathUtil
 
notEquals(float, float, float) - Static method in class com.google.common.truth.MathUtil
 

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.
OptionalSubject<T> - Class in com.google.common.truth
Propositions for Optional<T> subjects.
Ordered - Interface in com.google.common.truth
 

P

Platform - Class in com.google.common.truth
Extracted routines that need to be swapped in for GWT, to allow for minimal deltas between the GWT and non-GWT version.
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[].
PrimitiveFloatArraySubject - Class in com.google.common.truth
A Subject to handle testing propositions for float[].
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[].

R

ReflectionUtil - Class in com.google.common.truth
Reflection utility methods.

S

SetMultimapSubject<S extends SetMultimapSubject<S,K,V,M>,K,V,M extends com.google.common.collect.SetMultimap<K,V>> - Class in com.google.common.truth
Type-specific extensions of Multimap subjects for SetMultimap subjects.
startsWith(String) - Method in class com.google.common.truth.StringSubject
Fails if the string does not start with the given string.
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
Propositions for arbitrarily typed subjects and for properties of Object
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).
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
 
that(T) - Method in class com.google.common.truth.AbstractVerb.DelegatedVerb
 
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(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<T>) - 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(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<T>) - Method in class com.google.common.truth.TestVerb
 
that(Map<?, ?>) - Method in class com.google.common.truth.TestVerb
 
that(Multimap<K, V>) - Method in class com.google.common.truth.TestVerb
 
that(ListMultimap<K, V>) - Method in class com.google.common.truth.TestVerb
 
that(SetMultimap<K, V>) - Method in class com.google.common.truth.TestVerb
 
that(Multiset<E>) - Method in class com.google.common.truth.TestVerb
 
that(Table<?, ?, ?>) - Method in class com.google.common.truth.TestVerb
 
thatEach(SF) - Method in class com.google.common.truth.IteratingVerb
 
THROW_ASSERTION_ERROR - Static variable in class com.google.common.truth.Truth
 
THROW_ASSUMPTION_ERROR - Static variable in class com.google.common.truth.TruthJUnit
 
ThrowableSubject - Class in com.google.common.truth
Propositions for Throwable subjects.
ThrowableSubject(FailureStrategy, Throwable) - Constructor for class com.google.common.truth.ThrowableSubject
 
Truth - Class in com.google.common.truth
Truth - a proposition framework for tests, supporting JUnit style assertion and assumption semantics in a fluent style.
Truth() - Constructor for class com.google.common.truth.Truth
 
TruthJUnit - Class in com.google.common.truth
Truth - a proposition framework for tests, supporting JUnit style assertion and assumption semantics in a fluent style.
TYPE_PATTERN - Static variable in class com.google.common.truth.Platform
 
typeParameter(Class<?>, int) - Static method in class com.google.common.truth.ReflectionUtil
Returns the captured type.

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
 

V

valuesForKey(K) - 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

withFailureMessage(String) - Method in class com.google.common.truth.AbstractVerb
Overrides the failure message of the subsequent subject's propositions.
withFailureMessage(String) - Method in class com.google.common.truth.TestVerb
 
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2015. All rights reserved.