| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static record | |
| private static class | ParameterizedInvocationNameFormatter.
Caches formatters by the length of the consumed arguments which may differ from the number of declared parameters. |
| private static class | |
| private static interface | |
| private static class | |
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| private static final Map | argumentsPatternCache
Global cache for {arguments} pattern strings, keyed by the number of arguments. |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| private final ParameterizedInvocationNameFormatter. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ParameterizedInvocationNameFormatter(String pattern, String displayName, ParameterizedDeclarationContext<?> declarationContext, int argumentMaxLength)
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| pack-priv static ParameterizedInvocationNameFormatter | |
| private ParameterizedInvocationNameFormatter. | createPartialFormatters(String displayName, ParameterizedDeclarationContext<?> declarationContext, int argumentMaxLength)
|
| private static ParameterizedInvocationNameFormatter. | |
| private static @Nullable ParameterizedInvocationNameFormatter. | findFirstPlaceholder(ParameterizedInvocationNameFormatter.
|
| pack-priv String | |
| private String | |
| private ParameterizedInvocationNameFormatter. | parse(String pattern, String displayName, ParameterizedDeclarationContext<?> declarationContext, int argumentMaxLength)
|
| ARGUMENT_MAX_LENGTH_KEY | back to summary |
|---|---|
| pack-priv static final String ARGUMENT_MAX_LENGTH_KEY | |
| argumentsPatternCache | back to summary |
|---|---|
| private static final Map<Integer, String> argumentsPatternCache Global cache for {arguments} pattern strings, keyed by the number of arguments.
| |
| DEFAULT_DISPLAY_NAME | back to summary |
|---|---|
| pack-priv static final String DEFAULT_DISPLAY_NAME | |
| DEFAULT_DISPLAY_NAME_PATTERN | back to summary |
|---|---|
| pack-priv static final String DEFAULT_DISPLAY_NAME_PATTERN | |
| DISPLAY_NAME_PATTERN_KEY | back to summary |
|---|---|
| pack-priv static final String DISPLAY_NAME_PATTERN_KEY | |
| partialFormatters | back to summary |
|---|---|
| private final ParameterizedInvocationNameFormatter. | |
| ParameterizedInvocationNameFormatter | back to summary |
|---|---|
| pack-priv ParameterizedInvocationNameFormatter(String pattern, String displayName, ParameterizedDeclarationContext<?> declarationContext, int argumentMaxLength) | |
| argumentsPattern | back to summary |
|---|---|
| private static String argumentsPattern(int length) | |
| create | back to summary |
|---|---|
| pack-priv static ParameterizedInvocationNameFormatter create(ExtensionContext extensionContext, ParameterizedDeclarationContext<?> declarationContext) | |
| createPartialFormatters | back to summary |
|---|---|
| private ParameterizedInvocationNameFormatter. | |
| determineNonPlaceholderFormatter | back to summary |
|---|---|
| private static ParameterizedInvocationNameFormatter. | |
| findFirstPlaceholder | back to summary |
|---|---|
| private static @Nullable ParameterizedInvocationNameFormatter. | |
| format | back to summary |
|---|---|
| pack-priv String format(int invocationIndex, EvaluatedArgumentSet arguments, boolean quoteTextArguments) | |
| formatSafely | back to summary |
|---|---|
private String formatSafely(int invocationIndex, EvaluatedArgumentSet arguments, boolean quoteTextArguments)
| |
| parse | back to summary |
|---|---|
| private ParameterizedInvocationNameFormatter. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Optional | argumentSetName
Record Component accessed by argumentSetName(). |
| private final @Nullable Object[] | consumedArguments
Record Component accessed by consumedArguments(). |
| private final int | invocationIndex
Record Component accessed by invocationIndex(). |
| private final boolean | quoteTextArguments
Record Component accessed by quoteTextArguments(). |
| Access | Constructor and Description |
|---|---|
| private | ArgumentsContext(int invocationIndex, @Nullable Object[] consumedArguments, Optional<String> argumentSetName, boolean quoteTextArguments)
|
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public @Nullable Object[] | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public int | |
| public boolean | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| argumentSetName | back to summary |
|---|---|
| private final Optional<String> argumentSetName Record Component accessed by argumentSetName(). | |
| consumedArguments | back to summary |
|---|---|
| private final @Nullable Object[] consumedArguments Record Component accessed by consumedArguments(). | |
| invocationIndex | back to summary |
|---|---|
| private final int invocationIndex Record Component accessed by invocationIndex(). | |
| quoteTextArguments | back to summary |
|---|---|
| private final boolean quoteTextArguments Record Component accessed by quoteTextArguments(). | |
| ArgumentsContext | back to summary |
|---|---|
| private ArgumentsContext(int invocationIndex, @Nullable Object[] consumedArguments, Optional<String> argumentSetName, boolean quoteTextArguments) | |
| argumentSetName | back to summary |
|---|---|
| public Optional Record Component getter of argumentSetName. | |
| consumedArguments | back to summary |
|---|---|
| public @Nullable Object[] consumedArguments() Record Component getter of consumedArguments. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| invocationIndex | back to summary |
|---|---|
| public int invocationIndex() Record Component getter of invocationIndex. | |
| quoteTextArguments | back to summary |
|---|---|
| public boolean quoteTextArguments() Record Component getter of quoteTextArguments. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | annotationName
Record Component accessed by annotationName(). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public void | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| annotationName | back to summary |
|---|---|
| private final String annotationName Record Component accessed by annotationName(). | |
| ArgumentSetNameFormatter | back to summary |
|---|---|
| private ArgumentSetNameFormatter(String annotationName) | |
| annotationName | back to summary |
|---|---|
| public String annotationName() Record Component getter of annotationName. | |
| append | back to summary |
|---|---|
| public void append(ParameterizedInvocationNameFormatter. Implements org.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
For example, when using multiple providers or a provider that returns argument arrays of different length, such as:
@ParameterizedTest
@CsvSource({"a", "a,b", "a,b,c"})
void test(ArgumentsAccessor accessor) {}
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private final Function |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| cache | back to summary |
|---|---|
| private final ConcurrentMap<Integer, ParameterizedInvocationNameFormatter. | |
| factory | back to summary |
|---|---|
| private final Function<Integer, ParameterizedInvocationNameFormatter. | |
| CachingByArgumentsLengthPartialFormatter | back to summary |
|---|---|
| pack-priv CachingByArgumentsLengthPartialFormatter(Function<Integer, ParameterizedInvocationNameFormatter. | |
| append | back to summary |
|---|---|
| public void append(ParameterizedInvocationNameFormatter. Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final char | |
| private final boolean | |
| private final MessageFormat | |
| private final @Nullable ResolverFacade |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | MessageFormatPartialFormatter(String pattern, int argumentMaxLength, boolean generateNameValuePairs, @Nullable ResolverFacade resolverFacade)
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| private @Nullable Object[] | |
| private String |
| argumentMaxLength | back to summary |
|---|---|
| private final int argumentMaxLength | |
| ELLIPSIS | back to summary |
|---|---|
private static final char ELLIPSIS
| |
| generateNameValuePairs | back to summary |
|---|---|
| private final boolean generateNameValuePairs | |
| messageFormat | back to summary |
|---|---|
| private final MessageFormat messageFormat | |
| resolverFacade | back to summary |
|---|---|
| private final @Nullable ResolverFacade resolverFacade | |
| MessageFormatPartialFormatter | back to summary |
|---|---|
| pack-priv MessageFormatPartialFormatter(String pattern, int argumentMaxLength) | |
| MessageFormatPartialFormatter | back to summary |
|---|---|
| pack-priv MessageFormatPartialFormatter(String pattern, int argumentMaxLength, boolean generateNameValuePairs, @Nullable ResolverFacade resolverFacade) | |
| append | back to summary |
|---|---|
| public synchronized void append(ParameterizedInvocationNameFormatter. Implements org.
| |
| makeReadable | back to summary |
|---|---|
| private @Nullable Object[] makeReadable(@Nullable Object[] arguments, boolean quoteTextArguments) | |
| truncateIfExceedsMaxLength | back to summary |
|---|---|
| private String truncateIfExceedsMaxLength(String argument) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ParameterizedInvocationNameFormatter. |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| INDEX | back to summary |
|---|---|
| public static final ParameterizedInvocationNameFormatter. | |
| append | back to summary |
|---|---|
| public void append(ParameterizedInvocationNameFormatter. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ParameterizedInvocationNameFormatter. | |
| pack-priv Set | |
| pack-priv void |
| formattersByPlaceholder | back to summary |
|---|---|
| private final Map<String, ParameterizedInvocationNameFormatter. | |
| minimumPlaceholderLength | back to summary |
|---|---|
| private int minimumPlaceholderLength | |
| PartialFormatters | back to summary |
|---|---|
| private PartialFormatters() | |
| get | back to summary |
|---|---|
| pack-priv ParameterizedInvocationNameFormatter. | |
| placeholders | back to summary |
|---|---|
| pack-priv Set | |
| put | back to summary |
|---|---|
| pack-priv void put(String placeholder, ParameterizedInvocationNameFormatter. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | placeholder
Record Component accessed by placeholder(). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public int | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| index | back to summary |
|---|---|
| private final int index Record Component accessed by index(). | |
| placeholder | back to summary |
|---|---|
| private final String placeholder Record Component accessed by placeholder(). | |
| PlaceholderPosition | back to summary |
|---|---|
| private PlaceholderPosition(int index, String placeholder) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| index | back to summary |
|---|---|
| public int index() Record Component getter of index. | |
| placeholder | back to summary |
|---|---|
| public String placeholder() Record Component getter of placeholder. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |