|
196 | 196 | * The display name to be used for individual invocations of the |
197 | 197 | * parameterized test; never blank or consisting solely of whitespace. |
198 | 198 | * |
199 | | - * <p>Defaults to <code>{default_display_name}</code>. |
| 199 | + * <p>Defaults to <code>{@value ParameterizedTestExtension#DEFAULT_DISPLAY_NAME}</code>. |
200 | 200 | * |
201 | | - * <p>If the default display name flag (<code>{default_display_name}</code>) |
| 201 | + * <p>If the default display name flag |
| 202 | + * (<code>{@value ParameterizedTestExtension#DEFAULT_DISPLAY_NAME}</code>) |
202 | 203 | * is not overridden, JUnit will: |
203 | 204 | * <ul> |
204 | 205 | * <li>Look up the {@value ParameterizedTestExtension#DISPLAY_NAME_PATTERN_KEY} |
|
207 | 208 | * Gradle and Maven), a JVM system property, or the JUnit Platform configuration |
208 | 209 | * file (i.e., a file named {@code junit-platform.properties} in the root of |
209 | 210 | * the class path). Consult the User Guide for further information.</li> |
210 | | - * <li>Otherwise, the value of the {@link #DEFAULT_DISPLAY_NAME} constant will |
211 | | - * be used.</li> |
| 211 | + * <li>Otherwise, <code>{@value #DEFAULT_DISPLAY_NAME}</code> will be used.</li> |
212 | 212 | * </ul> |
213 | 213 | * |
214 | 214 | * <h4>Supported placeholders</h4> |
215 | 215 | * <ul> |
216 | | - * <li>{@link #DISPLAY_NAME_PLACEHOLDER}</li> |
217 | | - * <li>{@link #INDEX_PLACEHOLDER}</li> |
218 | | - * <li>{@link #ARGUMENTS_PLACEHOLDER}</li> |
219 | | - * <li>{@link #ARGUMENTS_WITH_NAMES_PLACEHOLDER}</li> |
220 | | - * <li><code>{0}</code>, <code>{1}</code>, etc.: an individual argument (0-based)</li> |
| 216 | + * <li><code>{@value #DISPLAY_NAME_PLACEHOLDER}</code></li> |
| 217 | + * <li><code>{@value #INDEX_PLACEHOLDER}</code></li> |
| 218 | + * <li><code>{@value #ARGUMENTS_PLACEHOLDER}</code></li> |
| 219 | + * <li><code>{@value #ARGUMENTS_WITH_NAMES_PLACEHOLDER}</code></li> |
| 220 | + * <li><code>"{0}"</code>, <code>"{1}"</code>, etc.: an individual argument (0-based)</li> |
221 | 221 | * </ul> |
222 | 222 | * |
223 | 223 | * <p>For the latter, you may use {@link java.text.MessageFormat} patterns |
224 | | - * to customize formatting. Please note that the original arguments are |
225 | | - * passed when formatting, regardless of any implicit or explicit argument |
226 | | - * conversions. |
| 224 | + * to customize formatting (for example, {@code {0,number,#.###}}). Please |
| 225 | + * note that the original arguments are passed when formatting, regardless |
| 226 | + * of any implicit or explicit argument conversions. |
227 | 227 | * |
228 | | - * <p>Note that <code>{default_display_name}</code> is a flag rather than a |
229 | | - * placeholder. |
| 228 | + * <p>Note that |
| 229 | + * <code>{@value ParameterizedTestExtension#DEFAULT_DISPLAY_NAME}</code> is |
| 230 | + * a flag rather than a placeholder. |
230 | 231 | * |
231 | 232 | * @see java.text.MessageFormat |
232 | 233 | */ |
233 | | - String name() default "{default_display_name}"; |
| 234 | + String name() default ParameterizedTestExtension.DEFAULT_DISPLAY_NAME; |
234 | 235 |
|
235 | 236 | /** |
236 | 237 | * Configure whether all arguments of the parameterized test that implement {@link AutoCloseable} |
|
0 commit comments