org.truth0.subjects
Class CollectionSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>>
java.lang.Object
org.truth0.subjects.Subject<S,C>
org.truth0.subjects.IterableSubject<S,T,C>
org.truth0.subjects.CollectionSubject<S,T,C>
- Direct Known Subclasses:
- ListSubject
@GwtCompatible
public class CollectionSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>>
- extends IterableSubject<S,T,C>
Methods inherited from class org.truth0.subjects.Subject |
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomLabel, is, isEqualTo, isNotEqualTo, isNotNull, isNull, labeled |
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.