You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ParameterizedTest name states the supported placeholder "{0}, {1}, etc.: an individual argument (0-based)" may be formatted with a MessageFormat pattern, "For the latter, you may use java.text.MessageFormat patterns to customize formatting." However, the argument passed to the pattern are not the arguments the method excepts but the argument supplied by the argument provider.
marcphilipp
changed the title
ParameterizedTest name pattern arguments are those before any conversions.
Document that ParameterizedTest passes raw arguments to MessageFormat
Sep 12, 2020
The
ParameterizedTest
name states the supported placeholder "{0}, {1}, etc.: an individual argument (0-based)" may be formatted with aMessageFormat
pattern, "For the latter, you may usejava.text.MessageFormat
patterns to customize formatting." However, the argument passed to the pattern are not the arguments the method excepts but the argument supplied by the argument provider.This can be seen in this silly test:
It seems that the format is called before any conversation, whether implicit or explicit.
Not sure if this is a bug as such but the documentation should specify what argument is formated.
The text was updated successfully, but these errors were encountered: