yyqdbngt opened a new pull request, #3810:
URL: https://github.com/apache/rocketmq-dashboard/pull/3810

   ### Motivation
   
   The existing `ProviderStubContractTest` verifies the 501 contract for the 
most common stub methods, but several provider-stub entry points added later 
were not part of the parameterised contract: message queue offsets, message 
pull-at-offset, paged DLQ message listing, selected-message resend and Excel 
export.
   
   ### Changes
   
   - Adds five new contract cases so every current provider-stub method throws 
`BusinessException(501)` when no real provider is configured:
     - `MessageProviderStub.getQueueOffsets`
     - `MessageProviderStub.pullMessageAtOffset`
     - `DLQProviderStub.listMessages` (paged)
     - `DLQProviderStub.resendMessages(selected)`
     - `DLQProviderStub.exportExcel`
   
   ### Verification
   
   ```
   mvn -B test -Dtest=ProviderStubContractTest
   [INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0
   [INFO] 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]

Reply via email to