public class VertxTestContextParameterProvider extends Object implements VertxExtensionParameterProvider<VertxTestContext>
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.
Constructor and Description |
---|
VertxTestContextParameterProvider() |
Modifier and Type | Method and Description |
---|---|
String |
key()
A string to identify the parameter in an extension context.
|
VertxTestContext |
newInstance(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.
|
public Class<VertxTestContext> type()
VertxExtensionParameterProvider
type
in interface VertxExtensionParameterProvider<VertxTestContext>
public String key()
VertxExtensionParameterProvider
In most cases it should be a constant.
key
in interface VertxExtensionParameterProvider<VertxTestContext>
public VertxTestContext newInstance(org.junit.jupiter.api.extension.ExtensionContext extensionContext, org.junit.jupiter.api.extension.ParameterContext parameterContext)
VertxExtensionParameterProvider
newInstance
in interface VertxExtensionParameterProvider<VertxTestContext>
extensionContext
- the extension contextparameterContext
- the parameter contextpublic ParameterClosingConsumer<VertxTestContext> parameterClosingConsumer()
VertxExtensionParameterProvider
parameterClosingConsumer
in interface VertxExtensionParameterProvider<VertxTestContext>
Copyright © 2024 Eclipse. All rights reserved.