-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathReadTableTest.java
627 lines (444 loc) · 17.1 KB
/
ReadTableTest.java
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
package com.sap.adt.abapcleaner.rules.commands;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.sap.adt.abapcleaner.rulebase.RuleID;
import com.sap.adt.abapcleaner.rulebase.RuleTestBase;
public class ReadTableTest extends RuleTestBase {
private ReadTableRule rule;
ReadTableTest() {
super(RuleID.READ_TABLE);
rule = (ReadTableRule)getRule();
}
@BeforeEach
void setUp() {
// setup default test configuration (may be modified in the individual test methods)
rule.configReplaceWithAssign.setValue(true);
rule.configReplaceWithLineExists.setValue(true);
rule.configReplaceWithLineIndex.setValue(true);
rule.configUseComponentsKeyword.setValue(false);
}
@Test
void testDoNotReplaceAnything() {
rule.configReplaceWithAssign.setValue(false);
rule.configReplaceWithLineExists.setValue(false);
rule.configReplaceWithLineIndex.setValue(false);
buildSrc(" READ TABLE its_any WITH TABLE KEY comp1 = iv_value1 ASSIGNING FIELD-SYMBOL(<ls_any>) ELSE UNASSIGN.");
buildSrc(" CHECK sy-subrc <> 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testAssignElseUnassign() {
buildSrc(" READ TABLE its_any WITH TABLE KEY comp1 = iv_value1 ASSIGNING FIELD-SYMBOL(<ls_any>) ELSE UNASSIGN.");
buildSrc(" CHECK sy-subrc <> 0.");
buildExp(" ASSIGN its_any[ comp1 = iv_value1 ] TO FIELD-SYMBOL(<ls_any>) ELSE UNASSIGN.");
buildExp(" CHECK sy-subrc <> 0.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testDoNotReplaceWithAssigning() {
rule.configReplaceWithAssign.setValue(false);
buildSrc(" READ TABLE its_any WITH TABLE KEY comp1 = iv_value1 ASSIGNING FIELD-SYMBOL(<ls_any>) ELSE UNASSIGN.");
buildSrc(" CHECK sy-subrc <> 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testLineExistsWithECComment() {
buildSrc(" READ TABLE its_any WITH KEY comp2 = iv_value2 TRANSPORTING NO FIELDS. \"#EC CI_SORTSEQ");
buildSrc(" IF sy-subrc EQ 0.");
buildSrc(" RETURN.");
buildSrc(" ENDIF.");
buildExp(" IF line_exists( its_any[ comp2 = iv_value2 ] ). \"#EC CI_SORTSEQ");
buildExp(" RETURN.");
buildExp(" ENDIF.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testTwoFinalCommentsKept() {
buildSrc(" READ TABLE its_any WITH KEY comp2 = iv_value2 TRANSPORTING NO FIELDS. \"#EC CI_SORTSEQ");
buildSrc(" IF sy-subrc EQ 0. \" comment");
buildSrc(" RETURN.");
buildSrc(" ENDIF.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testDoNotReplaceWithLineExists() {
rule.configReplaceWithLineExists.setValue(false);
buildSrc(" READ TABLE its_any WITH KEY comp2 = iv_value2 TRANSPORTING NO FIELDS.");
buildSrc(" IF sy-subrc EQ 0.");
buildSrc(" RETURN.");
buildSrc(" ENDIF.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testDoNotReplaceWithLineIndex() {
rule.configReplaceWithLineIndex.setValue(false);
buildSrc(" READ TABLE its_any WITH TABLE KEY seckey COMPONENTS comp1 = 1 comp2 = abap_true TRANSPORTING NO FIELDS.");
buildSrc(" DATA(lv_line_index) = sy-tabix.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testDoNotReplaceWithLineExistsOrIndex() {
rule.configReplaceWithLineExists.setValue(false);
rule.configReplaceWithLineIndex.setValue(false);
buildSrc(" READ TABLE its_any WITH KEY comp2 = iv_value2 TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc EQ 0.");
buildSrc(" READ TABLE its_any WITH TABLE KEY seckey COMPONENTS comp1 = 1 comp2 = abap_true TRANSPORTING NO FIELDS.");
buildSrc(" DATA(lv_line_index) = sy-tabix.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testLineExistsWithKeyName() {
buildSrc(" READ TABLE its_any WITH TABLE KEY keyname");
buildSrc(" COMPONENTS comp1 = iv_value1");
buildSrc(" comp2 = iv_value2");
buildSrc(" TRANSPORTING NO FIELDS.");
buildSrc(" IF sy-subrc <> 0.");
buildSrc(" RETURN.");
buildSrc(" ENDIF.");
buildExp(" IF NOT line_exists( its_any[ KEY keyname");
buildExp(" comp1 = iv_value1");
buildExp(" comp2 = iv_value2 ] ).");
buildExp(" RETURN.");
buildExp(" ENDIF.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testLineExistsWithComponentsKeyword() {
rule.configUseComponentsKeyword.setValue(true);
buildSrc(" READ TABLE its_any WITH TABLE KEY keyname");
buildSrc(" COMPONENTS comp1 = iv_value1");
buildSrc(" comp2 = iv_value2");
buildSrc(" TRANSPORTING NO FIELDS.");
buildSrc(" IF sy-subrc IS INITIAL.");
buildSrc(" RETURN.");
buildSrc(" ENDIF.");
buildExp(" IF line_exists( its_any[ KEY keyname");
buildExp(" COMPONENTS comp1 = iv_value1");
buildExp(" comp2 = iv_value2 ] ).");
buildExp(" RETURN.");
buildExp(" ENDIF.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testLineIndexWithKeyName() {
// also ensure that the comment lines do not prevent the replacement
buildSrc(" READ TABLE its_any WITH TABLE KEY seckey COMPONENTS comp1 = 1 comp2 = abap_true TRANSPORTING NO FIELDS.");
buildSrc(" \" comment line");
buildSrc("* another comment line");
buildSrc(" DATA(lv_line_index) = sy-tabix.");
buildExp(" \" comment line");
buildExp("* another comment line");
buildExp(" DATA(lv_line_index) = line_index( its_any[ KEY seckey");
buildExp(" comp1 = 1");
buildExp(" comp2 = abap_true ] ).");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testLineIndexWithComponentsKeyword() {
rule.configUseComponentsKeyword.setValue(true);
buildSrc(" READ TABLE its_any WITH TABLE KEY seckey COMPONENTS comp1 = 1 comp2 = abap_true TRANSPORTING NO FIELDS.");
buildSrc(" DATA(lv_line_index) = sy-tabix.");
buildExp(" DATA(lv_line_index) = line_index( its_any[ KEY seckey COMPONENTS comp1 = 1");
buildExp(" comp2 = abap_true ] ).");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSyTabixAssignmentKept() {
// ensure that READ TABLE is kept when subsequent SY-TABIX is in a write position
buildSrc(" READ TABLE lt_any WITH KEY comp1 = 1 TRANSPORTING NO FIELDS.");
buildSrc(" sy-tabix = 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testBinarySearchKept() {
buildSrc(" READ TABLE it_any WITH KEY comp1 = iv_value1 BINARY SEARCH TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc = 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testFromWorkAreaKept() {
buildSrc(" READ TABLE its_any FROM is_any TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc = 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testIntoAndReferenceIntoKept() {
// in the second example, TRANSPORTING NO FIELDS is allowed despite INTO;
// the third example (without COMPARING) creates a compiler warning, but no error
buildSrc(" READ TABLE its_any WITH KEY comp1 = 'abc' INTO DATA(ls_any).");
buildSrc(" READ TABLE its_any INDEX 1 INTO ls_any COMPARING comp1 TRANSPORTING NO FIELDS.");
buildSrc(" READ TABLE its_any INDEX 1 TRANSPORTING NO FIELDS INTO ls_any.");
buildSrc(" READ TABLE its_any INDEX 1 INTO ls_any COMPARING ALL FIELDS TRANSPORTING ALL FIELDS.");
buildSrc(" READ TABLE its_any WITH KEY comp1 = 'def' REFERENCE INTO lr_any.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testTableFromFunctionCallKept() {
buildSrc(" READ TABLE get_table( ) WITH KEY comp1 = iv_value1 TRANSPORTING NO FIELDS.");
buildSrc(" lv_line_index = sy-tabix.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testTableFromConstructorExprKept() {
buildSrc(" READ TABLE VALUE ty_tt_any( ( a = 1 ) ) INDEX 1 TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc = 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSySubrcEquals4Kept() {
buildSrc(" READ TABLE its_any WITH KEY comp1 = iv_value1 TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc = 4.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSySubrcUsedTwiceInSameStatementKept() {
buildSrc(" READ TABLE its_any WITH KEY comp1 = iv_value1 TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc = 0 OR sy-subrc EQ 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testMultipleSySubrcKept() {
buildSrc(" READ TABLE its_any WITH KEY comp1 = iv_value1 TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc = 0.");
buildSrc(" IF sy-subrc <> 0.");
buildSrc(" ENDIF.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSubrcAssignedToVariableKept() {
buildSrc(" READ TABLE lt_any_table TRANSPORTING NO FIELDS WITH KEY comp1 = iv_any_param");
buildSrc(" comp2 = iv_other_param.");
buildSrc(" DATA(lv_subrc) = sy-subrc.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSySubrcAndSyTabixKept() {
buildSrc(" READ TABLE its_any WITH KEY comp1 = iv_value1 TRANSPORTING NO FIELDS.");
buildSrc(" IF sy-subrc = 0.");
buildSrc(" DELETE its_any INDEX sy-tabix.");
buildSrc(" ENDIF.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSyTabixUsedTwiceInSameStatementKept() {
buildSrc(" READ TABLE its_any WITH KEY comp1 = iv_value1 TRANSPORTING NO FIELDS.");
buildSrc(" DATA(lv_any) = sy-tabix + 3 * ( sy-tabix - 1 ).");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testInnerCommentKept() {
buildSrc(" READ TABLE its_any \" very important comment which must never get lost");
buildSrc(" WITH TABLE KEY comp1 = iv_value1 TRANSPORTING NO FIELDS.");
buildSrc(" CHECK sy-subrc = 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSyTabixAndAssertSubrcKept() {
buildSrc(" READ TABLE its_any WITH KEY comp2 = iv_value2 TRANSPORTING NO FIELDS. \"#EC CI_SORTSEQ");
buildSrc(" DATA(lv_line_index) = sy-tabix.");
buildSrc(" cl_abap_unit_assert=>assert_subrc( ).");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testAssertSubrcWithoutParamsKept() {
buildSrc(" READ TABLE its_any WITH KEY comp2 = iv_value2 TRANSPORTING NO FIELDS. \"#EC CI_SORTSEQ");
buildSrc(" cl_abap_unit_assert=>assert_subrc( ).");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testAssignWithAssertSubrcWithoutParamsChanged() {
buildSrc(" READ TABLE its_any WITH TABLE KEY comp1 = iv_value1 ASSIGNING <ls_any> CASTING ELSE UNASSIGN.");
buildSrc(" cl_abap_unit_assert=>assert_subrc( ).");
buildExp(" ASSIGN its_any[ comp1 = iv_value1 ] TO <ls_any> CASTING ELSE UNASSIGN.");
buildExp(" cl_abap_unit_assert=>assert_subrc( ).");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testAssignWithAssertSubrcWithParamsKept() {
buildSrc(" READ TABLE its_any WITH TABLE KEY comp1 = iv_value1 ASSIGNING FIELD-SYMBOL(<ls_any>) ELSE UNASSIGN.");
buildSrc(" cl_abap_unit_assert=>assert_subrc( exp = 8 ).");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testAssigningWithFreeKeyAndKeyNameKept() {
buildSrc(" READ TABLE its_any WITH KEY keyname COMPONENTS comp1 = iv_value1 ASSIGNING FIELD-SYMBOL(<ls_any>) ELSE UNASSIGN.");
buildSrc(" CHECK sy-subrc <> 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testTFillOrTLengKept() {
buildSrc(" READ TABLE its_any WITH TABLE KEY comp1 = iv_value1 ASSIGNING FIELD-SYMBOL(<ls_any>) ELSE UNASSIGN.");
buildSrc(" DATA(lv_tfill) = sy-tfill.");
buildSrc("");
buildSrc(" READ TABLE its_any WITH KEY comp2 = iv_value2 TRANSPORTING NO FIELDS. \"#EC CI_SORTSEQ");
buildSrc(" DATA(lv_tleng) = sy-tleng.");
buildSrc(" ASSERT sy-subrc EQ 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testFieldSymbolForTable() {
buildSrc(" READ TABLE <lt_any_table> INDEX lv_any_index ASSIGNING <ls_any_struc>.");
buildExp(" ASSIGN <lt_any_table>[ lv_any_index ] TO <ls_any_struc>.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSySubrcInEnclosingWhileKept() {
// ensure that READ TABLE is NOT changed, although the ProgramFlowAnalyzer returns exactly one line which
// evaluates SY-SUBRC afterwards
buildSrc(" sy-subrc = 0.");
buildSrc(" WHILE sy-subrc = 0.");
buildSrc(" lv_any_value += 1.");
buildSrc(" READ TABLE lt_any_table TRANSPORTING NO FIELDS WITH KEY comp1 = lv_any_value.");
buildSrc(" ENDWHILE.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSySubrcInWhileAfterReadTable() {
// ensure that READ TABLE is NOT changed, because SY-SUBRC is evaluated in a loop (and thus potentially multiple times)
buildSrc(" READ TABLE lt_any_table WITH KEY comp1 = lv_any_value TRANSPORTING NO FIELDS.");
buildSrc(" WHILE sy-subrc = 0.");
buildSrc(" \" do something");
buildSrc(" ENDWHILE.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testSySubrcNotInNextCommand() {
buildSrc(" IF iv_check_comp1 = abap_true.");
buildSrc(" READ TABLE lt_any WITH KEY comp1 = lv_any_value TRANSPORTING NO FIELDS.");
buildSrc(" ELSE.");
buildSrc(" READ TABLE lt_any WITH KEY comp2 = lv_any_value TRANSPORTING NO FIELDS.");
buildSrc(" ENDIF.");
buildSrc(" CHECK sy-subrc <> 0.");
copyExpFromSrc();
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testInsertLineIndexIntoTable() {
buildSrc(" READ TABLE lt_any WITH KEY comp = ls_any_struc-any_comp TRANSPORTING NO FIELDS.");
buildSrc(" INSERT sy-tabix INTO TABLE lt_index_table.");
buildExp(" INSERT line_index( lt_any[ comp = ls_any_struc-any_comp ] ) INTO TABLE lt_index_table.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testWithKeyTableLine() {
buildSrc(" READ TABLE lt_any_table WITH KEY table_line = iv_any_param TRANSPORTING NO FIELDS.");
buildSrc(" IF sy-subrc IS NOT INITIAL.");
buildSrc(" ENDIF.");
buildExp(" IF NOT line_exists( lt_any_table[ table_line = iv_any_param ] ).");
buildExp(" ENDIF.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testWithKeyEqualsChangedToTableLine() {
// expect the special syntax 'WITH KEY = ...', which is allowed for tables with one anonymous column,
// to be transformed to 'table_line = ...'
buildSrc(" READ TABLE lt_any_table WITH KEY = 'A' TRANSPORTING NO FIELDS.");
buildSrc(" DATA(lv_any_value) = sy-tabix.");
buildExp(" DATA(lv_any_value) = line_index( lt_any_table[ table_line = 'A' ] ).");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testComponentsWithOffsetAndLength() {
// also expect the empty line to be kept
buildSrc(" \" comment and empty line");
buildSrc("");
buildSrc(" READ TABLE lt_any_table WITH KEY comp_a = <ls_struc>-comp_a");
buildSrc(" comp_b+0(7) = <ls_struc>-comp_b+0(7) TRANSPORTING NO FIELDS.");
buildSrc(" IF sy-subrc = 0.");
buildSrc(" ENDIF.");
buildExp(" \" comment and empty line");
buildExp("");
buildExp(" IF line_exists( lt_any_table[ comp_a = <ls_struc>-comp_a");
buildExp(" comp_b+0(7) = <ls_struc>-comp_b+0(7) ] ).");
buildExp(" ENDIF.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testTableWithHeaderLineBracketsRemoved() {
// ensure that the brackets are removed from 'itab[]'
buildSrc(" READ TABLE its_any[] WITH TABLE KEY comp1 = iv_value1 ASSIGNING FIELD-SYMBOL(<ls_any>).");
buildExp(" ASSIGN its_any[ comp1 = iv_value1 ] TO FIELD-SYMBOL(<ls_any>).");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testAssignIndexWithKeyName() {
buildSrc(" READ TABLE lt_any_table INDEX 42 USING KEY key_name ASSIGNING <ls_any_struc>.");
buildExp(" ASSIGN lt_any_table[ KEY key_name INDEX 42 ] TO <ls_any_struc>.");
putAnyMethodAroundSrcAndExp();
testRule();
}
@Test
void testLineExistsIndexWithKeyName() {
buildSrc(" READ TABLE lt_any_table INDEX 42 USING KEY key_name TRANSPORTING NO FIELDS.");
buildSrc(" ASSERT ( iv_check = abap_true ) AND ( sy-subrc <> 0 ).");
buildExp(" ASSERT ( iv_check = abap_true ) AND ( NOT line_exists( lt_any_table[ KEY key_name INDEX 42 ] ) ).");
putAnyMethodAroundSrcAndExp();
testRule();
}
}