- 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
-
- CollectionSubject.Has<T,C extends Collection<T>> - Class in com.google.common.truth
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- IterableSubject<S extends IterableSubject<S,T,C>,T,C extends Iterable<T>> - Class in com.google.common.truth
-
- 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
-