Package io.vertx.junit5
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 Constructor Description VertxTestContextParameterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringkey()A string to identify the parameter in an extension context.VertxTestContextnewInstance(org.junit.jupiter.api.extension.ExtensionContext extensionContext, org.junit.jupiter.api.extension.ParameterContext parameterContext)Provide a new parameter instance.ParameterClosingConsumer<VertxTestContext>parameterClosingConsumer()A consumer to close the resource.Class<VertxTestContext>type()The parameter type.
-
-
-
Method Detail
-
type
public Class<VertxTestContext> type()
Description copied from interface:VertxExtensionParameterProviderThe parameter type.- Specified by:
typein interfaceVertxExtensionParameterProvider<VertxTestContext>- Returns:
- the parameter type
-
key
public String 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
public ParameterClosingConsumer<VertxTestContext> parameterClosingConsumer()
Description copied from interface:VertxExtensionParameterProviderA consumer to close the resource.- Specified by:
parameterClosingConsumerin interfaceVertxExtensionParameterProvider<VertxTestContext>- Returns:
- the consumer
-
-