public static interface CollectionSubject.Has<E,C extends Collection<E>>
Modifier and Type | Method and Description |
---|---|
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.
|
void item(E item)
void anyOf(E first)
void anyOf(E first, E second, E... rest)
void anyFrom(Collection<E> expected)
Ordered allOf(E first)
Ordered allOf(E first, E second, E... rest)
Ordered allFrom(Collection<E> expected)
Ordered exactly(E first)
inOrder()
is explicitly called.Ordered exactly(E first, E second, E... rest)
inOrder()
is explicitly called.Ordered exactlyAs(Collection<E> expected)
inOrder()
is explicitly called.void noneOf(E first)
void noneOf(E first, E second, E... rest)
void noneFrom(Collection<E> expected)
Copyright © 2017. All rights reserved.