Package com.google.common.truth
Class CollectionSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>>
java.lang.Object
com.google.common.truth.Subject<S,C>
com.google.common.truth.IterableSubject<S,T,C>
com.google.common.truth.CollectionSubject<S,T,C>
- Direct Known Subclasses:
ListSubject
public class CollectionSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>>
extends IterableSubject<S,T,C>
Propositions for
Collection
subjects.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.HasField
-
Field Summary
Fields inherited from class com.google.common.truth.Subject
failureStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <T,
C extends Collection<T>>
CollectionSubject<? extends CollectionSubject<?, T, C>, T, C> create
(FailureStrategy failureStrategy, Collection<T> collection) has()
Methods inherited from class com.google.common.truth.IterableSubject
contains, containsAllIn, containsAllOf, containsAnyIn, containsAnyOf, containsExactly, containsExactlyElementsIn, containsNoDuplicates, containsNoneIn, containsNoneOf, containsOnlyElements, containsOnlyElementsIn, create, doesNotContain, hasSize, isEmpty, isNotEmpty, iteratesAs, iteratesAs, iteratesOverSequence
Methods inherited from class com.google.common.truth.Subject
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, named
-
Constructor Details
-
CollectionSubject
CollectionSubject(FailureStrategy failureStrategy, C collection)
-
-
Method Details
-
create
static <T,C extends Collection<T>> CollectionSubject<? extends CollectionSubject<?,T, createC>, T, C> (FailureStrategy failureStrategy, Collection<T> collection) -
has
-