Top Description Fields Constructors Methods
org.junit.jupiter.params.support

public Class ParameterNameAndArgument

extends Object
implements Named<@Nullable Object>
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.Named
Annotations
@API
status:INTERNAL
since:6.0
Static Imports
org.apiguardian.api.API.Status.INTERNAL

Customized parameter name and its associated argument value.

Although this class implements Named for technical reasons, it serves a different purpose than Named#of(String, Object) and is only used for internal display name processing.

Since
6.0

Field Summary

Modifier and TypeField and Description
private final @Nullable Object
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements org.junit.jupiter.api.Named.getName.

Get the customized name of the parameter.

public @Nullable Object
getPayload()

Implements org.junit.jupiter.api.Named.getPayload.

Get the argument for the parameter.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

argumentback to summary
private final @Nullable Object argument
nameback to summary
private final String name

Constructor Detail

ParameterNameAndArgumentback to summary
public ParameterNameAndArgument(String name, @Nullable Object argument)

Method Detail

getNameback to summary
public String getName()

Implements org.junit.jupiter.api.Named.getName.

Get the customized name of the parameter.

Annotations
@Override
getPayloadback to summary
public @Nullable Object getPayload()

Implements org.junit.jupiter.api.Named.getPayload.

Get the argument for the parameter.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override