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

   ### Summary
   
   Adds the first dedicated unit test suite for `PrometheusException`, the 
typed failure used by the Prometheus-compatible metrics sources.
   
   Both constructors must preserve the HTTP status code, message and optional 
cause. The tests cover the message-only form and the cause-carrying form.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/cluster/metrics/PrometheusExceptionTest.java`
     - `carriesStatusCodeAndMessage`: status code and message are exposed, 
cause stays null.
     - `carriesStatusCodeMessageAndCause`: the cause is preserved through the 
second constructor.
   
   ### Testing
   
   - `mvn -B test -Dtest=PrometheusExceptionTest` passes (2 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