junit5 icon indicating copy to clipboard operation
junit5 copied to clipboard

ArgumentsProvider: stabilize before deprecating

Open defaultbranch opened this issue 1 month ago • 2 comments

Updating to Spring Boot 4.0.0 which now references junit-jupiter-params:6.0.1, the method provideArguments(@SuppressWarnings("unused") ExtensionContext context) is marked deprecated with the recommendation to use provideArguments(ParameterDeclarations parameters, ExtensionContext context) which is marked experimental.

I notice that this was raised before and marked as resolved in #4685, but it is still present in 6.0.1 and also seems to be unresolved in the upcoming 6.1.0:

https://github.com/junit-team/junit-framework/blob/badca3b87c0100a59d8acd41205df261b3934697/junit-jupiter-params/src/main/java/org/junit/jupiter/params/provider/ArgumentsProvider.java#L75-L76

Could we get a new stable (or at least not experimental) api before deprecating the old one please?

defaultbranch avatar Nov 22 '25 07:11 defaultbranch

Could we get a new stable (or at least not experimental) api before deprecating the old one please?

That's a fair point. 🙂 We'll mark it as maintained or stable in 6.0.2.

marcphilipp avatar Nov 22 '25 09:11 marcphilipp

I would like to take this issue. Preparing a PR now.

Vishalup29 avatar Nov 24 '25 05:11 Vishalup29