gharris1727 commented on code in PR #13184: URL: https://github.com/apache/kafka/pull/13184#discussion_r1103260370
########## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/ErrorHandlingTaskTest.java: ########## @@ -494,15 +500,25 @@ private void expectTopicCreation(String topic) { } } + private void mockSinkTransform() { + FaultyPassthrough<SinkRecord> faultyPassthrough = new FaultyPassthrough<>(); + @SuppressWarnings("unchecked") + Class<? extends Transformation<?>> value = (Class<? extends Transformation<?>>) (Class<?>) FaultyPassthrough.class; + OngoingStubbing<Class<? extends Transformation<?>>> transformClass = when(transformation.transformClass()); + transformClass.thenReturn(value); Review Comment: This also works around the type issues i was having, incredible. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org