Skip to content

[Test] Add transactionId assertion in TestDefaultKeyedFile.#4176

Merged
czy006 merged 2 commits intoapache:masterfrom
slfan1989:test/txid-assertion
Apr 13, 2026
Merged

[Test] Add transactionId assertion in TestDefaultKeyedFile.#4176
czy006 merged 2 commits intoapache:masterfrom
slfan1989:test/txid-assertion

Conversation

@slfan1989
Copy link
Copy Markdown
Contributor

Why are the changes needed?

This PR completes the test coverage for DefaultKeyedFile by implementing the transactionId assertion that was previously marked as TODO. The change ensures that the transactionId field is properly validated in the test case.

Close #xxx.

Brief change log

  • Replace // TODO check transactionId comment with actual assertion in TestDefaultKeyedFile.java:54
  • Add Assert.assertEquals(txId, defaultKeyedFile.transactionId()) to verify the transaction ID is correctly set

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@czy006 czy006 merged commit 10d13d4 into apache:master Apr 13, 2026
6 checks passed
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.

2 participants