Class ParameterizedTestContext
java.lang.Object
org.junit.jupiter.params.ParameterizedTestContext
- All Implemented Interfaces:
ParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
class ParameterizedTestContext
extends 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
FieldsModifier and TypeFieldDescriptionprivate final ParameterizedTestprivate final Methodprivate final ResolverFacadeprivate final Class<?> -
Constructor Summary
ConstructorsConstructorDescriptionParameterizedTestContext(Class<?> testClass, Method method, ParameterizedTest annotation) -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.jupiter.api.extension.TestTemplateInvocationContextcreateInvocationContext(ParameterizedInvocationNameFormatter formatter, Arguments arguments, int invocationIndex) Class<?> booleanbooleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ParameterizedDeclarationContext
getAnnotationName
-
Field Details
-
testClass
-
method
-
annotation
-
resolverFacade
-
-
Constructor Details
-
ParameterizedTestContext
ParameterizedTestContext(Class<?> testClass, Method method, ParameterizedTest annotation)
-
-
Method Details
-
getTestClass
- Specified by:
getTestClassin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
getAnnotation
- Specified by:
getAnnotationin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
getAnnotatedElement
- Specified by:
getAnnotatedElementin interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
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
- Specified by:
getArgumentCountValidationModein interfaceParameterizedDeclarationContext<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
-
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>
-