ijuma commented on code in PR #12948:
URL: https://github.com/apache/kafka/pull/12948#discussion_r1240004510


##########
core/src/test/scala/kafka/server/KafkaRequestHandlerTest.scala:
##########
@@ -53,7 +53,7 @@ class KafkaRequestHandlerTest {
     val context = new RequestContext(requestHeader, "0", 
mock(classOf[InetAddress]), new KafkaPrincipal("", ""),
       new ListenerName(""), SecurityProtocol.PLAINTEXT, 
mock(classOf[ClientInformation]), false)
     val request = new RequestChannel.Request(0, context, time.nanoseconds(),
-      mock(classOf[MemoryPool]), mock(classOf[ByteBuffer]), metrics)
+      mock(classOf[MemoryPool]), ByteBuffer.allocate(0), metrics)

Review Comment:
   It's not possible to mock this class with Java 20, but there's no reason to 
mock 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to