Package org.junit.jupiter.params
Class ParameterizedTestContext
- java.lang.Object
-
- org.junit.jupiter.params.ParameterizedTestContext
-
- All Implemented Interfaces:
ParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
class ParameterizedTestContext extends java.lang.Object implements ParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
Encapsulates access to the parameters of a parameterized test method and caches the converters and aggregators used to resolve them.- Since:
- 5.3
-
-
Field Summary
Fields Modifier and Type Field Description private ParameterizedTestannotationprivate java.lang.reflect.Methodmethodprivate ResolverFacaderesolverFacadeprivate java.lang.Class<?>testClass
-
Constructor Summary
Constructors Constructor Description ParameterizedTestContext(java.lang.Class<?> testClass, java.lang.reflect.Method method, ParameterizedTest annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.jupiter.api.extension.TestTemplateInvocationContextcreateInvocationContext(ParameterizedInvocationNameFormatter formatter, Arguments arguments, int invocationIndex)java.lang.reflect.MethodgetAnnotatedElement()ParameterizedTestgetAnnotation()ArgumentCountValidationModegetArgumentCountValidationMode()java.lang.StringgetDisplayNamePattern()ResolverFacadegetResolverFacade()java.lang.Class<?>getTestClass()booleanisAllowingZeroInvocations()booleanisAutoClosingArguments()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.jupiter.params.ParameterizedDeclarationContext
getAnnotationName
-
-
-
-
Field Detail
-
testClass
private final java.lang.Class<?> testClass
-
method
private final java.lang.reflect.Method method
-
annotation
private final ParameterizedTest annotation
-
resolverFacade
private final ResolverFacade resolverFacade
-
-
Constructor Detail
-
ParameterizedTestContext
ParameterizedTestContext(java.lang.Class<?> testClass, java.lang.reflect.Method method, ParameterizedTest annotation)
-
-
Method Detail
-
getTestClass
public java.lang.Class<?> getTestClass()
- Specified by:
getTestClassin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
getAnnotation
public ParameterizedTest getAnnotation()
- Specified by:
getAnnotationin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
getAnnotatedElement
public java.lang.reflect.Method getAnnotatedElement()
- Specified by:
getAnnotatedElementin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
getDisplayNamePattern
public java.lang.String getDisplayNamePattern()
- Specified by:
getDisplayNamePatternin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
isAutoClosingArguments
public boolean isAutoClosingArguments()
- Specified by:
isAutoClosingArgumentsin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
isAllowingZeroInvocations
public boolean isAllowingZeroInvocations()
- Specified by:
isAllowingZeroInvocationsin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
getArgumentCountValidationMode
public ArgumentCountValidationMode getArgumentCountValidationMode()
- Specified by:
getArgumentCountValidationModein interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
getResolverFacade
public ResolverFacade getResolverFacade()
- Specified by:
getResolverFacadein interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
createInvocationContext
public org.junit.jupiter.api.extension.TestTemplateInvocationContext createInvocationContext(ParameterizedInvocationNameFormatter formatter, Arguments arguments, int invocationIndex)
- Specified by:
createInvocationContextin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
-