stevecoots opened a new issue, #11552:
URL: https://github.com/apache/rocketmq/issues/11552

   ### Before Creating the Enhancement Request
   
   - [x] I have confirmed that this should be classified as an enhancement 
rather than a bug/feature.
   
   
   ### Summary
   
   Add focused unit tests for MessageSysFlag.getTransactionValue() and 
MessageSysFlag.resetTransactionValue() in the common module.
   
   ### Motivation
   
   Transaction bits share the same integer with other message flags. Direct 
assertions can catch regressions in transaction type extraction and updates, 
including accidental changes to unrelated flags.
   
   ### Describe the Solution You'd Like
   
   Add MessageSysFlagTest to cover extraction of all four transaction types, 
replacement of existing transaction bits, and clearing the transaction bits 
with TRANSACTION_NOT_TYPE. Verify that replacement and clearing preserve 
unrelated flags.
   
   ### Describe Alternatives You've Considered
   
   Transaction message tests can exercise these helpers indirectly. Direct unit 
tests make the expected bit behavior explicit and isolate failures in the 
helpers.
   
   ### Additional Context
   
   Related unit tests for TopicSysFlag and SubscriptionSysFlag were merged in 
#11404.


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