Package com.google.common.truth
Class CollectionSubject.Has<T,C extends Collection<T>>
java.lang.Object
com.google.common.truth.CollectionSubject.Has<T,C>
- Enclosing class:
- CollectionSubject<S extends CollectionSubject<S,
T, C>, T, C extends Collection<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.UseIterableSubject.contains(Object)
instead.Deprecated.void
Deprecated.UseIterableSubject.containsAnyIn(Iterable<?>)
instead.void
Deprecated.UseIterableSubject.contains(Object)
instead.void
Deprecated.Attests that a Collection contains at all of the provided objects and only these objects or fails.Attests that a Collection contains at all of the provided objects and only these objects or fails.Attests that a Collection contains at all of the objects contained in the provided collection and only these objects or fails.void
Deprecated.UseIterableSubject.contains(Object)
instead.void
Deprecated.UseIterableSubject.containsNoneIn(Iterable<?>)
instead.void
Deprecated.UseIterableSubject.doesNotContain(Object)
instead.void
Deprecated.
-
Constructor Details
-
Has
public Has()
-
-
Method Details
-
item
Deprecated.UseIterableSubject.contains(Object)
instead.Attests that a Collection contains at least the item -
anyOf
Deprecated.UseIterableSubject.contains(Object)
instead.Attests that a Collection contains the provided object or fails. -
anyOf
Deprecated.Attests that a Collection contains at least one of the provided objects or fails. -
anyFrom
Deprecated.UseIterableSubject.containsAnyIn(Iterable<?>)
instead.Attests that a Collection contains at least one of the objects contained in the provided collection or fails. -
allOf
Deprecated.UseIterableSubject.contains(Object)
instead.Attests that a Collection contains at least all of the provided objects or fails, coping with duplicates in both the Collection and the parameters. -
allOf
Deprecated.Attests that a Collection contains at least all of the provided objects or fails, coping with duplicates in both the Collection and the parameters. -
allFrom
Deprecated.UseIterableSubject.containsAllIn(Iterable<?>)
instead.Attests that a Collection contains at least all of the objects contained in the provided collection or fails, coping with duplicates in both the Collection and the parameters. -
exactly
Attests that a Collection contains at all of the provided objects and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unlessinOrder()
is explicitly called. -
exactly
Attests that a Collection contains at all of the provided objects and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unlessinOrder()
is explicitly called. -
exactlyAs
Attests that a Collection contains at all of the objects contained in the provided collection and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unlessinOrder()
is explicitly called. -
noneOf
Deprecated.UseIterableSubject.doesNotContain(Object)
instead.Attests that a Collection contains none of the provided objects or fails, coping with duplicates in both the Collection and the parameters. -
noneOf
Deprecated.Attests that a Collection contains none of the provided objects or fails, coping with duplicates in both the Collection and the parameters. -
noneFrom
Deprecated.UseIterableSubject.containsNoneIn(Iterable<?>)
instead.Attests that a Collection contains at none of the objects contained in the provided collection or fails, coping with duplicates in both the Collection and the parameters.
-
IterableSubject.containsAllIn(Iterable<?>)
instead.