com.google.common.truth
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.
 Ordered exactly(E first)
          Attests that a Collection contains at all of the provided objects and only these objects or fails.
 Ordered exactly(E first, E second, E... rest)
          Attests that a Collection contains at all of the provided objects and only these objects or fails.
 Ordered exactlyAs(Collection<E> expected)
          Attests that a Collection contains at all of the objects contained in the provided collection and only these objects or fails.
 void item(E item)
          Attests that a Collection contains at least the item
 void noneFrom(Collection<E> expected)
          Attests that a Collection contains at none of the objects contained in the provided collection or fails, coping with duplicates in both the Collection and the parameters.
 void noneOf(E first)
          Attests that a Collection contains none of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
 void noneOf(E first, E second, E... rest)
          Attests that a Collection contains none of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
 

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.


exactly

Ordered exactly(E first)
Attests that a Collection contains at all of the provided objects and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unless inOrder() is explicitly called.


exactly

Ordered exactly(E first,
                E second,
                E... rest)
Attests that a Collection contains at all of the provided objects and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unless inOrder() is explicitly called.


exactlyAs

Ordered exactlyAs(Collection<E> expected)
Attests that a Collection contains at all of the objects contained in the provided collection and only these objects or fails. This copes with duplicates in both the Collection and the parameters. It makes no attestation about order unless inOrder() is explicitly called.


noneOf

void noneOf(E first)
Attests that a Collection contains none of the provided objects or fails, coping with duplicates in both the Collection and the parameters.


noneOf

void noneOf(E first,
            E second,
            E... rest)
Attests that a Collection contains none of the provided objects or fails, coping with duplicates in both the Collection and the parameters.


noneFrom

void noneFrom(Collection<E> expected)
Attests that a Collection contains at none of the objects contained in the provided collection or fails, coping with duplicates in both the Collection and the parameters.



Copyright © 2014. All rights reserved.