We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e1142b commit b2e489cCopy full SHA for b2e489c
1 file changed
guava/src/test/java/org/baeldung/hamcrest/HamcrestExamplesUnitTest.java
@@ -12,6 +12,7 @@
12
import static org.hamcrest.Matchers.hasSize;
13
import static org.hamcrest.Matchers.not;
14
import static org.junit.Assert.assertThat;
15
+import static org.hamcrest.Matchers.emptyIterable;
16
17
import java.util.Collections;
18
import java.util.List;
@@ -56,6 +57,7 @@ public final void whenVerifyingMultipleElementsArePartOfCollectionInAnyOrder_the
56
57
public final void givenCollectionIsEmpty_whenChecking_thenEmpty() {
58
final List<String> collection = Lists.newArrayList();
59
assertThat(collection, empty());
60
+ assertThat(collection, emptyIterable());
61
}
62
63
@Test
0 commit comments