Skip to content

Commit

Permalink
#490 throw
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 15, 2017
1 parent eece3f7 commit 70eda3c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/java/org/cactoos/map/MapOfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
package org.cactoos.map;

import java.io.IOException;
import java.security.SecureRandom;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
Expand Down Expand Up @@ -93,7 +94,12 @@ public void createsMapWithFunctions() {
"Can't create a map with functions as values",
new MapOf<Integer, Scalar<Boolean>>(
new MapEntry<>(0, () -> true),
new MapEntry<>(1, () -> true)
new MapEntry<>(
1,
() -> {
throw new IOException("oops");
}
)
),
Matchers.hasKey(0)
);
Expand Down

0 comments on commit 70eda3c

Please sign in to comment.