yyqdbngt opened a new pull request, #3701:
URL: https://github.com/apache/rocketmq-dashboard/pull/3701
### Summary
Adds the first dedicated unit test suite for `LlmOperationResultVO`, the
result envelope returned by the LLM config operations.
The class exposes success/failure factories. The tests pin the zero/one
status convention, the default `llm.config.invalid` code and the code/hint
variant.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/ops/ai/LlmOperationResultVOTest.java`
- `successFactoryReturnsZeroStatusWithMessage` /
`successWithModelsFactoryCarriesModelList`: success shapes.
- `failureFactoryDefaultsToInvalidConfigCode` /
`failureFactoryCarriesCodeAndHint`: failure shapes.
### Testing
- `mvn -B test -Dtest=LlmOperationResultVOTest` 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]