Skip to content

MINOR: Use AssertJ instead of JUnit assertions in vectored IO tests - #4017

Merged
Fokko merged 1 commit into
apache:masterfrom
nastra:assertj-vectored-io
Dec 3, 2026
Merged

Fokko merged 1 commit into
apache:masterfrom
nastra:assertj-vectored-io

Conversation

@nastra

@nastra nastra commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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

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
nastra force-pushed the assertj-vectored-io branch from a685838 to fd62a1c Compare December 2, 2026 18:30
@Fokko
Fokko merged commit 78c76e8 into apache:master Dec 3, 2026
5 checks passed
@Fokko

Fokko commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Thanks @nastra for updating this and @wgtmac for the review

@nastra
nastra deleted the assertj-vectored-io branch December 3, 2026 08:48
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.

3 participants