Yuanhong-Zheng opened a new pull request, #11612:
URL: https://github.com/apache/rocketmq/pull/11612

   ### Which Issue(s) This PR Fixes
   
   - Fixes #11611
   
   ### Brief Description
   
   Add JUnit coverage for `StatisticsBriefInterceptor`. The tests verify that 
named values reach the corresponding summary when configured in a different 
order from the statistics item, missing values are skipped, unknown names are 
rejected, and resetting the interceptor begins a new sampling interval for 
every configured summary.
   
   ### How Did You Test This Change?
   
   - Compiled the interceptor, its supporting statistics classes, and both test 
classes with JDK 17 using `javac --release 8 -Xlint:all -Werror`.
   - Ran `StatisticsBriefInterceptorTest` and `StatisticsBriefTest` with JUnit 
4.13.2. All 11 tests passed.
   - In isolated copies, independently reversed each of the four behaviors and 
verified that its corresponding new test failed.
   


-- 
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