Top Fields Constructors Methods
org.junit.jupiter.engine.execution

pack-priv Class MethodInvocation<T extends @Nullable Object>

extends Object
implements InvocationInterceptor.Invocation<T extends @Nullable Object>, ReflectiveInvocationContext<Method>
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.extension.ReflectiveInvocationContext, org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
Static Imports
java.util.Collections.unmodifiableList

Field Summary

Modifier and TypeField and Description
private final @Nullable Object[]
private final Method
private final Optional<Object>

Constructor Summary

AccessConstructor and Description
pack-priv
MethodInvocation(Method method, Optional<Object> target, @Nullable Object[] arguments)

Method Summary

Modifier and TypeMethod and Description
public List<Object>
getArguments()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getArguments.

Get the arguments of the executable in this invocation context.

public Method
getExecutable()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getExecutable.

Get the method or constructor of this invocation context.

public Optional<Object>
getTarget()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getTarget.

Get the target object of this invocation context, if available.

public Class<?>
getTargetClass()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getTargetClass.

Get the target class of this invocation context.

public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argumentsback to summary
private final @Nullable Object[] arguments
methodback to summary
private final Method method
targetback to summary
private final Optional<Object> target

Constructor Detail

MethodInvocationback to summary
pack-priv MethodInvocation(Method method, Optional<Object> target, @Nullable Object[] arguments)

Method Detail

getArgumentsback to summary
public List<Object> getArguments()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getArguments.

Doc from org.junit.jupiter.api.extension.ReflectiveInvocationContext.getArguments.

Get the arguments of the executable in this invocation context.

Annotations
@Override
getExecutableback to summary
public Method getExecutable()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getExecutable.

Doc from org.junit.jupiter.api.extension.ReflectiveInvocationContext.getExecutable.

Get the method or constructor of this invocation context.

Annotations
@Override
getTargetback to summary
public Optional<Object> getTarget()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getTarget.

Doc from org.junit.jupiter.api.extension.ReflectiveInvocationContext.getTarget.

Get the target object of this invocation context, if available.

If this invocation context represents an instance method, this method returns the object the method will be invoked on. Otherwise, if this invocation context represents a static method or constructor, this method returns empty().

Annotations
@Override
getTargetClassback to summary
public Class<?> getTargetClass()

Implements org.junit.jupiter.api.extension.ReflectiveInvocationContext.getTargetClass.

Doc from org.junit.jupiter.api.extension.ReflectiveInvocationContext.getTargetClass.

Get the target class of this invocation context.

If this invocation context represents an instance method, this method returns the class of the object the method will be invoked on, not the class it is declared in. Otherwise, if this invocation represents a static method or constructor, this method returns the class the method or constructor is declared in.

Annotations
@Override
proceedback to summary
public T proceed()

Implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation.proceed.

Doc from org.junit.jupiter.api.extension.InvocationInterceptor.Invocation.proceed.

Proceed with this invocation.

Annotations
@Override
@SuppressWarnings:unchecked, NullAway