m1a2st commented on code in PR #16330:
URL: https://github.com/apache/kafka/pull/16330#discussion_r1639283310


##########
connect/runtime/src/test/java/org/apache/kafka/connect/integration/ConnectIntegrationTestUtils.java:
##########
@@ -16,28 +16,26 @@
  */
 package org.apache.kafka.connect.integration;
 
-import org.junit.rules.TestRule;
-import org.junit.rules.TestWatcher;
-import org.junit.runner.Description;
+import org.junit.jupiter.api.extension.AfterEachCallback;
+import org.junit.jupiter.api.extension.BeforeEachCallback;
+import org.junit.jupiter.api.extension.ExtensionContext;
+import org.junit.jupiter.api.extension.TestWatcher;
 import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * A utility class for Connect's integration tests
  */
-public class ConnectIntegrationTestUtils {
-    public static TestRule newTestWatcher(Logger log) {
-        return new TestWatcher() {
-            @Override
-            protected void starting(Description description) {
-                super.starting(description);
-                log.info("Starting test {}", description.getMethodName());
-            }
+public class ConnectIntegrationTestUtils implements TestWatcher, 
BeforeEachCallback, AfterEachCallback {

Review Comment:
   It's a good idea, I will remove it



-- 
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

Reply via email to