Class ConstructorInvocation<T>
- java.lang.Object
-
- org.junit.jupiter.engine.execution.ConstructorInvocation<T>
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>,org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Constructor<T>>
class ConstructorInvocation<T> extends java.lang.Object implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>, org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Constructor<T>>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]argumentsprivate java.lang.reflect.Constructor<T>constructor
-
Constructor Summary
Constructors Constructor Description ConstructorInvocation(java.lang.reflect.Constructor<T> constructor, java.lang.Object[] arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Object>getArguments()java.lang.reflect.Constructor<T>getExecutable()java.util.Optional<java.lang.Object>getTarget()java.lang.Class<?>getTargetClass()Tproceed()
-
-
-
Field Detail
-
constructor
private final java.lang.reflect.Constructor<T> constructor
-
arguments
private final java.lang.Object[] arguments
-
-
Constructor Detail
-
ConstructorInvocation
ConstructorInvocation(java.lang.reflect.Constructor<T> constructor, java.lang.Object[] arguments)
-
-
Method Detail
-
getTargetClass
public java.lang.Class<?> getTargetClass()
- Specified by:
getTargetClassin interfaceorg.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
-
getExecutable
public java.lang.reflect.Constructor<T> getExecutable()
- Specified by:
getExecutablein interfaceorg.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
-
getArguments
public java.util.List<java.lang.Object> getArguments()
- Specified by:
getArgumentsin interfaceorg.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
-
getTarget
public java.util.Optional<java.lang.Object> getTarget()
- Specified by:
getTargetin interfaceorg.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
-
-