org.truth0.subjects
Class IterableSubject<S extends IterableSubject<S,T,C>,T,C extends Iterable<T>>
java.lang.Object
org.truth0.subjects.Subject<S,C>
org.truth0.subjects.IterableSubject<S,T,C>
- Direct Known Subclasses:
- CollectionSubject
@GwtCompatible
public class IterableSubject<S extends IterableSubject<S,T,C>,T,C extends Iterable<T>>
- extends Subject<S,C>
- Author:
- Kevin Bourrillion
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IterableSubject
protected IterableSubject(FailureStrategy failureStrategy,
C list)
create
public static <T,C extends Iterable<T>> IterableSubject<? extends IterableSubject<?,T,C>,T,C> create(FailureStrategy failureStrategy,
Iterable<T> list)
isEmpty
public void isEmpty()
- Attests that the subject holds no more objects, or fails.
isNotEmpty
public void isNotEmpty()
- Attests that the subject holds one or more objects, or fails
iteratesOverSequence
public void iteratesOverSequence(Object... expectedItems)
- Asserts that the items are supplied in the order given by the iterable. For
Collections and other things which contain items but may not have guaranteed
iteration order, this method should be overridden.
Copyright © 2012. All Rights Reserved.