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

Upgrade junit4 to junit5 (jupiter) #43

Open
roimenashe opened this issue Oct 20, 2021 · 1 comment
Open

Upgrade junit4 to junit5 (jupiter) #43

roimenashe opened this issue Oct 20, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@roimenashe
Copy link
Member

No description provided.

@roimenashe roimenashe added the enhancement New feature or request label Oct 20, 2021
@roimenashe roimenashe self-assigned this Oct 20, 2021
@roimenashe
Copy link
Member Author

roimenashe commented Nov 4, 2021

Parameterized classes (including running Before/After Each/All with params) is not supported in JUnit5 (was supported in Junit4).

If you want to run tests at the class level multiple times with different parameters (object mappers, to include/exclude aerospike set…) you can’t, you need to add params at the method level without the ability of adding them into Before/After Each/All methods.

There is no official solution for this scenario in JUnit5, we are using class level parameters extensively in REST Client so currently the plan is to upgrade JUnit4 to JUnit5 once this feature will be officially supported.

Related JUnit GitHub issue/feature request: junit-team/junit5#878.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant