Class CheckpointParameterProvider
java.lang.Object
io.vertx.junit5.CheckpointParameterProvider
- All Implemented Interfaces:
VertxExtensionParameterProvider<Checkpoint>
public class CheckpointParameterProvider
extends Object
implements VertxExtensionParameterProvider<Checkpoint>
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
-
CheckpointParameterProvider
public CheckpointParameterProvider()
-
-
Method Details
-
type
Description copied from interface:VertxExtensionParameterProviderThe parameter type.- Specified by:
typein interfaceVertxExtensionParameterProvider<Checkpoint>- 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<Checkpoint>- Returns:
- the identifier
-
newInstance
public Checkpoint 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<Checkpoint>- 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<Checkpoint>- Returns:
- the consumer
-