We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e489c commit 4e7efb1Copy full SHA for 4e7efb1
1 file changed
guava/src/test/java/org/baeldung/hamcrest/HamcrestExamplesUnitTest.java
@@ -59,6 +59,12 @@ public final void givenCollectionIsEmpty_whenChecking_thenEmpty() {
59
assertThat(collection, empty());
60
assertThat(collection, emptyIterable());
61
}
62
+
63
+ @Test
64
+ public final void givenIterableIsEmpty_whenChecking_thenEmpty() {
65
+ final Iterable<String> collection = Lists.newArrayList();
66
+ assertThat(collection, emptyIterable());
67
+ }
68
69
@Test
70
public final void givenCollectionIsNotEmpty_whenChecking_thenNotEmpty() {
0 commit comments