Repository navigation
MINOR: Use AssertJ instead of JUnit assertions in vectored IO tests - #4017
Merged
Merged
Conversation
Replace org.junit.jupiter.api.Assertions with AssertJ in the vectored IO tests of parquet-hadoop, following agents/docs/writing-tests.md. Add a RestrictImports enforcer rule that bans imports of org.junit.jupiter.api.Assertions and org.junit.jupiter.api.Assumptions in test code, so new tests use AssertJ. Co-authored-by: Isaac <no-reply@databricks.com>
nastra
force-pushed
the
assertj-vectored-io
branch
from
December 2, 2026 18:30
a685838 to
fd62a1c
Compare
wgtmac
approved these changes
Dec 3, 2026
Fokko
approved these changes
Dec 3, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
This replaces JUnit assertions with AssertJ assertions to align with the rest of the codebase. It also enforces using AssertJ assertions and assumptions so that going forward we don't run into the same issue again
What changes are included in this PR?
test-only changes that are updated to use AssertJ
Are these changes tested?
yes, existing tests
Are there any user-facing changes?
no