Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(#1062) Fix tests to use IoCheckedBiProc
  • Loading branch information
Umbrah committed Apr 16, 2019
1 parent abb16f5 commit 7b026c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/org/cactoos/func/IoCheckedBiProcTest.java
Expand Up @@ -47,11 +47,11 @@ public void wrapsExceptions() throws IOException {
public void rethrowsIoException() {
final IOException exception = new IOException("intended");
try {
new IoCheckedBiFunc<>(
new IoCheckedBiProc<>(
(fst, scd) -> {
throw exception;
}
).apply(1, 2);
).exec(1, 2);
} catch (final IOException ex) {
new Assertion<>(
"Must re-throw IOException",
Expand All @@ -63,10 +63,10 @@ public void rethrowsIoException() {

@Test(expected = IllegalStateException.class)
public void runtimeExceptionGoesOut() throws IOException {
new IoCheckedBiFunc<>(
new IoCheckedBiProc<>(
(fst, scd) -> {
throw new IllegalStateException("intended to fail here");
}
).apply(1, 2);
).exec(1, 2);
}
}

0 comments on commit 7b026c2

Please sign in to comment.