C0urante commented on code in PR #11983: URL: https://github.com/apache/kafka/pull/11983#discussion_r863330742
########## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/distributed/ConnectProtocolCompatibilityTest.java: ########## @@ -51,95 +41,58 @@ public class ConnectProtocolCompatibilityTest { private ConnectorTaskId taskId2x0 = new ConnectorTaskId(connectorId2, 0); private ConnectorTaskId taskId3x0 = new ConnectorTaskId(connectorId3, 0); - @Rule - public MockitoRule rule = MockitoJUnit.rule(); - - @Mock - private KafkaConfigBackingStore configStorage; - private ClusterConfigState configState; - - @Before - public void setup() { - configStorage = mock(KafkaConfigBackingStore.class); - configState = new ClusterConfigState( - 1L, - null, - Collections.singletonMap(connectorId1, 1), - Collections.singletonMap(connectorId1, new HashMap<>()), - Collections.singletonMap(connectorId1, TargetState.STARTED), - Collections.singletonMap(taskId1x0, new HashMap<>()), - Collections.emptySet()); - } - - @After - public void teardown() { - verifyNoMoreInteractions(configStorage); - } Review Comment: All of this is completely unnecessary and can be removed without diminishing testing coverage. -- 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