@@ -124,7 +124,7 @@ void injectsParametersIntoClass(Class<?> classTemplateClass) {
124
124
125
125
var results = executeTestsForClass (classTemplateClass );
126
126
127
- String parameterNamePrefix = classTemplateClass .getSimpleName ().contains ("Aggregator" ) ? "" : "value= " ;
127
+ String parameterNamePrefix = classTemplateClass .getSimpleName ().contains ("Aggregator" ) ? "" : "value = " ;
128
128
129
129
results .allEvents ().assertEventsMatchExactly ( //
130
130
event (engine (), started ()), //
@@ -176,7 +176,7 @@ void supportsNullAndEmptySource(Class<?> classTemplateClass) {
176
176
177
177
results .allEvents ().assertStatistics (stats -> stats .started (6 ).succeeded (6 ));
178
178
assertThat (invocationDisplayNames (results )) //
179
- .containsExactly ("[1] value= null" , "[2] value= " );
179
+ .containsExactly ("[1] value = null" , "[2] value = " );
180
180
}
181
181
182
182
@ ParameterizedTest
@@ -188,8 +188,8 @@ void supportsCsvFileSource(Class<?> classTemplateClass) {
188
188
189
189
results .allEvents ().assertStatistics (stats -> stats .started (10 ).succeeded (10 ));
190
190
assertThat (invocationDisplayNames (results )) //
191
- .containsExactly ("[1] name= foo, value= 1" , "[2] name= bar, value=2" , "[3] name=baz, value=3 " ,
192
- "[4] name= qux, value= 4" );
191
+ .containsExactly ("[1] name = foo, value = 1" , "[2] name = bar, value = 2 " ,
192
+ "[3] name = baz, value = 3" , "[ 4] name = qux, value = 4" );
193
193
}
194
194
195
195
@ ParameterizedTest
@@ -201,7 +201,7 @@ void supportsSingleEnumSource(Class<?> classTemplateClass) {
201
201
202
202
results .allEvents ().assertStatistics (stats -> stats .started (4 ).succeeded (4 ));
203
203
assertThat (invocationDisplayNames (results )) //
204
- .containsExactly ("[1] value= FOO" );
204
+ .containsExactly ("[1] value = FOO" );
205
205
}
206
206
207
207
@ ParameterizedTest
@@ -213,7 +213,7 @@ void supportsRepeatedEnumSource(Class<?> classTemplateClass) {
213
213
214
214
results .allEvents ().assertStatistics (stats -> stats .started (6 ).succeeded (6 ));
215
215
assertThat (invocationDisplayNames (results )) //
216
- .containsExactly ("[1] value= FOO" , "[2] value= BAR" );
216
+ .containsExactly ("[1] value = FOO" , "[2] value = BAR" );
217
217
}
218
218
219
219
@ ParameterizedTest
@@ -225,7 +225,7 @@ void supportsMethodSource(Class<?> classTemplateClass) {
225
225
226
226
results .allEvents ().assertStatistics (stats -> stats .started (6 ).succeeded (6 ));
227
227
assertThat (invocationDisplayNames (results )) //
228
- .containsExactly ("[1] value= foo" , "[2] value= bar" );
228
+ .containsExactly ("[1] value = foo" , "[2] value = bar" );
229
229
}
230
230
231
231
@ Test
@@ -247,7 +247,7 @@ void supportsFieldSource(Class<?> classTemplateClass) {
247
247
248
248
results .allEvents ().assertStatistics (stats -> stats .started (6 ).succeeded (6 ));
249
249
assertThat (invocationDisplayNames (results )) //
250
- .containsExactly ("[1] value= foo" , "[2] value= bar" );
250
+ .containsExactly ("[1] value = foo" , "[2] value = bar" );
251
251
}
252
252
253
253
@ Test
@@ -269,7 +269,7 @@ void supportsArgumentsSource(Class<?> classTemplateClass) {
269
269
270
270
results .allEvents ().assertStatistics (stats -> stats .started (6 ).succeeded (6 ));
271
271
assertThat (invocationDisplayNames (results )) //
272
- .containsExactly ("[1] value= foo" , "[2] value= bar" );
272
+ .containsExactly ("[1] value = foo" , "[2] value = bar" );
273
273
}
274
274
275
275
@ Test
@@ -305,7 +305,7 @@ void supportsCustomNamePatterns() {
305
305
306
306
results .allEvents ().assertStatistics (stats -> stats .started (6 ).succeeded (6 ));
307
307
assertThat (invocationDisplayNames (results )) //
308
- .containsExactly ("1 | TesT | 1, foo | set" , "2 | TesT | 2, bar | number= 2, name= bar" );
308
+ .containsExactly ("1 | TesT | 1, foo | set" , "2 | TesT | 2, bar | number = 2, name = bar" );
309
309
}
310
310
311
311
@ Test
@@ -398,65 +398,65 @@ void supportsNestedParameterizedClass(Class<?> classTemplateClass) {
398
398
results .testEvents ().assertStatistics (stats -> stats .started (8 ).succeeded (8 ));
399
399
assertThat (invocationDisplayNames (results )) //
400
400
.containsExactly ( //
401
- "[1] number= 1" , "[1] text= foo" , "[2] text= bar" , //
402
- "[2] number= 2" , "[1] text= foo" , "[2] text= bar" //
401
+ "[1] number = 1" , "[1] text = foo" , "[2] text = bar" , //
402
+ "[2] number = 2" , "[1] text = foo" , "[2] text = bar" //
403
403
);
404
404
assertThat (allReportEntries (results )).map (it -> it .get ("value" )).containsExactly (
405
405
// @formatter:off
406
406
"beforeAll: %s" .formatted (classTemplateClass .getSimpleName ()),
407
407
"beforeParameterizedClassInvocation: %s" .formatted (classTemplateClass .getSimpleName ()),
408
408
"beforeAll: InnerTestCase" ,
409
409
"beforeParameterizedClassInvocation: InnerTestCase" ,
410
- "beforeEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
411
- "beforeEach: [1] flag= true [InnerTestCase]" ,
410
+ "beforeEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
411
+ "beforeEach: [1] flag = true [InnerTestCase]" ,
412
412
"test(1, foo, true)" ,
413
- "afterEach: [1] flag= true [InnerTestCase]" ,
414
- "afterEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
415
- "beforeEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
416
- "beforeEach: [2] flag= false [InnerTestCase]" ,
413
+ "afterEach: [1] flag = true [InnerTestCase]" ,
414
+ "afterEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
415
+ "beforeEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
416
+ "beforeEach: [2] flag = false [InnerTestCase]" ,
417
417
"test(1, foo, false)" ,
418
- "afterEach: [2] flag= false [InnerTestCase]" ,
419
- "afterEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
418
+ "afterEach: [2] flag = false [InnerTestCase]" ,
419
+ "afterEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
420
420
"afterParameterizedClassInvocation: InnerTestCase" ,
421
421
"beforeParameterizedClassInvocation: InnerTestCase" ,
422
- "beforeEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
423
- "beforeEach: [1] flag= true [InnerTestCase]" ,
422
+ "beforeEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
423
+ "beforeEach: [1] flag = true [InnerTestCase]" ,
424
424
"test(1, bar, true)" ,
425
- "afterEach: [1] flag= true [InnerTestCase]" ,
426
- "afterEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
427
- "beforeEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
428
- "beforeEach: [2] flag= false [InnerTestCase]" ,
425
+ "afterEach: [1] flag = true [InnerTestCase]" ,
426
+ "afterEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
427
+ "beforeEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
428
+ "beforeEach: [2] flag = false [InnerTestCase]" ,
429
429
"test(1, bar, false)" ,
430
- "afterEach: [2] flag= false [InnerTestCase]" ,
431
- "afterEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
430
+ "afterEach: [2] flag = false [InnerTestCase]" ,
431
+ "afterEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
432
432
"afterParameterizedClassInvocation: InnerTestCase" ,
433
433
"afterAll: InnerTestCase" ,
434
434
"afterParameterizedClassInvocation: %s" .formatted (classTemplateClass .getSimpleName ()),
435
435
"beforeParameterizedClassInvocation: %s" .formatted (classTemplateClass .getSimpleName ()),
436
436
"beforeAll: InnerTestCase" ,
437
437
"beforeParameterizedClassInvocation: InnerTestCase" ,
438
- "beforeEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
439
- "beforeEach: [1] flag= true [InnerTestCase]" ,
438
+ "beforeEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
439
+ "beforeEach: [1] flag = true [InnerTestCase]" ,
440
440
"test(2, foo, true)" ,
441
- "afterEach: [1] flag= true [InnerTestCase]" ,
442
- "afterEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
443
- "beforeEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
444
- "beforeEach: [2] flag= false [InnerTestCase]" ,
441
+ "afterEach: [1] flag = true [InnerTestCase]" ,
442
+ "afterEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
443
+ "beforeEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
444
+ "beforeEach: [2] flag = false [InnerTestCase]" ,
445
445
"test(2, foo, false)" ,
446
- "afterEach: [2] flag= false [InnerTestCase]" ,
447
- "afterEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
446
+ "afterEach: [2] flag = false [InnerTestCase]" ,
447
+ "afterEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
448
448
"afterParameterizedClassInvocation: InnerTestCase" ,
449
449
"beforeParameterizedClassInvocation: InnerTestCase" ,
450
- "beforeEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
451
- "beforeEach: [1] flag= true [InnerTestCase]" ,
450
+ "beforeEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
451
+ "beforeEach: [1] flag = true [InnerTestCase]" ,
452
452
"test(2, bar, true)" ,
453
- "afterEach: [1] flag= true [InnerTestCase]" ,
454
- "afterEach: [1] flag= true [%s]" .formatted (classTemplateClass .getSimpleName ()),
455
- "beforeEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
456
- "beforeEach: [2] flag= false [InnerTestCase]" ,
453
+ "afterEach: [1] flag = true [InnerTestCase]" ,
454
+ "afterEach: [1] flag = true [%s]" .formatted (classTemplateClass .getSimpleName ()),
455
+ "beforeEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
456
+ "beforeEach: [2] flag = false [InnerTestCase]" ,
457
457
"test(2, bar, false)" ,
458
- "afterEach: [2] flag= false [InnerTestCase]" ,
459
- "afterEach: [2] flag= false [%s]" .formatted (classTemplateClass .getSimpleName ()),
458
+ "afterEach: [2] flag = false [InnerTestCase]" ,
459
+ "afterEach: [2] flag = false [%s]" .formatted (classTemplateClass .getSimpleName ()),
460
460
"afterParameterizedClassInvocation: InnerTestCase" ,
461
461
"afterAll: InnerTestCase" ,
462
462
"afterParameterizedClassInvocation: %s" .formatted (classTemplateClass .getSimpleName ()),
@@ -2090,14 +2090,14 @@ static void before2(ArgumentsAccessor accessor) {
2090
2090
2091
2091
@ BeforeParameterizedClassInvocation
2092
2092
static void before3 (AtomicInteger value , TestInfo testInfo ) {
2093
- assertEquals ("[1] value= 1" , testInfo .getDisplayName ());
2093
+ assertEquals ("[1] value = 1" , testInfo .getDisplayName ());
2094
2094
value .incrementAndGet ();
2095
2095
}
2096
2096
2097
2097
@ BeforeParameterizedClassInvocation
2098
2098
static void before4 (ArgumentsAccessor accessor , TestInfo testInfo ) {
2099
2099
assertEquals (1 , accessor .getInteger (0 ));
2100
- assertEquals ("[1] value= 1" , testInfo .getDisplayName ());
2100
+ assertEquals ("[1] value = 1" , testInfo .getDisplayName ());
2101
2101
}
2102
2102
2103
2103
@ BeforeParameterizedClassInvocation
@@ -2109,7 +2109,7 @@ static void before4(AtomicInteger value, ArgumentsAccessor accessor) {
2109
2109
@ BeforeParameterizedClassInvocation
2110
2110
static void before5 (AtomicInteger value , ArgumentsAccessor accessor , TestInfo testInfo ) {
2111
2111
assertEquals (1 , accessor .getInteger (0 ));
2112
- assertEquals ("[1] value= 1" , testInfo .getDisplayName ());
2112
+ assertEquals ("[1] value = 1" , testInfo .getDisplayName ());
2113
2113
value .incrementAndGet ();
2114
2114
}
2115
2115
@@ -2122,7 +2122,7 @@ static void before6(@TimesTwo int valueTimesTwo) {
2122
2122
static void after (AtomicInteger value , ArgumentsAccessor accessor , TestInfo testInfo ) {
2123
2123
assertEquals (6 , value .get ());
2124
2124
assertEquals (1 , accessor .getInteger (0 ));
2125
- assertEquals ("[1] value= 1" , testInfo .getDisplayName ());
2125
+ assertEquals ("[1] value = 1" , testInfo .getDisplayName ());
2126
2126
}
2127
2127
}
2128
2128
0 commit comments