wycccccc commented on a change in pull request #10835: URL: https://github.com/apache/kafka/pull/10835#discussion_r648145898
########## File path: streams/src/test/java/org/apache/kafka/streams/state/internals/metrics/NamedCacheMetricsTest.java ########## @@ -49,37 +41,28 @@ private static final String HIT_RATIO_MIN_DESCRIPTION = "The minimum cache hit ratio"; private static final String HIT_RATIO_MAX_DESCRIPTION = "The maximum cache hit ratio"; - private final StreamsMetricsImpl streamsMetrics = createMock(StreamsMetricsImpl.class); - private final Sensor expectedSensor = mock(Sensor.class); + private Sensor expectedSensor = Mockito.mock(Sensor.class); Review comment: OK,I have changed.Thanks your suggestion. -- 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