Skip to content

Commit

Permalink
👮 kcctl#17 Removed IOException import
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfosterdev committed Oct 7, 2021
1 parent fe1e21a commit cf56c83
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;

import org.junit.jupiter.api.AfterEach;
Expand Down Expand Up @@ -75,14 +74,14 @@ void should_handle_unauthorized_errors() throws Exception {
void should_allow_uncaught_kc_exceptions_to_bubble_up() {
var handler = new ExecutionExceptionHandler();
assertThrows(KafkaConnectException.class, () -> handler.handleExecutionException(
new KafkaConnectException("Woa", 999), null, null));
new KafkaConnectException("Woa", 999), null, null));
}

@Test
void should_allow_uncaught_exceptions_to_bubble_up() {
var handler = new ExecutionExceptionHandler();
assertThrows(Exception.class, () -> handler.handleExecutionException(
new Exception("Woa"), null, null));
new Exception("Woa"), null, null));
}
}
}

0 comments on commit cf56c83

Please sign in to comment.