yyqdbngt opened a new pull request, #3327: URL: https://github.com/apache/rocketmq-dashboard/pull/3327
## Summary Adds `AlertStateKeyTest`, a first unit test for the per-rule/fingerprint key that identifies persisted alert state. Coverage: - null, zero, and negative rule ids are rejected with `ruleId is required`; - null and blank fingerprints are rejected with `fingerprint is required`; - a valid key exposes its rule id and fingerprint with value equality/hashCode (a different rule id is not equal). ## Why The key is used to find/save state on every native alert evaluation; its compact-constructor validation and value semantics had no direct test. ## Testing `mvn -B test -Dtest=AlertStateKeyTest` — 3/3 pass; checkstyle (validate) clean. -- 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]
