Interface ParameterResolver

All Superinterfaces:
Extension
All Known Implementing Classes:
TypeBasedParameterResolver

@API(status=STABLE,
     since="5.0")
public interface ParameterResolver
extends Extension
ParameterResolver defines the API for Extensions that wish to dynamically resolve arguments for parameters at runtime.

If a constructor for a test class or a @Test, @BeforeEach, @AfterEach, @BeforeAll, or @AfterAll method declares a parameter, an argument for the parameter must be resolved at runtime by a ParameterResolver.

Constructor Requirements

Consult the documentation in Extension for details on constructor requirements.

Since:
5.0
See Also:
supportsParameter(ParameterContext, ExtensionContext), resolveParameter(ParameterContext, ExtensionContext), ParameterContext, TestInstanceFactory, TestInstancePostProcessor, TestInstancePreDestroyCallback