emptyiterable ex
This commit is contained in:
parent
b2e489ca64
commit
4e7efb1395
|
@ -59,6 +59,12 @@ public class HamcrestExamplesUnitTest {
|
||||||
assertThat(collection, empty());
|
assertThat(collection, empty());
|
||||||
assertThat(collection, emptyIterable());
|
assertThat(collection, emptyIterable());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public final void givenIterableIsEmpty_whenChecking_thenEmpty() {
|
||||||
|
final Iterable<String> collection = Lists.newArrayList();
|
||||||
|
assertThat(collection, emptyIterable());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public final void givenCollectionIsNotEmpty_whenChecking_thenNotEmpty() {
|
public final void givenCollectionIsNotEmpty_whenChecking_thenNotEmpty() {
|
||||||
|
|
Loading…
Reference in New Issue