yyqdbngt opened a new pull request, #3826:
URL: https://github.com/apache/rocketmq-dashboard/pull/3826

   ### Motivation
   
   The existing `EntityIdsTest` covers trimmed positive ids and the 
zero/negative rejection, but the blank-input, non-numeric and long-boundary 
branches of `parseId` were untested.
   
   ### Changes
   
   - `rejectsBlankIdentifiers`: null and whitespace-only values raise 400 `id 
is required`.
   - `rejectsNonNumericIdentifiers`: alphabetic and suffixed values (`abc`, 
`42L`) raise 400 with the numeric-value message.
   - `parsesFullLongRangePositiveValues`: `Long.MAX_VALUE` parses, while one 
past the boundary overflows and is rejected as non-numeric.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=EntityIdsTest
   [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


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