Mrmr888 opened a new pull request, #7870:
URL: https://github.com/apache/shenyu/pull/7870

   Closes #7869
   
   ### Changes
   
   Add unit tests for `MapUtils.computeIfAbsent` to cover:
   
   - An existing non-null value is returned without invoking the mapping 
function.
   - A missing value is computed, returned, and stored in the map.
   
   No production code is changed.
   
   ### Validation
   
   Passed on Windows with JDK 17:
   
   `.\mvnw.cmd -pl shenyu-common -am test "-Dtest=MapUtilsTest" 
"-Dsurefire.failIfNoSpecifiedTests=false"`
   
   Result: 3 tests, 0 failures, 0 errors, 0 skipped. BUILD SUCCESS.
   
   The full-project clean install has not been run.
   
   ### Checklist
   
   - [ ] I have read the contribution guidelines.
   - [x] I have added tests that cover the changes.
   - [ ] My local build passed `./mvnw clean install -Dmaven.javadoc.skip=true`.


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