yyqdbngt opened a new pull request, #3604:
URL: https://github.com/apache/rocketmq-dashboard/pull/3604
### Summary
Adds the first dedicated unit test suite for `MessageTraceStatusEnum`, the
trace status vocabulary rendered by the message trace views.
Unlike plain enums each constant carries a separate lowercase wire string.
The tests pin the constant set, the status mappings and the name/status
distinction.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/model/trace/MessageTraceStatusEnumTest.java`
- `exposesAllTraceStatuses`: SUCCESS/FAILED/UNKNOWN exist.
- `successMapsToLowercaseWireString` / `failedMapsToLowercaseWireString` /
`unknownMapsToLowercaseWireString`: wire strings.
- `statusStringsAreDistinctFromEnumNames`: names and wire strings stay
separate.
### Testing
- `mvn -B test -Dtest=MessageTraceStatusEnumTest` passes (5 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]