-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mehyil
committed
Aug 17, 2017
1 parent
90e3ce2
commit c1c00a0
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,10 @@ | |
|
||
/** | ||
* Test case for {@link IoCheckedBiFunc}. | ||
* | ||
* @author Mehmet Yildirim ([email protected]) | ||
* @version $Id$ | ||
* @since 0.13 | ||
* @checkstyle JavadocMethodCheck (500 lines) | ||
* @since 0.13 | ||
*/ | ||
public final class IoCheckedBiFuncTest { | ||
|
||
|
@@ -54,4 +53,17 @@ public void rethrowsCheckedToUncheckedException() { | |
} | ||
} | ||
|
||
@Test | ||
public void throwsException() { | ||
try { | ||
new IoCheckedBiFunc<>( | ||
(fst, scd) -> new Exception("intended") | ||
).apply(1, 2); | ||
} catch (final Exception ex) { | ||
MatcherAssert.assertThat( | ||
ex, Matchers.any(Exception.class) | ||
); | ||
} | ||
} | ||
|
||
} |