junrao commented on a change in pull request #8562: URL: https://github.com/apache/kafka/pull/8562#discussion_r416760588
########## File path: core/src/test/scala/unit/kafka/server/ReplicaAlterLogDirsThreadTest.scala ########## @@ -243,9 +245,9 @@ class ReplicaAlterLogDirsThreadTest { responseCallback = callbackCaptor.capture(), isolationLevel = ArgumentMatchers.eq(IsolationLevel.READ_UNCOMMITTED), clientMetadata = ArgumentMatchers.eq(None) - )).thenAnswer(_ => { - callbackCaptor.getValue.apply(Seq((topicPartition, responseData))) - }) + )) thenAnswer new Answer[Unit] { Review comment: Should we keep the` .` before `thenAnswer` and use `[]`? The existing convention is the following. ``` when(...) .thenAnswer(new Answer[Unit] { override def answer(invocation: InvocationOnMock): Unit = { ... } }) ``` ---------------------------------------------------------------- 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