quzizii opened a new pull request, #10477:
URL: https://github.com/apache/rocketmq/pull/10477

   ### Which Issue(s) This PR Fixes
   
   - Fixes #10475 
   
   ### Brief Description
   
   Add unit tests for `CleanupPolicyUtils`.
   
   The added tests cover cleanup policy resolution from `TopicConfig` 
attributes, including:
   
   - default policy fallback when `TopicConfig` is absent
   - default policy fallback when attributes are `null` or empty
   - default policy fallback when `cleanup.policy` is missing
   - explicit `DELETE` policy
   - explicit `COMPACTION` policy
   - invalid cleanup policy value
   - `isCompaction()` behavior for compaction and non-compaction cases
   
   This PR only adds regression tests and does not change production logic.
   
   ### How Did You Test This Change?
   
   Run unit tests locally and verified all tests pass successfully.


-- 
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