yyqdbngt opened a new pull request, #3598:
URL: https://github.com/apache/rocketmq-dashboard/pull/3598
### Summary
Adds the first dedicated unit test suite for `ClientProviderStub`, the
test-only fallback client provider.
The stub must stay loud when no real provider is configured: every operation
throws a 501 `BusinessException` instead of silently degrading. The tests cover
all three public operations.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/cluster/client/ClientProviderStubTest.java`
- `findConnectionsThrowsUnsupported`: connection lookup throws 501.
- `findProducerGroupsThrowsUnsupported`: producer group suggestions throw
501.
- `findProducerConnectionsThrowsUnsupported`: per-topic producer
connections throw 501.
### Testing
- `mvn -B test -Dtest=ClientProviderStubTest` passes (3 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]