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

   ### Summary
   
   Adds the first dedicated unit test suite for `MessageProviderStub`, the 
test-only fallback message provider.
   
   The stub must stay loud when no real provider is configured: every operation 
throws a 501 `BusinessException`. The tests cover all four public operations.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/instance/message/MessageProviderStubTest.java`
     - `queryMessagesThrowsUnsupported` / `getMessageTraceThrowsUnsupported`: 
query and trace throw 501.
     - `getQueueOffsetsThrowsUnsupported` / 
`pullMessageAtOffsetThrowsUnsupported`: offset reads throw 501.
   
   ### Testing
   
   - `mvn -B test -Dtest=MessageProviderStubTest` passes (4 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]

Reply via email to