From 77b1225fddbd432cc1b313c8d7271e04a45ffebd Mon Sep 17 00:00:00 2001 From: Eugen Paraschiv Date: Tue, 22 Oct 2013 18:38:49 +0300 Subject: [PATCH] minor work --- .../guava/collections/GuavaCollectionsExamplesTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guava/src/test/java/org/baeldung/guava/collections/GuavaCollectionsExamplesTest.java b/guava/src/test/java/org/baeldung/guava/collections/GuavaCollectionsExamplesTest.java index 7183f246da..326a1964fb 100644 --- a/guava/src/test/java/org/baeldung/guava/collections/GuavaCollectionsExamplesTest.java +++ b/guava/src/test/java/org/baeldung/guava/collections/GuavaCollectionsExamplesTest.java @@ -5,6 +5,7 @@ import static org.junit.Assert.assertTrue; import java.util.Collection; import java.util.List; +import java.util.NoSuchElementException; import java.util.Set; import org.junit.Test; @@ -94,7 +95,7 @@ public class GuavaCollectionsExamplesTest { // - @Test + @Test(expected = NoSuchElementException.class) public final void givenNoSearchResult_whenFindingElementInIterable_thenNoException() { final Iterable theCollection = Sets.newHashSet("abcd", "efgh", "ijkl");