You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 03:11:58 UTC

[PR] test(tool): cover ToolListPagination defaults and validation [rocketmq-dashboard]

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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(tool): cover ToolListPagination defaults and validation [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3255: test(tool): cover ToolListPagination defaults and validation
URL: https://github.com/apache/rocketmq-dashboard/pull/3255


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org