Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Before/AfterArgumentSet lifecycle methods #4366

Merged
merged 15 commits into from
Mar 5, 2025

Conversation

marcphilipp
Copy link
Member

Overview

This PR introduces two new annotation for @ParameterizedClass-specific lifecycle methods.
Methods annotated with @BeforeArgumentSet or @AfterArgumentSet are called once before or after, respectively, each argument set the parameterized class is invoked with. Depending on their injectArguments annotation attribute, they may consume the invocation's arguments, for example, to initialize them.

Resolves #4352.


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@marcphilipp marcphilipp self-assigned this Mar 4, 2025
@marcphilipp marcphilipp force-pushed the marc/4352-parameterized-container-lifecycle-methods branch from b27ed7e to 47a923b Compare March 4, 2025 18:32
@marcphilipp marcphilipp merged commit 1e1f8d5 into main Mar 5, 2025
15 checks passed
@marcphilipp marcphilipp deleted the marc/4352-parameterized-container-lifecycle-methods branch March 5, 2025 09:22
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.

Add lifecycle methods for parameterized containers
1 participant