Skip to content

GH-4015: Use JUnit's ParameterizedClass for class-level parameterization - #4016

Merged
Fokko merged 1 commit into
apache:masterfrom
nastra:parameterized-class
Dec 3, 2026
Merged

Fokko merged 1 commit into
apache:masterfrom
nastra:parameterized-class

Conversation

@nastra

@nastra nastra commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

This improves some of the existing tests that used to repeatedly define @ParameterizedTest on each method by switching to JUnit's @ParameterizedClass.

Fixes #4015

What changes are included in this PR?

Switch from @ParameterizedTest to @ParameterizedClass

Are these changes tested?

yes

Are there any user-facing changes?

no

@nastra
nastra force-pushed the parameterized-class branch from 378a501 to 8c55940 Compare December 2, 2026 18:12
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

public class TestParquetRewriterBloomFilterPaths {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new file was added because it uses a different pattern than others in ParquetRewriterTest.java?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes exactly, sorry I forgot to mention that. The reason for that is because it doesn't fit well with the other methods in the tests and their parameterization, so I figured the best is probably to just extract it into its own class

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup @nastra

@Fokko
Fokko merged commit a873924 into apache:master Dec 3, 2026
5 checks passed
@nastra
nastra deleted the parameterized-class branch December 3, 2026 13:13
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.

Improve tests by switching to JUnit's ParameterizedClass annotation

3 participants