jiaweigege opened a new pull request, #11599: URL: https://github.com/apache/rocketmq/pull/11599
### Which Issue(s) This PR Fixes Fixes #11598 ### Brief Description Add four unit tests for `RoundQueue` in the `common` module. The tests cover value-based duplicate detection, eviction with capacity one, FIFO eviction when full, and preservation of insertion order after a rejected duplicate insertion. Only a test file is added. No production code or build configuration is changed. ### How Did You Test This Change? Run the targeted tests with: ```sh mvn -B -pl common -am -Dtest=RoundQueueTest -Dsurefire.failIfNoSpecifiedTests=false test ``` Results on macOS ARM64 with OpenJDK 17: - All four tests passed, with no failures, errors, or skipped tests. - Checkstyle reported zero violations. - SpotBugs reported no findings. - JaCoCo reported coverage of all 11 executable lines and all four branches in `RoundQueue`. -- 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]
