wycccccc commented on a change in pull request #10850: URL: https://github.com/apache/kafka/pull/10850#discussion_r648531262
########## File path: streams/src/test/java/org/apache/kafka/streams/internals/metrics/ClientMetricsTest.java ########## @@ -135,45 +124,38 @@ public void shouldGetFailedStreamThreadsSensor() { false, description ); - replay(StreamsMetricsImpl.class, streamsMetrics); final Sensor sensor = ClientMetrics.failedStreamThreadSensor(streamsMetrics); - - verify(StreamsMetricsImpl.class, streamsMetrics); Review comment: I think t`PowerMock.verify()` is used to verify whether` PowerMock.replay()` has been executed. `replay()`method is not needed in mockito, so there is no need to verify 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org