Class VertxTestContextParameterProvider
java.lang.Object
io.vertx.junit5.VertxTestContextParameterProvider
- All Implemented Interfaces:
VertxExtensionParameterProvider<VertxTestContext>
public class VertxTestContextParameterProvider
extends Object
implements VertxExtensionParameterProvider<VertxTestContext>
Vert.x test context parameter provider holder class.
The implementation does not do anything since that type is a built-in special case, but we need it for the injection mechanism to operate.
- Author:
- Julien Ponge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkey()A string to identify the parameter in an extension context.newInstance(org.junit.jupiter.api.extension.ExtensionContext extensionContext, org.junit.jupiter.api.extension.ParameterContext parameterContext) Provide a new parameter instance.A consumer to close the resource.type()The parameter type.
-
Constructor Details
-
VertxTestContextParameterProvider
public VertxTestContextParameterProvider()
-
-
Method Details
-
type
Description copied from interface:VertxExtensionParameterProviderThe parameter type.- Specified by:
typein interfaceVertxExtensionParameterProvider<VertxTestContext>- Returns:
- the parameter type
-
key
Description copied from interface:VertxExtensionParameterProviderA string to identify the parameter in an extension context.In most cases it should be a constant.
- Specified by:
keyin interfaceVertxExtensionParameterProvider<VertxTestContext>- Returns:
- the identifier
-
newInstance
public VertxTestContext newInstance(org.junit.jupiter.api.extension.ExtensionContext extensionContext, org.junit.jupiter.api.extension.ParameterContext parameterContext) Description copied from interface:VertxExtensionParameterProviderProvide a new parameter instance.- Specified by:
newInstancein interfaceVertxExtensionParameterProvider<VertxTestContext>- Parameters:
extensionContext- the extension contextparameterContext- the parameter context- Returns:
- the new instance
-
parameterClosingConsumer
Description copied from interface:VertxExtensionParameterProviderA consumer to close the resource.- Specified by:
parameterClosingConsumerin interfaceVertxExtensionParameterProvider<VertxTestContext>- Returns:
- the consumer
-