Skip to content

Commit 77b1225

Browse files
author
Eugen Paraschiv
committed
minor work
1 parent 930f2c3 commit 77b1225

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guava/src/test/java/org/baeldung/guava/collections/GuavaCollectionsExamplesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import java.util.Collection;
77
import java.util.List;
8+
import java.util.NoSuchElementException;
89
import java.util.Set;
910

1011
import org.junit.Test;
@@ -94,7 +95,7 @@ public final boolean apply(final String input) {
9495

9596
//
9697

97-
@Test
98+
@Test(expected = NoSuchElementException.class)
9899
public final void givenNoSearchResult_whenFindingElementInIterable_thenNoException() {
99100
final Iterable<String> theCollection = Sets.newHashSet("abcd", "efgh", "ijkl");
100101

0 commit comments

Comments
 (0)