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>
Methods inherited from class com.google.common.truth.Subject |
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isNotA, isNotEqualTo, isNotNull, isNull, labeled, named |
CollectionSubject
protected CollectionSubject(FailureStrategy failureStrategy,
C collection)
create
public static <T,C extends Collection<T>> CollectionSubject<? extends CollectionSubject<?,T,C>,T,C> create(FailureStrategy failureStrategy,
Collection<T> collection)
isEmpty
public void isEmpty()
- Attests that a Collection is empty or fails.
- Overrides:
isEmpty
in class IterableSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>>
has
@CheckReturnValue
public CollectionSubject.Has<T,C> has()
Copyright © 2014. All rights reserved.