Class ResolverFacade.DefaultParameterDeclarations
java.lang.Object
org.junit.jupiter.params.ResolverFacade.DefaultParameterDeclarations
- All Implemented Interfaces:
ParameterDeclarations
- Enclosing class:
ResolverFacade
private static class ResolverFacade.DefaultParameterDeclarations
extends Object
implements ParameterDeclarations
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NavigableMap<Integer, ? extends ResolverFacade.ResolvableParameterDeclaration> private final AnnotatedElement -
Constructor Summary
ConstructorsConstructorDescriptionDefaultParameterDeclarations(AnnotatedElement sourceElement, NavigableMap<Integer, ? extends ResolverFacade.ResolvableParameterDeclaration> declarationsByIndex) -
Method Summary
Modifier and TypeMethodDescription(package private) static Stringdescribe(AnnotatedElement sourceElement) get(int parameterIndex) Returns the indexed parameter declaration for the supplied index, if available; nevernull.getAll()Returns all indexed parameter declarations; nevernull, sorted by index.getFirst()Returns the first indexed parameter declaration, if available; nevernull.Returns the source element of all parameter declarations.Returns a human-readable description of the source element.
-
Field Details
-
sourceElement
-
declarationsByIndex
private final NavigableMap<Integer, ? extends ResolverFacade.ResolvableParameterDeclaration> declarationsByIndex
-
-
Constructor Details
-
Method Details
-
getSourceElement
Description copied from interface:ParameterDeclarationsReturns the source element of all parameter declarations.For
@ParameterizedTest, this always corresponds to the parameterized test method. For@ParameterizedClass, this corresponds to the parameterized test class constructor, if constructor injection is used; or the test class itself, if field injection is used.- Specified by:
getSourceElementin interfaceParameterDeclarations- Returns:
- the source element of all parameter declarations
-
getFirst
Description copied from interface:ParameterDeclarationsReturns the first indexed parameter declaration, if available; nevernull.- Specified by:
getFirstin interfaceParameterDeclarations- Returns:
- the first indexed parameter declaration, if available;
never
null
-
getAll
Description copied from interface:ParameterDeclarationsReturns all indexed parameter declarations; nevernull, sorted by index.- Specified by:
getAllin interfaceParameterDeclarations- Returns:
- all indexed parameter declarations; never
null, sorted by index
-
get
Description copied from interface:ParameterDeclarationsReturns the indexed parameter declaration for the supplied index, if available; nevernull.- Specified by:
getin interfaceParameterDeclarations- Returns:
- the indexed parameter declaration for the supplied
index, if available; never
null
-
getSourceElementDescription
Description copied from interface:ParameterDeclarationsReturns a human-readable description of the source element.This may, for example, be used in error messages.
- Specified by:
getSourceElementDescriptionin interfaceParameterDeclarations- Returns:
- a human-readable description of the source element
- See Also:
-
describe
-