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.DelegatedVerb(FailureStrategy, SubjectFactory<S, T>) - Constructor for class com.google.common.truth.AbstractVerb.DelegatedVerb
 
AbstractVerb.MessagePrependingFailureStrategy - Class in com.google.common.truth
 
AbstractVerb.MessagePrependingFailureStrategy(FailureStrategy, String) - Constructor for class com.google.common.truth.AbstractVerb.MessagePrependingFailureStrategy
 
allFrom(Iterable<T>) - Method in class com.google.common.truth.CollectionSubject.Has
allOf(T) - Method in class com.google.common.truth.CollectionSubject.Has
Deprecated.
allOf(T, T, T...) - Method in class com.google.common.truth.CollectionSubject.Has
anyFrom(Iterable<T>) - Method in class com.google.common.truth.CollectionSubject.Has
anyOf(T) - Method in class com.google.common.truth.CollectionSubject.Has
Deprecated.
anyOf(T, T, T...) - Method in class com.google.common.truth.CollectionSubject.Has
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 variable in class com.google.common.truth.Truth
 
ASSERT - Static variable in class org.truth0.Truth
 
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(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(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(Collection<T>) - Static method in class com.google.common.truth.Truth
Deprecated.
Use the Iterable overload instead.
assertThat(List<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<K, V>) - 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<R, C, V>) - 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 variable in class com.google.common.truth.TruthJUnit
 
assume() - Static method in class com.google.common.truth.TruthJUnit
 
ASSUME - Static variable in class org.truth0.Truth
 

B

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.
CollectionSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>> - Class in com.google.common.truth
Propositions for Collection subjects.
CollectionSubject.Has<T,C extends Collection<T>> - Class in com.google.common.truth
Deprecated.
assertThat(foo).has().somePredicate() has been replaced with direct methods such as IterableSubject.containsAllOf(Object, Object, Object...), IterableSubject.contains(Object), etc.
CollectionSubject.Has() - Constructor for class com.google.common.truth.CollectionSubject.Has
Deprecated.
 
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
Fails if the subject is not equivalent to the given value according to Comparable.compareTo(T), (i.e., fails if a.comparesTo(b) != 0).
comparisonFailure(String, String, String) - Static method in class com.google.common.truth.Platform
 
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.
CompilingClassLoader.CompilerException(String) - Constructor for exception com.google.common.truth.codegen.CompilingClassLoader.CompilerException
 
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(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.
containsOnlyElements(Object, Object, Object...) - Method in class com.google.common.truth.IterableSubject
containsOnlyElementsIn(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
containsRow(Object) - Method in class com.google.common.truth.TableSubject
Fails if the table does not contain the given row key.
containsSequence(List<?>) - Method in class com.google.common.truth.ListSubject
Fails if the list does not contain the specified sequence.
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

declaresField(String) - Method in class com.google.common.truth.ClassSubject
 
DefaultSubject - Class in com.google.common.truth
 
DefaultSubject(FailureStrategy, Object) - Constructor for class com.google.common.truth.DefaultSubject
 
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.

E

endsWith(String) - Method in class com.google.common.truth.StringSubject
Fails if the string does not end with the given string.
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.
This method is not a proposition, but the default Object equality method. Testing code should use Subject.isEqualTo(Object) to check for object equalty or Subject.isSameAs(Object) to check reference equality.
exactly(T) - Method in class com.google.common.truth.CollectionSubject.Has
Deprecated.
Use IterableSubject#containsExactly(Object) instead.
exactly(T, T, T...) - Method in class com.google.common.truth.CollectionSubject.Has
exactlyAs(Iterable<T>) - Method in class com.google.common.truth.CollectionSubject.Has
Expect - Class in com.google.common.truth
 
Expect.ExpectationGatherer - Class in com.google.common.truth
 
Expect.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
 
FailureStrategy - Class in org.truth0
Deprecated.
FailureStrategy() - Constructor for class org.truth0.FailureStrategy
Deprecated.
 
FailureStrategy.ThrowableAssertionError - Error in com.google.common.truth
Deprecated.
Use AssertionError instead.
FailureStrategy.ThrowableAssertionError(String, Throwable) - Constructor for error com.google.common.truth.FailureStrategy.ThrowableAssertionError
Deprecated.
 
failWithBadResults(String, Object, String, Object) - Method in class com.google.common.truth.Subject
Assembles a failure message and passes it to the FailureStrategy
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
 
getField(Class<?>, String) - Static method in class com.google.common.truth.ReflectionUtil
 
getSubject() - Method in class com.google.common.truth.Subject
 
getSubject(FailureStrategy, T) - Method in class com.google.common.truth.SubjectFactory
 
getSubject(FailureStrategy, T) - Method in class org.truth0.subjects.SubjectFactory
Deprecated.
 
getSubject(FailureStrategy, T) - Method in class org.truth0.subjects.SubjectFactory
Deprecated.
 
getSubjectClass() - Method in class com.google.common.truth.SubjectFactory
 

H

has() - Method in class com.google.common.truth.CollectionSubject
Deprecated.
assertThat(foo).has().somePredicate() has been replaced with direct methods such as IterableSubject.containsAllOf(Object, Object, Object...), IterableSubject.contains(Object), etc.
hasCount(Object, int) - Method in class com.google.common.truth.MultisetSubject
Fails if the element does not have the given count.
hasField(String) - Method in class com.google.common.truth.Subject
 
hashCode() - Method in class com.google.common.truth.Subject
Deprecated.
Equals/Hashcode is not supported on Subjects. Their only use is as a holder of propositions. Use of equals() is deprecated and forwards to isEqualTo() and hashCode() is disallowed.
hasKey(K) - Method in class com.google.common.truth.MapSubject
Deprecated.
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.

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.
INTEGER - Static variable in class com.google.common.truth.IntegerSubject
Deprecated.
Use a for each style loop over your Iterable<Integer> instead.
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
 
is(long) - Method in class com.google.common.truth.IntegerSubject
 
is(short) - Method in class com.google.common.truth.IntegerSubject
 
is(byte) - Method in class com.google.common.truth.IntegerSubject
 
is(int) - Method in class com.google.common.truth.LongSubject
 
is(short) - Method in class com.google.common.truth.LongSubject
 
is(byte) - Method in class com.google.common.truth.LongSubject
 
is(Object) - Method in class com.google.common.truth.StringSubject
 
is(Object) - Method in class com.google.common.truth.Subject
Deprecated.
Use Subject.isEqualTo(Object) to check object equality or Subject.isSameAs(Object) to check reference equality.
isA(Class<?>) - Method in class com.google.common.truth.Subject
isAbsent() - Method in class com.google.common.truth.OptionalSubject
Fails if the Optional<T> is present.
isAssignableFrom(Class<?>) - Method in class com.google.common.truth.ClassSubject
Deprecated.
Use either assertThat(instance).isInstanceOf(clazz) or {code assertThat(clazzA).isAssignableTo(clazzB)} instead.
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.
isBetween(int, int) - Method in class com.google.common.truth.IntegerSubject
Deprecated.
Use isIn(Range.open(lower, upper)) instead.
isBetween(long, long) - Method in class com.google.common.truth.LongSubject
Deprecated.
Use isIn(Range.open(lower, upper)) instead.
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.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.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.
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.
isInclusivelyInRange(int, int) - Method in class com.google.common.truth.IntegerSubject
Deprecated.
Use isIn(Range.closed(lower, upper)) instead.
isInclusivelyInRange(long, long) - Method in class com.google.common.truth.LongSubject
Deprecated.
Use isIn(Range.closed(lower, upper)) instead.
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.
isNotA(Class<?>) - Method in class com.google.common.truth.Subject
Deprecated.
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(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.
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.
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() - Method in class com.google.common.truth.ListSubject
Fails if the list is not strictly ordered according to the natural ordering of its elements.
isOrdered(Comparator<T>) - Method in class com.google.common.truth.ListSubject
Fails if the list is not strictly ordered according to the given comparator.
isPartiallyOrdered() - Method in class com.google.common.truth.ListSubject
Fails if the list is not partially ordered according to the natural ordering of its elements.
isPartiallyOrdered(Comparator<T>) - Method in class com.google.common.truth.ListSubject
Fails if the list is not partially ordered according to the given comparator.
isPresent() - Method in class com.google.common.truth.OptionalSubject
Fails if the Optional<T> is absent.
isSameAs(Object) - Method in class com.google.common.truth.Subject
Fails if the subject is not the same instance as the given object.
isTrue() - Method in class com.google.common.truth.BooleanSubject
Fails if the subject is false.
item(T) - Method in class com.google.common.truth.CollectionSubject.Has
Deprecated.
IterableSubject<S extends IterableSubject<S,T,C>,T,C extends Iterable<T>> - Class in com.google.common.truth
Propositions for Iterable subjects.
iteratesAs(Object...) - Method in class com.google.common.truth.IterableSubject
Deprecated.
Use containsExactly(Object...).inOrder() instead.
iteratesAs(Iterable<?>) - Method in class com.google.common.truth.IterableSubject
Deprecated.
Use containsExactlyElementsIn(Iterable).inOrder() instead.
iteratesOverSequence(Object...) - Method in class com.google.common.truth.IterableSubject
Deprecated.
Use containsExactly(Object, Object...).inOrder() instead.
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

labeled(String) - Method in class com.google.common.truth.Subject
Deprecated.
lacksKey(K) - Method in class com.google.common.truth.MapSubject
Deprecated.
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
 
ListSubject<S extends ListSubject<S,T,C>,T,C extends List<T>> - Class in com.google.common.truth
Propositions for List subjects.
LONG - Static variable in class com.google.common.truth.LongSubject
Deprecated.
Use a for each style loop over your Iterable<Integer> instead.
LongSubject - Class in com.google.common.truth
Propositions for long subjects.
LongSubject(FailureStrategy, Long) - Constructor for class com.google.common.truth.LongSubject
 

M

MapSubject<S extends MapSubject<S,K,V,M>,K,V,M extends Map<K,V>> - Class in com.google.common.truth
Propositions for Map subjects.
MapSubject.WithValue<V> - Interface in com.google.common.truth
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.
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.
noneFrom(Iterable<T>) - Method in class com.google.common.truth.CollectionSubject.Has
noneOf(T) - Method in class com.google.common.truth.CollectionSubject.Has
Deprecated.
noneOf(T, T, T...) - Method in class com.google.common.truth.CollectionSubject.Has

O

ObjectArraySubject<T> - Class in com.google.common.truth
A Subject to handle testing propositions for Object[] and more generically T[].
OptionalSubject<T> - Class in com.google.common.truth
Propositions for Optional<T> subjects.
Ordered - Interface in com.google.common.truth
 
org.truth0 - package org.truth0
 
org.truth0.subjects - package org.truth0.subjects
 

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 int[].

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.
STRING - Static variable in class com.google.common.truth.StringSubject
Deprecated.
Use a for each style loop over your Iterable<Integer> instead.
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
 
Subject<S extends Subject<S,T>,T> - Class in org.truth0.subjects
Deprecated.
use Subject.
Subject(FailureStrategy, T) - Constructor for class org.truth0.subjects.Subject
Deprecated.
 
Subject.HasField - Interface in com.google.common.truth
 
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
 
SubjectFactory<S extends Subject<S,T>,T> - Class in org.truth0.subjects
Deprecated.
SubjectFactory() - Constructor for class org.truth0.subjects.SubjectFactory
Deprecated.
 

T

TableSubject<S extends TableSubject<S,R,C,V,T>,R,C,V,T extends com.google.common.collect.Table<R,C,V>> - 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 - Class in org.truth0
Deprecated.
TestVerb(FailureStrategy) - Constructor for class org.truth0.TestVerb
Deprecated.
 
TestVerb(FailureStrategy, String) - Constructor for class org.truth0.TestVerb
Deprecated.
 
that(T) - Method in class com.google.common.truth.AbstractVerb.DelegatedVerb
 
that(T) - 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(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(Collection<T>) - Method in class com.google.common.truth.TestVerb
Deprecated.
Use the Iterable overload instead.
that(List<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<K, V>) - 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<R, C, V>) - 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_ASSERTION_ERROR - Static variable in class org.truth0.Truth
Deprecated.
THROW_ASSUMPTION_ERROR - Static variable in class com.google.common.truth.TruthJUnit
 
THROW_ASSUMPTION_ERROR - Static variable in class org.truth0.Truth
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
 
Truth - Class in org.truth0
deprecated please use Truth.assert_() and TruthJUnit.assume() to access these capabilities.
Truth() - Constructor for class org.truth0.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.ListMultimapSubject
Returns a context-aware Subject for making assertions about the values for the given key within the Multimap.
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.
valuesForKeyDisplaySubject(Object, Subject<?, ?>) - Static method in class com.google.common.truth.MultimapSubject
 

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
 
withValue(V) - Method in interface com.google.common.truth.MapSubject.WithValue
withValue(Object) - Method in interface com.google.common.truth.Subject.HasField
Supplementary assertion in which a present field can be tested to determine if it contains a given value.
A B C D E F G H I L M N O P R S T U V W 

Copyright © 2014. All rights reserved.