T - the Element type of the Iteratorpublic interface AssertThatIterable<T> extends AssertThatObject<Iterable<T>>
This interface is returned by the various methods
assertThatIterable exposed by
TestSuite.
assertion on object are also available on iterable.| Modifier and Type | Method and Description |
|---|---|
default void |
contains(T... items)
Check that the iterable contains the items.
|
default void |
containsInAnyOrder(T... items)
Check that the iterable contains the items in any order.
|
default void |
containsInAnyOrderMatching(org.hamcrest.Matcher<? super T>... items)
Check that the iterable contains the items in any order.
|
default void |
containsMatching(org.hamcrest.Matcher<? super T>... items)
Check that the iterable contains the items.
|
default void |
hasNotSize(int size)
Check the size is not the one passed.
|
default void |
hasSize(int size)
Check the size of the iterable.
|
default void hasSize(int size)
size - the expected size.default void hasNotSize(int size)
size - the not expected size.default void contains(T... items)
items - the expected items.default void containsMatching(org.hamcrest.Matcher<? super T>... items)
items - the matcher for each item.default void containsInAnyOrder(T... items)
items - the expected items.default void containsInAnyOrderMatching(org.hamcrest.Matcher<? super T>... items)
items - the matcher for each item.Copyright © 2014. All rights reserved.