Package io.vertx.junit5
Class VertxParameterProvider
- java.lang.Object
-
- io.vertx.junit5.VertxParameterProvider
-
- All Implemented Interfaces:
VertxExtensionParameterProvider<Vertx>
public class VertxParameterProvider extends Object implements VertxExtensionParameterProvider<Vertx>
-
-
Field Summary
Fields Modifier and Type Field Description static String
VERTX_PARAMETER_FILENAME
static String
VERTX_PARAMETER_FILENAME_ENV_VAR
static String
VERTX_PARAMETER_FILENAME_SYS_PROP
-
Constructor Summary
Constructors Constructor Description VertxParameterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObject
getVertxOptions()
String
key()
A string to identify the parameter in an extension context.Vertx
newInstance(org.junit.jupiter.api.extension.ExtensionContext extensionContext, org.junit.jupiter.api.extension.ParameterContext parameterContext)
Provide a new parameter instance.ParameterClosingConsumer<Vertx>
parameterClosingConsumer()
A consumer to close the resource.Class<Vertx>
type()
The parameter type.
-
-
-
Field Detail
-
VERTX_PARAMETER_FILENAME
public static final String VERTX_PARAMETER_FILENAME
- See Also:
- Constant Field Values
-
VERTX_PARAMETER_FILENAME_ENV_VAR
public static final String VERTX_PARAMETER_FILENAME_ENV_VAR
- See Also:
- Constant Field Values
-
VERTX_PARAMETER_FILENAME_SYS_PROP
public static final String VERTX_PARAMETER_FILENAME_SYS_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Class<Vertx> type()
Description copied from interface:VertxExtensionParameterProvider
The parameter type.- Specified by:
type
in interfaceVertxExtensionParameterProvider<Vertx>
- Returns:
- the parameter type
-
key
public String key()
Description copied from interface:VertxExtensionParameterProvider
A string to identify the parameter in an extension context.In most cases it should be a constant.
- Specified by:
key
in interfaceVertxExtensionParameterProvider<Vertx>
- Returns:
- the identifier
-
newInstance
public Vertx newInstance(org.junit.jupiter.api.extension.ExtensionContext extensionContext, org.junit.jupiter.api.extension.ParameterContext parameterContext)
Description copied from interface:VertxExtensionParameterProvider
Provide a new parameter instance.- Specified by:
newInstance
in interfaceVertxExtensionParameterProvider<Vertx>
- Parameters:
extensionContext
- the extension contextparameterContext
- the parameter context- Returns:
- the new instance
-
parameterClosingConsumer
public ParameterClosingConsumer<Vertx> parameterClosingConsumer()
Description copied from interface:VertxExtensionParameterProvider
A consumer to close the resource.- Specified by:
parameterClosingConsumer
in interfaceVertxExtensionParameterProvider<Vertx>
- Returns:
- the consumer
-
getVertxOptions
public JsonObject getVertxOptions()
-
-