forked from junit-team/junit-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplayNameGenerationTests.java
More file actions
670 lines (560 loc) · 20 KB
/
Copy pathDisplayNameGenerationTests.java
File metadata and controls
670 lines (560 loc) · 20 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
/*
* Copyright 2015-2025 the original author or authors.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution and is available at
*
* https://www.eclipse.org/legal/epl-v20.html
*/
package org.junit.jupiter.api;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.platform.engine.discovery.DiscoverySelectors.selectClass;
import static org.junit.platform.engine.discovery.DiscoverySelectors.selectMethod;
import java.lang.reflect.Method;
import java.util.EmptyStackException;
import java.util.List;
import java.util.Stack;
import java.util.stream.Stream;
import org.junit.jupiter.api.DisplayNameGenerator.IndicativeSentences.SentenceFragment;
import org.junit.jupiter.api.extension.ClassTemplateInvocationContext;
import org.junit.jupiter.api.extension.ClassTemplateInvocationContextProvider;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.engine.AbstractJupiterTestEngineTests;
import org.junit.platform.engine.DiscoveryIssue.Severity;
import org.junit.platform.testkit.engine.EngineExecutionResults;
import org.junit.platform.testkit.engine.Event;
/**
* Check generated display names.
*
* @see DisplayName
* @see DisplayNameGenerator
* @see DisplayNameGeneration
* @since 5.4
*/
class DisplayNameGenerationTests extends AbstractJupiterTestEngineTests {
@Test
void standardGenerator() {
check(DefaultStyleTestCase.class, //
"CONTAINER: DisplayNameGenerationTests$DefaultStyleTestCase", //
"TEST: @DisplayName prevails", //
"TEST: test()", //
"TEST: test(TestInfo)", //
"TEST: testUsingCamelCaseStyle()", //
"TEST: testUsingCamelCase_and_also_UnderScores()", //
"TEST: testUsingCamelCase_and_also_UnderScores_keepingParameterTypeNamesIntact(TestInfo)", //
"TEST: test_with_underscores()" //
);
}
@Test
void simpleGenerator() {
check(SimpleStyleTestCase.class, //
"CONTAINER: DisplayNameGenerationTests$SimpleStyleTestCase", //
"TEST: @DisplayName prevails", //
"TEST: test", //
"TEST: test (TestInfo)", //
"TEST: testUsingCamelCaseStyle", //
"TEST: testUsingCamelCase_and_also_UnderScores", //
"TEST: testUsingCamelCase_and_also_UnderScores_keepingParameterTypeNamesIntact (TestInfo)", //
"TEST: test_with_underscores" //
);
}
@Test
void underscoreGenerator() {
var expectedDisplayNames = new String[] { //
"<replace me>", //
"TEST: @DisplayName prevails", //
"TEST: test", //
"TEST: test (TestInfo)", //
"TEST: test with underscores", //
"TEST: testUsingCamelCase and also UnderScores", //
"TEST: testUsingCamelCase and also UnderScores keepingParameterTypeNamesIntact (TestInfo)", //
"TEST: testUsingCamelCaseStyle" //
};
expectedDisplayNames[0] = "CONTAINER: DisplayNameGenerationTests$UnderscoreStyleTestCase";
check(UnderscoreStyleTestCase.class, expectedDisplayNames);
expectedDisplayNames[0] = "CONTAINER: DisplayNameGenerationTests$UnderscoreStyleInheritedFromSuperClassTestCase";
check(UnderscoreStyleInheritedFromSuperClassTestCase.class, expectedDisplayNames);
}
@Test
void indicativeSentencesGeneratorOnStaticNestedClass() {
check(IndicativeStyleTestCase.class, //
"CONTAINER: DisplayNameGenerationTests$IndicativeStyleTestCase", //
"TEST: @DisplayName prevails", //
"TEST: DisplayNameGenerationTests$IndicativeStyleTestCase -> test", //
"TEST: DisplayNameGenerationTests$IndicativeStyleTestCase -> test (TestInfo)", //
"TEST: DisplayNameGenerationTests$IndicativeStyleTestCase -> test with underscores", //
"TEST: DisplayNameGenerationTests$IndicativeStyleTestCase -> testUsingCamelCase and also UnderScores", //
"TEST: DisplayNameGenerationTests$IndicativeStyleTestCase -> testUsingCamelCase and also UnderScores keepingParameterTypeNamesIntact (TestInfo)", //
"TEST: DisplayNameGenerationTests$IndicativeStyleTestCase -> testUsingCamelCaseStyle" //
);
}
@Test
void indicativeSentencesGeneratorOnTopLevelClass() {
check(IndicativeSentencesTopLevelTestCase.class, //
"CONTAINER: IndicativeSentencesTopLevelTestCase", //
"CONTAINER: IndicativeSentencesTopLevelTestCase -> A year is a leap year", //
"TEST: IndicativeSentencesTopLevelTestCase -> A year is a leap year -> if it is divisible by 4 but not by 100" //
);
}
@Test
void indicativeSentencesGeneratorOnNestedClass() {
check(IndicativeSentencesNestedTestCase.class, //
"CONTAINER: IndicativeSentencesNestedTestCase", //
"CONTAINER: A year is a leap year", //
"TEST: A year is a leap year -> if it is divisible by 4 but not by 100" //
);
}
@Test
void noNameGenerator() {
check(NoNameStyleTestCase.class, //
"CONTAINER: nn", //
"TEST: @DisplayName prevails", //
"TEST: nn", //
"TEST: nn", //
"TEST: nn", //
"TEST: nn", //
"TEST: nn", //
"TEST: nn" //
);
}
@Test
void checkDisplayNameGeneratedForTestingAStackDemo() {
check(StackTestCase.class, //
"CONTAINER: A stack", //
"TEST: is instantiated using its noarg constructor", //
"CONTAINER: A new stack", //
"TEST: throws an EmptyStackException when peeked", //
"TEST: throws an EmptyStackException when popped", //
"TEST: is empty", //
"CONTAINER: After pushing an element to an empty stack", //
"TEST: peek returns that element without removing it from the stack", //
"TEST: pop returns that element and leaves an empty stack", //
"TEST: the stack is no longer empty" //
);
}
@Test
void checkDisplayNameGeneratedForIndicativeGenerator() {
check(IndicativeGeneratorTestCase.class, //
"CONTAINER: A stack", //
"TEST: A stack, is instantiated with its constructor", //
"CONTAINER: A stack, when new", //
"TEST: A stack, when new, throws EmptyStackException when peeked", //
"CONTAINER: A stack, when new, after pushing an element to an empty stack", //
"TEST: A stack, when new, after pushing an element to an empty stack, is no longer empty" //
);
}
@Test
void checkDisplayNameGeneratedForIndicativeGeneratorWithCustomSeparator() {
check(IndicativeGeneratorWithCustomSeparatorTestCase.class, //
"CONTAINER: A stack", //
"TEST: A stack >> is instantiated with its constructor", //
"CONTAINER: A stack >> when new", //
"TEST: A stack >> when new >> throws EmptyStackException when peeked", //
"CONTAINER: A stack >> when new >> after pushing an element to an empty stack", //
"TEST: A stack >> when new >> after pushing an element to an empty stack >> is no longer empty" //
);
}
@Test
void checkDisplayNameGeneratedForIndicativeGeneratorWithCustomSentenceFragments() {
check(IndicativeGeneratorWithCustomSentenceFragmentsTestCase.class, //
"CONTAINER: A stack", //
"TEST: A stack, is instantiated with its constructor", //
"CONTAINER: A stack, when new", //
"TEST: A stack, when new, throws EmptyStackException when peeked", //
"CONTAINER: A stack, when new, after pushing an element to an empty stack", //
"TEST: A stack, when new, after pushing an element to an empty stack, is no longer empty" //
);
}
@Test
void blankSentenceFragmentOnClassYieldsError() {
var results = discoverTests(selectClass(BlankSentenceFragmentOnClassTestCase.class));
var discoveryIssues = results.getDiscoveryIssues();
assertThat(discoveryIssues).hasSize(1);
assertThat(discoveryIssues.getFirst().severity()).isEqualTo(Severity.ERROR);
assertThat(discoveryIssues.getFirst().cause().orElseThrow()) //
.hasMessage("@SentenceFragment on [%s] must be declared with a non-blank value.",
BlankSentenceFragmentOnClassTestCase.class);
}
@Test
void blankSentenceFragmentOnMethodYieldsError() throws Exception {
var results = discoverTests(selectMethod(BlankSentenceFragmentOnMethodTestCase.class, "test"));
var discoveryIssues = results.getDiscoveryIssues();
assertThat(discoveryIssues).hasSize(1);
assertThat(discoveryIssues.getFirst().severity()).isEqualTo(Severity.ERROR);
assertThat(discoveryIssues.getFirst().cause().orElseThrow()) //
.hasMessage("@SentenceFragment on [%s] must be declared with a non-blank value.",
BlankSentenceFragmentOnMethodTestCase.class.getDeclaredMethod("test"));
}
@Test
void displayNameGenerationInheritance() {
check(DisplayNameGenerationInheritanceTestCase.InnerNestedTestCase.class, //
"CONTAINER: DisplayNameGenerationInheritanceTestCase", //
"CONTAINER: InnerNestedTestCase", //
"TEST: this is a test"//
);
check(DisplayNameGenerationInheritanceTestCase.StaticNestedTestCase.class, //
"CONTAINER: DisplayNameGenerationInheritanceTestCase$StaticNestedTestCase", //
"TEST: this_is_a_test()"//
);
}
@Test
void indicativeSentencesGenerationInheritance() {
check(IndicativeSentencesGenerationInheritanceTestCase.InnerNestedTestCase.class, //
"CONTAINER: IndicativeSentencesGenerationInheritanceTestCase", //
"CONTAINER: IndicativeSentencesGenerationInheritanceTestCase -> InnerNestedTestCase", //
"TEST: IndicativeSentencesGenerationInheritanceTestCase -> InnerNestedTestCase -> this is a test"//
);
check(IndicativeSentencesGenerationInheritanceTestCase.StaticNestedTestCase.class, //
"CONTAINER: IndicativeSentencesGenerationInheritanceTestCase$StaticNestedTestCase", //
"TEST: this_is_a_test()"//
);
}
@Test
void indicativeSentencesRuntimeEnclosingType() {
check(IndicativeSentencesRuntimeEnclosingTypeScenarioOneTestCase.class, //
"CONTAINER: Scenario 1", //
"CONTAINER: Scenario 1 -> Level 1", //
"CONTAINER: Scenario 1 -> Level 1 -> Level 2", //
"TEST: Scenario 1 -> Level 1 -> Level 2 -> this is a test"//
);
check(IndicativeSentencesRuntimeEnclosingTypeScenarioTwoTestCase.class, //
"CONTAINER: Scenario 2", //
"CONTAINER: Scenario 2 -> Level 1", //
"CONTAINER: Scenario 2 -> Level 1 -> Level 2", //
"TEST: Scenario 2 -> Level 1 -> Level 2 -> this is a test"//
);
}
@Test
void indicativeSentencesOnSubClass() {
check(IndicativeSentencesOnSubClassScenarioOneTestCase.class, //
"CONTAINER: IndicativeSentencesOnSubClassScenarioOneTestCase", //
"CONTAINER: IndicativeSentencesOnSubClassScenarioOneTestCase -> Level 1", //
"CONTAINER: IndicativeSentencesOnSubClassScenarioOneTestCase -> Level 1 -> Level 2", //
"TEST: IndicativeSentencesOnSubClassScenarioOneTestCase -> Level 1 -> Level 2 -> this is a test"//
);
}
@Test
void indicativeSentencesOnClassTemplate() {
check(ClassTemplateTestCase.class, //
"CONTAINER: Class template", //
"CONTAINER: [1] Class template", //
"TEST: Class template, some test", //
"CONTAINER: Class template, Regular Nested Test Case", //
"TEST: Class template, Regular Nested Test Case, some nested test", //
"CONTAINER: Class template, Nested Class Template", //
"CONTAINER: [1] Class template, Nested Class Template", //
"TEST: Class template, Nested Class Template, some nested test" //
);
assertThat(executeTestsForClass(ClassTemplateTestCase.class).allEvents().started().stream()) //
.map(event -> event.getTestDescriptor().getDisplayName()) //
.containsExactly( //
"JUnit Jupiter", //
"Class template", //
"[1] Class template", //
"Class template, some test", //
"Class template, Regular Nested Test Case", //
"Class template, Regular Nested Test Case, some nested test", //
"Class template, Nested Class Template", //
"[1] Class template, Nested Class Template", //
"Class template, Nested Class Template, some nested test" //
);
}
private void check(Class<?> testClass, String... expectedDisplayNames) {
var results = executeTestsForClass(testClass);
check(results, expectedDisplayNames);
}
private void check(EngineExecutionResults results, String[] expectedDisplayNames) {
var descriptors = results.allEvents().started().stream() //
.map(Event::getTestDescriptor) //
.skip(1); // Skip engine descriptor
assertThat(descriptors) //
.map(it -> it.getType() + ": " + it.getDisplayName()) //
.containsExactlyInAnyOrder(expectedDisplayNames);
}
// -------------------------------------------------------------------------
static class NoNameGenerator implements DisplayNameGenerator {
@Override
public String generateDisplayNameForClass(Class<?> testClass) {
return "nn";
}
@Override
public String generateDisplayNameForNestedClass(List<Class<?>> enclosingInstanceTypes, Class<?> nestedClass) {
return "nn";
}
@Override
public String generateDisplayNameForMethod(List<Class<?>> enclosingInstanceTypes, Class<?> testClass,
Method testMethod) {
return "nn";
}
}
@DisplayNameGeneration(NoNameGenerator.class)
abstract static class AbstractTestCase {
@Test
void test() {
}
@Test
void test(TestInfo testInfo) {
testInfo.getDisplayName();
}
@Test
void testUsingCamelCaseStyle() {
}
@Test
void testUsingCamelCase_and_also_UnderScores() {
}
@Test
void testUsingCamelCase_and_also_UnderScores_keepingParameterTypeNamesIntact(TestInfo testInfo) {
testInfo.getDisplayName();
}
@Test
void test_with_underscores() {
}
@DisplayName("@DisplayName prevails")
@Test
void testDisplayNamePrevails() {
}
}
@DisplayNameGeneration(DisplayNameGenerator.Standard.class)
static class DefaultStyleTestCase extends AbstractTestCase {
}
@DisplayNameGeneration(DisplayNameGenerator.Simple.class)
static class SimpleStyleTestCase extends AbstractTestCase {
}
@DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class)
static class UnderscoreStyleTestCase extends AbstractTestCase {
}
@IndicativeSentencesGeneration(separator = " -> ", generator = DisplayNameGenerator.ReplaceUnderscores.class)
static class IndicativeStyleTestCase extends AbstractTestCase {
}
@DisplayNameGeneration(NoNameGenerator.class)
static class NoNameStyleTestCase extends AbstractTestCase {
}
// No annotation here! @DisplayNameGeneration is inherited from super class
static class UnderscoreStyleInheritedFromSuperClassTestCase extends UnderscoreStyleTestCase {
}
// -------------------------------------------------------------------------
@SuppressWarnings("JUnitMalformedDeclaration")
@DisplayName("A stack")
@DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class)
static class StackTestCase {
@Test
void is_instantiated_using_its_noarg_constructor() {
new Stack<>();
}
@Nested
class A_new_stack {
Stack<Object> stack;
@BeforeEach
void createNewStack() {
stack = new Stack<>();
}
@Test
void is_empty() {
assertTrue(stack.isEmpty());
}
@Test
void throws_an_EmptyStackException_when_popped() {
assertThrows(EmptyStackException.class, () -> stack.pop());
}
@Test
void throws_an_EmptyStackException_when_peeked() {
assertThrows(EmptyStackException.class, () -> stack.peek());
}
@Nested
class After_pushing_an_element_to_an_empty_stack {
String anElement = "an element";
@BeforeEach
void pushAnElement() {
stack.push(anElement);
}
@Test
void the_stack_is_no_longer_empty() {
assertFalse(stack.isEmpty());
}
@Test
void pop_returns_that_element_and_leaves_an_empty_stack() {
assertEquals(anElement, stack.pop());
assertTrue(stack.isEmpty());
}
@Test
void peek_returns_that_element_without_removing_it_from_the_stack() {
assertEquals(anElement, stack.peek());
assertFalse(stack.isEmpty());
}
}
}
}
// -------------------------------------------------------------------------
@SuppressWarnings("JUnitMalformedDeclaration")
@DisplayName("A stack")
@IndicativeSentencesGeneration(generator = DisplayNameGenerator.ReplaceUnderscores.class)
static class IndicativeGeneratorTestCase {
@Test
void is_instantiated_with_its_constructor() {
new Stack<>();
}
@Nested
class when_new {
Stack<Object> stack;
@BeforeEach
void create_with_new_stack() {
stack = new Stack<>();
}
@Test
void throws_EmptyStackException_when_peeked() {
assertThrows(EmptyStackException.class, () -> stack.peek());
}
@Nested
class after_pushing_an_element_to_an_empty_stack {
String anElement = "an element";
@BeforeEach
void push_an_element() {
stack.push(anElement);
}
@Test
void is_no_longer_empty() {
assertFalse(stack.isEmpty());
}
}
}
}
// -------------------------------------------------------------------------
@SuppressWarnings("JUnitMalformedDeclaration")
@DisplayName("A stack")
@IndicativeSentencesGeneration(separator = " >> ", generator = DisplayNameGenerator.ReplaceUnderscores.class)
static class IndicativeGeneratorWithCustomSeparatorTestCase {
@Test
void is_instantiated_with_its_constructor() {
new Stack<>();
}
@Nested
class when_new {
Stack<Object> stack;
@BeforeEach
void create_with_new_stack() {
stack = new Stack<>();
}
@Test
void throws_EmptyStackException_when_peeked() {
assertThrows(EmptyStackException.class, () -> stack.peek());
}
@Nested
class after_pushing_an_element_to_an_empty_stack {
String anElement = "an element";
@BeforeEach
void push_an_element() {
stack.push(anElement);
}
@Test
void is_no_longer_empty() {
assertFalse(stack.isEmpty());
}
}
}
}
// -------------------------------------------------------------------------
@SuppressWarnings("JUnitMalformedDeclaration")
@SentenceFragment("A stack")
@IndicativeSentencesGeneration
static class IndicativeGeneratorWithCustomSentenceFragmentsTestCase {
@SentenceFragment("is instantiated with its constructor")
@Test
void instantiateViaConstructor() {
new Stack<>();
}
@SentenceFragment("when new")
@Nested
class NewStackTestCase {
Stack<Object> stack;
@BeforeEach
void createNewStack() {
stack = new Stack<>();
}
@SentenceFragment("throws EmptyStackException when peeked")
@Test
void throwsExceptionWhenPeeked() {
assertThrows(EmptyStackException.class, () -> stack.peek());
}
@SentenceFragment("after pushing an element to an empty stack")
@Nested
class ElementPushedOntoStackTestCase {
String anElement = "an element";
@BeforeEach
void pushElementOntoStack() {
stack.push(anElement);
}
@SentenceFragment("is no longer empty")
@Test
void nonEmptyStack() {
assertFalse(stack.isEmpty());
}
}
}
}
// -------------------------------------------------------------------------
@SuppressWarnings("JUnitMalformedDeclaration")
@ClassTemplate
@ExtendWith(ClassTemplateTestCase.Once.class)
@DisplayName("Class template")
@IndicativeSentencesGeneration(generator = DisplayNameGenerator.ReplaceUnderscores.class)
@TestClassOrder(ClassOrderer.OrderAnnotation.class)
static class ClassTemplateTestCase {
@Test
void some_test() {
}
@Nested
@Order(1)
class Regular_Nested_Test_Case {
@Test
void some_nested_test() {
}
}
@Nested
@Order(2)
@ClassTemplate
class Nested_Class_Template {
@Test
void some_nested_test() {
}
}
private static class Once implements ClassTemplateInvocationContextProvider {
@Override
public boolean supportsClassTemplate(ExtensionContext context) {
return true;
}
@Override
public Stream<ClassTemplateInvocationContext> provideClassTemplateInvocationContexts(
ExtensionContext context) {
return Stream.of(new ClassTemplateInvocationContext() {
@Override
public String getDisplayName(int invocationIndex) {
return "%s %s".formatted(ClassTemplateInvocationContext.super.getDisplayName(invocationIndex),
context.getDisplayName());
}
});
}
}
}
@SuppressWarnings("JUnitMalformedDeclaration")
@IndicativeSentencesGeneration
@SentenceFragment("")
static class BlankSentenceFragmentOnClassTestCase {
@Test
void test() {
}
}
@SuppressWarnings("JUnitMalformedDeclaration")
@IndicativeSentencesGeneration
static class BlankSentenceFragmentOnMethodTestCase {
@SentenceFragment("\t")
@Test
void test() {
}
}
}