Skip to content

Use JUnit 5.13 @ParametrizedClass #3175

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Use JUnit 5.13 @ParametrizedClass #3175

wants to merge 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Jul 2, 2025

Migrate to JUnit's class parametrization and remove our own @ParameterizedRedisTest infrastructure.

Class parametrization considers closeable arguments and closes these. Therefore, ManagedJedisConnectionFactory and ManagedLettuceConnectionFactory are now no longer Closable but closed through the ShutdownQueue on JVM exit so that we don't need to guard these from Class parametrization cleanup.

Also, we register extensions with the launcher value store to keep instances as long as possible.

Exclude commons-logging from beanutils so that we use the version managed by Spring that considers SLF4j loggers.

Closes #3167

mp911de added 2 commits July 2, 2025 15:59
Migrate to JUnit's class parametrization and remove our own ParameterizedRedisTest infrastructure.

Class parametrization considers closeable arguments and closes these. Therefore, ManagedJedisConnectionFactory and ManagedLettuceConnectionFactory are now no longer Closable but closed through the ShutdownQueue on JVM exit so that we don't need to guard these from Class parametrization cleanup.

Also, we register extensions with the launcher value store to keep instances as long as possible.

Exclude commons-logging from beanutils so that we use the version managed by Spring that considers SLF4j loggers.
@mp911de mp911de added this to the 4.0 M4 (2025.1.0) milestone Jul 2, 2025
@mp911de mp911de added the type: task A general task label Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to JUnit 5.13 parameterized tests classes
2 participants