yyqdbngt opened a new pull request, #3571:
URL: https://github.com/apache/rocketmq-dashboard/pull/3571
### Summary
Adds the first dedicated unit test suite for `DLQProviderStub`, the
test-only fallback DLQ provider.
The stub must stay loud when no real provider is configured: every operation
throws a 501 `BusinessException` instead of silently degrading to empty
results. The tests cover all seven public operations.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/instance/dlq/DLQProviderStubTest.java`
- `listDLQGroupsThrowsUnsupported` /
`pagedListDLQGroupsThrowsUnsupported`: both list forms throw 501.
- `resendByRangeThrowsUnsupported` / `resendSelectedThrowsUnsupported`:
both resend forms throw 501.
- `exportMessagesThrowsUnsupported` / `exportExcelThrowsUnsupported`: both
export forms throw 501.
- `listMessagesThrowsUnsupported`: message paging throws 501.
### Testing
- `mvn -B test -Dtest=DLQProviderStubTest` passes (7 tests, all green).
--
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]