Skip to content

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

2 participants