org.truth0.subjects
Interface CollectionSubject.Has<E,C extends Collection<E>>

Enclosing class:
CollectionSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>>

public static interface CollectionSubject.Has<E,C extends Collection<E>>


Method Summary
 Ordered allFrom(Collection<E> expected)
          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.
 Ordered allOf(E first)
          Attests that a Collection contains at least all of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
 Ordered allOf(E first, E second, E... rest)
          Attests that a Collection contains at least all of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
 void anyFrom(Collection<E> expected)
          Attests that a Collection contains at least one of the objects contained in the provided collection or fails.
 void anyOf(E first)
          Attests that a Collection contains at least one of the provided objects or fails.
 void anyOf(E first, E second, E... rest)
          Attests that a Collection contains at least one of the provided objects or fails.
 void item(E item)
          Attests that a Collection contains at least the item
 

Method Detail

item

void item(E item)
Attests that a Collection contains at least the item


anyOf

void anyOf(E first)
Attests that a Collection contains at least one of the provided objects or fails.


anyOf

void anyOf(E first,
           E second,
           E... rest)
Attests that a Collection contains at least one of the provided objects or fails.


anyFrom

void anyFrom(Collection<E> expected)
Attests that a Collection contains at least one of the objects contained in the provided collection or fails.


allOf

Ordered allOf(E first)
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

Ordered allOf(E first,
              E second,
              E... rest)
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

Ordered allFrom(Collection<E> expected)
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.



Copyright © 2012. All Rights Reserved.