iit2009060 commented on code in PR #15060: URL: https://github.com/apache/kafka/pull/15060#discussion_r1440115636
########## core/src/main/java/kafka/log/remote/RemoteLogManager.java: ########## @@ -1340,6 +1346,10 @@ public FetchDataInfo read(RemoteStorageFetchInfo remoteStorageFetchInfo) throws Utils.closeQuietly(remoteSegInputStream, "RemoteLogSegmentInputStream"); } } + // for testing + public RemoteLogInputStream getRemoteLogInputStream(InputStream in) { Review Comment: @kamalcph I want to mock the RemoteLoginputStream so that i can invoke and mockthe nextBatch function accordingly. In the first iteration I want the firstBatch to be null and in the next iteration firstBatch to be available. ` when(remoteLogInputStream.nextBatch()).thenReturn(null, firstBatch);` -- 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