- Type Parameters:
T- the type of the payload
- All Known Subinterfaces:
NamedExecutable
- All Known Implementing Classes:
ParameterNameAndArgument
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the payload.Get the payload.Factory method for creating an instance ofNamedbased on anameand apayload.Factory method for creating an instance ofNamedbased on anameand apayload.
-
Method Details
-
of
Factory method for creating an instance ofNamedbased on anameand apayload.- Type Parameters:
T- the type of the payload- Parameters:
name- the name associated with the payload; nevernullor blankpayload- the object that serves as the payload; may benulldepending on the use case- Returns:
- an instance of
Named; nevernull - See Also:
-
named
Factory method for creating an instance ofNamedbased on anameand apayload.This method is an alias for
of(String, T)and is intended to be used when statically imported — for example, via:import static org.junit.jupiter.api.Named.named;- Type Parameters:
T- the type of the payload- Parameters:
name- the name associated with the payload; nevernullor blankpayload- the object that serves as the payload; may benulldepending on the use case- Returns:
- an instance of
Named; nevernull
-
getName
-
getPayload
-