Skip to content

Commit

Permalink
Adding test cases #399
Browse files Browse the repository at this point in the history
  • Loading branch information
mehyil committed Aug 17, 2017
1 parent 90e3ce2 commit c1c00a0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/test/java/org/cactoos/func/IoCheckedBiFuncTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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)
);
}
}

}

0 comments on commit c1c00a0

Please sign in to comment.