public final class VertxExtension extends Object implements org.junit.jupiter.api.extension.ParameterResolver, org.junit.jupiter.api.extension.InvocationInterceptor
VertxTestContext
instance.
The following types can be injected:
Vertx
VertxTestContext
io.vertx.rxjava.core.Vertx
io.vertx.reactivex.core.Vertx
io.vertx.rxjava3.core.Vertx
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMEOUT_DURATION
Default timeout.
|
static TimeUnit |
DEFAULT_TIMEOUT_UNIT
Default timeout unit.
|
static String |
VERTX_INSTANCE_KEY
Key for all
Vertx instances, including what shims like RxJava should use. |
Constructor and Description |
---|
VertxExtension() |
Modifier and Type | Method and Description |
---|---|
void |
interceptAfterAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptAfterEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptBeforeAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptBeforeEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptDynamicTest(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.DynamicTestInvocationContext invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
interceptTestTemplateMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
Object |
resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
boolean |
supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
public static final int DEFAULT_TIMEOUT_DURATION
public static final TimeUnit DEFAULT_TIMEOUT_UNIT
public static final String VERTX_INSTANCE_KEY
Vertx
instances, including what shims like RxJava should use.public boolean supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws org.junit.jupiter.api.extension.ParameterResolutionException
supportsParameter
in interface org.junit.jupiter.api.extension.ParameterResolver
org.junit.jupiter.api.extension.ParameterResolutionException
public Object resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws org.junit.jupiter.api.extension.ParameterResolutionException
resolveParameter
in interface org.junit.jupiter.api.extension.ParameterResolver
org.junit.jupiter.api.extension.ParameterResolutionException
public void interceptBeforeAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptBeforeAllMethod
in interface org.junit.jupiter.api.extension.InvocationInterceptor
Throwable
public void interceptAfterAllMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptAfterAllMethod
in interface org.junit.jupiter.api.extension.InvocationInterceptor
Throwable
public void interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptTestMethod
in interface org.junit.jupiter.api.extension.InvocationInterceptor
Throwable
public void interceptBeforeEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptBeforeEachMethod
in interface org.junit.jupiter.api.extension.InvocationInterceptor
Throwable
public void interceptTestTemplateMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptTestTemplateMethod
in interface org.junit.jupiter.api.extension.InvocationInterceptor
Throwable
public void interceptDynamicTest(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.DynamicTestInvocationContext invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptDynamicTest
in interface org.junit.jupiter.api.extension.InvocationInterceptor
Throwable
public void interceptAfterEachMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptAfterEachMethod
in interface org.junit.jupiter.api.extension.InvocationInterceptor
Throwable
Copyright © 2024 Eclipse. All rights reserved.