yyqdbngt opened a new pull request, #3901: URL: https://github.com/apache/rocketmq-dashboard/pull/3901
### Motivation The `InstanceProvider` SPI test only exercised the large-page path of `getTopicConsumersPage`. The other default methods — topic/group paging, reset previews, the truncation wrapper, and the unsupported-operation defaults — had no coverage. This PR grows the suite from 1 to 10 cases. ### Changes - `getTopicConsumersPage` slices a middle window. - `listTopicsPage` and `listConsumerGroupsPage` slice across windows and echo page/pageSize with the true total. - `previewResetOffset` filters queue progress rows to the requested topic, sums the current lag, and blocks the reset when no queue matches. - `queryMessagesDetailed` wraps plain results as complete (not truncated). - Default `capabilities()` is empty, `consumeMessageDirectly` throws `UnsupportedOperationException`, and custom-trace lookups (`getMessageTrace` / `getMessageTraceByKey` with a trace topic) throw `BusinessException` 501. ### Verification - `mvn -B test -Dtest=InstanceProviderTest`: 10/10 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
