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/06 01:31:41 UTC
[PR] test: cover the API result envelope factories [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3915:
URL: https://github.com/apache/rocketmq-dashboard/pull/3915
### Motivation
The common `Result<T>` envelope backs every controller response but had no unit coverage at all. This PR adds the first four cases.
### Changes
- `Result.ok(data)` carries the payload with the 200/success contract.
- `Result.ok()` leaves `data` null.
- `Result.error(code, message)` keeps the code and message with null data.
- Non-2xx business codes (409, 503) are preserved verbatim.
### Verification
- `mvn -B test -Dtest=ResultTest`: 4/4 passed, 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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: cover the API result envelope factories [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3915: test: cover the API result envelope factories
URL: https://github.com/apache/rocketmq-dashboard/pull/3915
--
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