Skip to content

[ISSUE #11552] Add unit tests for transaction flags in MessageSysFlag - #11554

Open
stevecoots wants to merge 1 commit into
apache:developfrom
stevecoots:test/message-sysflag-transaction-flags
Open

stevecoots wants to merge 1 commit into
apache:developfrom
stevecoots:test/message-sysflag-transaction-flags

Conversation

@stevecoots

Copy link
Copy Markdown

Which Issue(s) This PR Fixes

Brief Description

Add regression tests for transaction flag handling in MessageSysFlag in the common module. The tests verify that all four transaction types are read correctly, that replacing a transaction type clears the previous transaction bits, and that resetting to TRANSACTION_NOT_TYPE clears the transaction bits. They also verify that replacing or clearing the transaction type preserves unrelated message flags.

How Did You Test This Change?

Ran MessageSysFlagTest, TopicSysFlagTest, and SubscriptionSysFlagTest successfully with Maven:

mvn -B -pl common -am '-Dtest=MessageSysFlagTest,TopicSysFlagTest,SubscriptionSysFlagTest' '-Dsurefire.failIfNoSpecifiedTests=false' test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Add unit tests for transaction flags in MessageSysFlag

1 participant