Skip to content

Commit

Permalink
Use new scope in ParameterizedTestParameterResolver
Browse files Browse the repository at this point in the history
This extension is not affected by the change in behavior since it does
not support resolving parameters for test class constructors.
  • Loading branch information
marcphilipp committed Oct 10, 2024
1 parent cf524e5 commit 14d99b4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class ParameterizedTestParameterResolver implements ParameterResolver, AfterTest
this.invocationIndex = invocationIndex;
}

@Override
public ExtensionContextScope getExtensionContextScopeDuringTestClassInstanceConstruction(
ExtensionContext rootContext) {
return ExtensionContextScope.TEST_METHOD;
}

@Override
public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext) {
Executable declaringExecutable = parameterContext.getDeclaringExecutable();
Expand Down

0 comments on commit 14d99b4

Please sign in to comment.