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

   ## Summary
   
   Adds `ToolListPaginationTest`, a first unit test for the shared 
page/pageSize parsing and result envelope used by list-style AI tool handlers.
   
   Coverage:
   - absent `page`/`pageSize` inputs fall back to the defaults (1 / 20), 
regardless of unrelated keys;
   - positive integers are read from `Integer` and `Long` inputs;
   - zero, negative, and non-numeric values are rejected with the expected 
`page/pageSize must be positive` messages;
   - `pagedResult` assembles the envelope carrying the items plus the 
`PageResult` total/page/size.
   
   ## Why
   
   Every list-style tool handler derives its paging from these helpers, so the 
parsing contract guards the tool surface; it had no direct test.
   
   ## Testing
   
   `mvn -B test -Dtest=ToolListPaginationTest` — 4/4 pass; checkstyle 
(validate) clean.


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