Russole opened a new pull request, #23380: URL: https://github.com/apache/kafka/pull/23380
## Summary This PR migrates `LeaderEpochFileCacheTest` from the `core` Scala unit test source set to the `storage` Java test source set so that it lives alongside `LeaderEpochFileCache`. The migrated test preserves the existing coverage while using Java/JUnit style assertions. It also cleans up a few issues inherited from the Scala test: - Removes a duplicate truncation test case. - Localizes an unused `MockTime` field. - Makes the empty-cache truncation tests explicitly assert no exception is thrown. - Renames a numbered test case to describe the scenario. Jira: https://issues.apache.org/jira/browse/KAFKA-21036 ## Testing ```bash ./gradlew :storage:test --tests org.apache.kafka.storage.internals.epoch.LeaderEpochFileCacheTest -- 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]
