-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
QuickFixTestGenerated.java
943 lines (761 loc) · 46.8 KB
/
QuickFixTestGenerated.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
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
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
/*
* Copyright 2010-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.jet.plugin.quickfix;
import junit.framework.Assert;
import junit.framework.Test;
import junit.framework.TestSuite;
import java.io.File;
import java.util.regex.Pattern;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.jetbrains.jet.plugin.quickfix.AbstractQuickFixTest;
/** This class is generated by {@link org.jetbrains.jet.generators.tests.GenerateTests}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("idea/testData/quickfix")
@InnerTestClasses({QuickFixTestGenerated.Abstract.class, QuickFixTestGenerated.AddStarProjections.class, QuickFixTestGenerated.AutoImports.class, QuickFixTestGenerated.Expressions.class, QuickFixTestGenerated.Migration.class, QuickFixTestGenerated.Modifiers.class, QuickFixTestGenerated.Nullables.class, QuickFixTestGenerated.Override.class, QuickFixTestGenerated.TypeAddition.class, QuickFixTestGenerated.TypeImports.class, QuickFixTestGenerated.TypeProjection.class, QuickFixTestGenerated.UselessImports.class, QuickFixTestGenerated.Variables.class, QuickFixTestGenerated.When.class})
public class QuickFixTestGenerated extends AbstractQuickFixTest {
public void testAllFilesPresentInQuickfix() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("idea/testData/quickfix/abstract")
public static class Abstract extends AbstractQuickFixTest {
@TestMetadata("beforeAbstractFunctionInNonAbstractClass.kt")
public void testAbstractFunctionInNonAbstractClass() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractFunctionInNonAbstractClass.kt");
}
@TestMetadata("beforeAbstractFunctionWithBody.kt")
public void testAbstractFunctionWithBody() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractFunctionWithBody.kt");
}
@TestMetadata("beforeAbstractFunctionWithBody2.kt")
public void testAbstractFunctionWithBody2() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractFunctionWithBody2.kt");
}
@TestMetadata("beforeAbstractFunctionWithBody3.kt")
public void testAbstractFunctionWithBody3() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractFunctionWithBody3.kt");
}
@TestMetadata("beforeAbstractPropertyInNonAbstractClass1.kt")
public void testAbstractPropertyInNonAbstractClass1() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyInNonAbstractClass1.kt");
}
@TestMetadata("beforeAbstractPropertyInNonAbstractClass2.kt")
public void testAbstractPropertyInNonAbstractClass2() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyInNonAbstractClass2.kt");
}
@TestMetadata("beforeAbstractPropertyInPrimaryConstructorParameters.kt")
public void testAbstractPropertyInPrimaryConstructorParameters() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyInPrimaryConstructorParameters.kt");
}
@TestMetadata("beforeAbstractPropertyNotInClass.kt")
public void testAbstractPropertyNotInClass() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyNotInClass.kt");
}
@TestMetadata("beforeAbstractPropertyWIthInitializer2.kt")
public void testAbstractPropertyWIthInitializer2() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyWIthInitializer2.kt");
}
@TestMetadata("beforeAbstractPropertyWIthInitializer3.kt")
public void testAbstractPropertyWIthInitializer3() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyWIthInitializer3.kt");
}
@TestMetadata("beforeAbstractPropertyWithGetter1.kt")
public void testAbstractPropertyWithGetter1() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyWithGetter1.kt");
}
@TestMetadata("beforeAbstractPropertyWithGetter2.kt")
public void testAbstractPropertyWithGetter2() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyWithGetter2.kt");
}
@TestMetadata("beforeAbstractPropertyWithInitializer1.kt")
public void testAbstractPropertyWithInitializer1() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyWithInitializer1.kt");
}
@TestMetadata("beforeAbstractPropertyWithSetter.kt")
public void testAbstractPropertyWithSetter() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeAbstractPropertyWithSetter.kt");
}
public void testAllFilesPresentInAbstract() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/abstract"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeMustBeInitializedOrBeAbstract.kt")
public void testMustBeInitializedOrBeAbstract() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeMustBeInitializedOrBeAbstract.kt");
}
@TestMetadata("beforeNonAbstractFunctionWithNoBody.kt")
public void testNonAbstractFunctionWithNoBody() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeNonAbstractFunctionWithNoBody.kt");
}
@TestMetadata("beforeNonMemberAbstractFunction.kt")
public void testNonMemberAbstractFunction() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeNonMemberAbstractFunction.kt");
}
@TestMetadata("beforeNonMemberFunctionNoBody.kt")
public void testNonMemberFunctionNoBody() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeNonMemberFunctionNoBody.kt");
}
@TestMetadata("beforeRedundantAbstract.kt")
public void testRedundantAbstract() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeRedundantAbstract.kt");
}
@TestMetadata("beforeReplaceOpen.kt")
public void testReplaceOpen() throws Exception {
doTest("idea/testData/quickfix/abstract/beforeReplaceOpen.kt");
}
}
@TestMetadata("idea/testData/quickfix/addStarProjections")
@InnerTestClasses({AddStarProjections.JavaClass.class, AddStarProjections.When.class})
public static class AddStarProjections extends AbstractQuickFixTest {
public void testAllFilesPresentInAddStarProjections() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/addStarProjections"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeQualifiedArrayList.kt")
public void testQualifiedArrayList() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/beforeQualifiedArrayList.kt");
}
@TestMetadata("beforeQualifiedList.kt")
public void testQualifiedList() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/beforeQualifiedList.kt");
}
@TestMetadata("beforeQualifiedMap.kt")
public void testQualifiedMap() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/beforeQualifiedMap.kt");
}
@TestMetadata("beforeUnqualifiedList.kt")
public void testUnqualifiedList() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/beforeUnqualifiedList.kt");
}
@TestMetadata("beforeUnqualifiedMap.kt")
public void testUnqualifiedMap() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/beforeUnqualifiedMap.kt");
}
@TestMetadata("beforeUnqualifiedMapOneArg.kt")
public void testUnqualifiedMapOneArg() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/beforeUnqualifiedMapOneArg.kt");
}
@TestMetadata("idea/testData/quickfix/addStarProjections/javaClass")
public static class JavaClass extends AbstractQuickFixTest {
public void testAllFilesPresentInJavaClass() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/addStarProjections/javaClass"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeFooOfC2.kt")
public void testFooOfC2() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/javaClass/beforeFooOfC2.kt");
}
@TestMetadata("beforeJavaClassOfC1Runtime.kt")
public void testJavaClassOfC1Runtime() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/javaClass/beforeJavaClassOfC1Runtime.kt");
}
@TestMetadata("beforeJavaClassOfC2Runtime.kt")
public void testJavaClassOfC2Runtime() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/javaClass/beforeJavaClassOfC2Runtime.kt");
}
@TestMetadata("beforeJavaClassOfCRuntime.kt")
public void testJavaClassOfCRuntime() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/javaClass/beforeJavaClassOfCRuntime.kt");
}
}
@TestMetadata("idea/testData/quickfix/addStarProjections/when")
public static class When extends AbstractQuickFixTest {
public void testAllFilesPresentInWhen() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/addStarProjections/when"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeQualifiedArrayList.kt")
public void testQualifiedArrayList() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/when/beforeQualifiedArrayList.kt");
}
@TestMetadata("beforeQualifiedList.kt")
public void testQualifiedList() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/when/beforeQualifiedList.kt");
}
@TestMetadata("beforeQualifiedMap.kt")
public void testQualifiedMap() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/when/beforeQualifiedMap.kt");
}
@TestMetadata("beforeUnqualifiedList.kt")
public void testUnqualifiedList() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/when/beforeUnqualifiedList.kt");
}
@TestMetadata("beforeUnqualifiedMap.kt")
public void testUnqualifiedMap() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/when/beforeUnqualifiedMap.kt");
}
@TestMetadata("beforeUnqualifiedMapOneArg.kt")
public void testUnqualifiedMapOneArg() throws Exception {
doTest("idea/testData/quickfix/addStarProjections/when/beforeUnqualifiedMapOneArg.kt");
}
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("AddStarProjections");
suite.addTestSuite(AddStarProjections.class);
suite.addTestSuite(JavaClass.class);
suite.addTestSuite(When.class);
return suite;
}
}
@TestMetadata("idea/testData/quickfix/autoImports")
public static class AutoImports extends AbstractQuickFixTest {
public void testAllFilesPresentInAutoImports() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/autoImports"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeCheckNoStackOverflowInImportInnerClassInCurrentFile.kt")
public void testCheckNoStackOverflowInImportInnerClassInCurrentFile() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeCheckNoStackOverflowInImportInnerClassInCurrentFile.kt");
}
@TestMetadata("beforeLibraryTopLevelFunctionImportRuntime.kt")
public void testLibraryTopLevelFunctionImportRuntime() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeLibraryTopLevelFunctionImportRuntime.kt");
}
@TestMetadata("beforeNamelessClass.kt")
public void testNamelessClass() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeNamelessClass.kt");
}
@TestMetadata("beforeNamelessFunction.kt")
public void testNamelessFunction() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeNamelessFunction.kt");
}
@TestMetadata("beforeNamelessObject.kt")
public void testNamelessObject() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeNamelessObject.kt");
}
@TestMetadata("beforeNamelessParameter.kt")
public void testNamelessParameter() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeNamelessParameter.kt");
}
@TestMetadata("beforeNamelessProperty.kt")
public void testNamelessProperty() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeNamelessProperty.kt");
}
@TestMetadata("beforeNoImportForAlreadyImported.kt")
public void testNoImportForAlreadyImported() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeNoImportForAlreadyImported.kt");
}
@TestMetadata("beforeNoImportForIndex.kt")
public void testNoImportForIndex() throws Exception {
doTest("idea/testData/quickfix/autoImports/beforeNoImportForIndex.kt");
}
}
@TestMetadata("idea/testData/quickfix/expressions")
public static class Expressions extends AbstractQuickFixTest {
public void testAllFilesPresentInExpressions() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/expressions"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeUnnecessaryNonNullAssertion1.kt")
public void testUnnecessaryNonNullAssertion1() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUnnecessaryNonNullAssertion1.kt");
}
@TestMetadata("beforeUnnecessaryNonNullAssertion2.kt")
public void testUnnecessaryNonNullAssertion2() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUnnecessaryNonNullAssertion2.kt");
}
@TestMetadata("beforeUnnecessaryNonNullAssertion3.kt")
public void testUnnecessaryNonNullAssertion3() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUnnecessaryNonNullAssertion3.kt");
}
@TestMetadata("beforeUnnecessarySafeCall1.kt")
public void testUnnecessarySafeCall1() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUnnecessarySafeCall1.kt");
}
@TestMetadata("beforeUnsafeCall1.kt")
public void testUnsafeCall1() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUnsafeCall1.kt");
}
@TestMetadata("beforeUnsafeCall2.kt")
public void testUnsafeCall2() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUnsafeCall2.kt");
}
@TestMetadata("beforeUnsafeCall3.kt")
public void testUnsafeCall3() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUnsafeCall3.kt");
}
@TestMetadata("beforeUselessCast.kt")
public void testUselessCast() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUselessCast.kt");
}
@TestMetadata("beforeUselessCastStaticAssertIsFine.kt")
public void testUselessCastStaticAssertIsFine() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUselessCastStaticAssertIsFine.kt");
}
@TestMetadata("beforeUselessElvis.kt")
public void testUselessElvis() throws Exception {
doTest("idea/testData/quickfix/expressions/beforeUselessElvis.kt");
}
}
@TestMetadata("idea/testData/quickfix/migration")
public static class Migration extends AbstractQuickFixTest {
public void testAllFilesPresentInMigration() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/migration"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeBareSure.kt")
public void testBareSure() throws Exception {
doTest("idea/testData/quickfix/migration/beforeBareSure.kt");
}
@TestMetadata("beforeSure.kt")
public void testSure() throws Exception {
doTest("idea/testData/quickfix/migration/beforeSure.kt");
}
@TestMetadata("beforeTuplesWithRuntime.kt")
public void testTuplesWithRuntime() throws Exception {
doTest("idea/testData/quickfix/migration/beforeTuplesWithRuntime.kt");
}
}
@TestMetadata("idea/testData/quickfix/modifiers")
@InnerTestClasses({Modifiers.FinalSupertype.class})
public static class Modifiers extends AbstractQuickFixTest {
@TestMetadata("beforeAddInnerModifier.kt")
public void testAddInnerModifier() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeAddInnerModifier.kt");
}
public void testAllFilesPresentInModifiers() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/modifiers"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeCannotMakeClassAnnotation.kt")
public void testCannotMakeClassAnnotation() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeCannotMakeClassAnnotation.kt");
}
@TestMetadata("beforeFinalTrait.kt")
public void testFinalTrait() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeFinalTrait.kt");
}
@TestMetadata("beforeIllegalEnumAnnotation1.kt")
public void testIllegalEnumAnnotation1() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeIllegalEnumAnnotation1.kt");
}
@TestMetadata("beforeIllegalEnumAnnotation2.kt")
public void testIllegalEnumAnnotation2() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeIllegalEnumAnnotation2.kt");
}
@TestMetadata("beforeNotAnAnnotationClass.kt")
public void testNotAnAnnotationClass() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeNotAnAnnotationClass.kt");
}
@TestMetadata("beforeOpenMemberInFinalClass1.kt")
public void testOpenMemberInFinalClass1() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeOpenMemberInFinalClass1.kt");
}
@TestMetadata("beforeOpenMemberInFinalClass2.kt")
public void testOpenMemberInFinalClass2() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeOpenMemberInFinalClass2.kt");
}
@TestMetadata("beforeOpenModifierInEnum.kt")
public void testOpenModifierInEnum() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeOpenModifierInEnum.kt");
}
@TestMetadata("beforePackageMemberCannotBeProtected.kt")
public void testPackageMemberCannotBeProtected() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforePackageMemberCannotBeProtected.kt");
}
@TestMetadata("beforeRemoveIncompatibleModifier.kt")
public void testRemoveIncompatibleModifier() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeRemoveIncompatibleModifier.kt");
}
@TestMetadata("beforeRemoveRedundantModifier1.kt")
public void testRemoveRedundantModifier1() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeRemoveRedundantModifier1.kt");
}
@TestMetadata("beforeRemoveRedundantModifier2.kt")
public void testRemoveRedundantModifier2() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeRemoveRedundantModifier2.kt");
}
@TestMetadata("beforeRemoveRedundantModifier3.kt")
public void testRemoveRedundantModifier3() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeRemoveRedundantModifier3.kt");
}
@TestMetadata("beforeVisibilityModifer1.kt")
public void testVisibilityModifer1() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeVisibilityModifer1.kt");
}
@TestMetadata("beforeVisibilityModifer2.kt")
public void testVisibilityModifer2() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeVisibilityModifer2.kt");
}
@TestMetadata("beforeVisibilityModiferParameter.kt")
public void testVisibilityModiferParameter() throws Exception {
doTest("idea/testData/quickfix/modifiers/beforeVisibilityModiferParameter.kt");
}
@TestMetadata("idea/testData/quickfix/modifiers/finalSupertype")
@InnerTestClasses({FinalSupertype.FinalJavaSupertype.class})
public static class FinalSupertype extends AbstractQuickFixTest {
public void testAllFilesPresentInFinalSupertype() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/modifiers/finalSupertype"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeEnumSupertype.kt")
public void testEnumSupertype() throws Exception {
doTest("idea/testData/quickfix/modifiers/finalSupertype/beforeEnumSupertype.kt");
}
@TestMetadata("beforeExplicitlyFinalSupertype.kt")
public void testExplicitlyFinalSupertype() throws Exception {
doTest("idea/testData/quickfix/modifiers/finalSupertype/beforeExplicitlyFinalSupertype.kt");
}
@TestMetadata("beforeFinalLibrarySupertype.kt")
public void testFinalLibrarySupertype() throws Exception {
doTest("idea/testData/quickfix/modifiers/finalSupertype/beforeFinalLibrarySupertype.kt");
}
@TestMetadata("beforeFinalSupertype.kt")
public void testFinalSupertype() throws Exception {
doTest("idea/testData/quickfix/modifiers/finalSupertype/beforeFinalSupertype.kt");
}
@TestMetadata("beforeImplementTraitFinalSupertype.kt")
public void testImplementTraitFinalSupertype() throws Exception {
doTest("idea/testData/quickfix/modifiers/finalSupertype/beforeImplementTraitFinalSupertype.kt");
}
@TestMetadata("idea/testData/quickfix/modifiers/finalSupertype/finalJavaSupertype")
@InnerTestClasses({FinalJavaSupertype.JavaCode.class})
public static class FinalJavaSupertype extends AbstractQuickFixTest {
public void testAllFilesPresentInFinalJavaSupertype() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/modifiers/finalSupertype/finalJavaSupertype"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("idea/testData/quickfix/modifiers/finalSupertype/finalJavaSupertype/javaCode")
@InnerTestClasses({})
public static class JavaCode extends AbstractQuickFixTest {
public void testAllFilesPresentInJavaCode() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/modifiers/finalSupertype/finalJavaSupertype/javaCode"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("JavaCode");
suite.addTestSuite(JavaCode.class);
return suite;
}
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("FinalJavaSupertype");
suite.addTestSuite(FinalJavaSupertype.class);
suite.addTest(JavaCode.innerSuite());
return suite;
}
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("FinalSupertype");
suite.addTestSuite(FinalSupertype.class);
suite.addTest(FinalJavaSupertype.innerSuite());
return suite;
}
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("Modifiers");
suite.addTestSuite(Modifiers.class);
suite.addTest(FinalSupertype.innerSuite());
return suite;
}
}
@TestMetadata("idea/testData/quickfix/nullables")
@InnerTestClasses({Nullables.UnsafeInfixCall.class})
public static class Nullables extends AbstractQuickFixTest {
public void testAllFilesPresentInNullables() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/nullables"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeRemoveRedundantNullable.kt")
public void testRemoveRedundantNullable() throws Exception {
doTest("idea/testData/quickfix/nullables/beforeRemoveRedundantNullable.kt");
}
@TestMetadata("beforeRemoveSupertypeNullable1.kt")
public void testRemoveSupertypeNullable1() throws Exception {
doTest("idea/testData/quickfix/nullables/beforeRemoveSupertypeNullable1.kt");
}
@TestMetadata("beforeRemoveSupertypeNullable2.kt")
public void testRemoveSupertypeNullable2() throws Exception {
doTest("idea/testData/quickfix/nullables/beforeRemoveSupertypeNullable2.kt");
}
@TestMetadata("idea/testData/quickfix/nullables/unsafeInfixCall")
public static class UnsafeInfixCall extends AbstractQuickFixTest {
public void testAllFilesPresentInUnsafeInfixCall() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/nullables/unsafeInfixCall"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeUnsafeInfixCall.kt")
public void testUnsafeInfixCall() throws Exception {
doTest("idea/testData/quickfix/nullables/unsafeInfixCall/beforeUnsafeInfixCall.kt");
}
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("Nullables");
suite.addTestSuite(Nullables.class);
suite.addTestSuite(UnsafeInfixCall.class);
return suite;
}
}
@TestMetadata("idea/testData/quickfix/override")
public static class Override extends AbstractQuickFixTest {
public void testAllFilesPresentInOverride() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/override"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeChangeToInvocation.kt")
public void testChangeToInvocation() throws Exception {
doTest("idea/testData/quickfix/override/beforeChangeToInvocation.kt");
}
@TestMetadata("beforeNothingToOverride.kt")
public void testNothingToOverride() throws Exception {
doTest("idea/testData/quickfix/override/beforeNothingToOverride.kt");
}
@TestMetadata("beforeParameterNameChangedAmbiguousRename.kt")
public void testParameterNameChangedAmbiguousRename() throws Exception {
doTest("idea/testData/quickfix/override/beforeParameterNameChangedAmbiguousRename.kt");
}
@TestMetadata("beforeParameterNameChangedMultipleOverrideRenamePossible.kt")
public void testParameterNameChangedMultipleOverrideRenamePossible() throws Exception {
doTest("idea/testData/quickfix/override/beforeParameterNameChangedMultipleOverrideRenamePossible.kt");
}
@TestMetadata("beforeParameterNameChangedRenamePossible.kt")
public void testParameterNameChangedRenamePossible() throws Exception {
doTest("idea/testData/quickfix/override/beforeParameterNameChangedRenamePossible.kt");
}
@TestMetadata("beforeVirtualMethodHidden.kt")
public void testVirtualMethodHidden() throws Exception {
doTest("idea/testData/quickfix/override/beforeVirtualMethodHidden.kt");
}
}
@TestMetadata("idea/testData/quickfix/typeAddition")
public static class TypeAddition extends AbstractQuickFixTest {
public void testAllFilesPresentInTypeAddition() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/typeAddition"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeNoAddErrorType.kt")
public void testNoAddErrorType() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforeNoAddErrorType.kt");
}
@TestMetadata("beforeProtectedFunWithoutReturnType.kt")
public void testProtectedFunWithoutReturnType() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforeProtectedFunWithoutReturnType.kt");
}
@TestMetadata("beforePublicFunWithoutBody.kt")
public void testPublicFunWithoutBody() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforePublicFunWithoutBody.kt");
}
@TestMetadata("beforePublicFunWithoutReturnType.kt")
public void testPublicFunWithoutReturnType() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforePublicFunWithoutReturnType.kt");
}
@TestMetadata("beforePublicFunWithoutReturnTypeCaretOnParameter.kt")
public void testPublicFunWithoutReturnTypeCaretOnParameter() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforePublicFunWithoutReturnTypeCaretOnParameter.kt");
}
@TestMetadata("beforePublicValWithoutReturnType.kt")
public void testPublicValWithoutReturnType() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforePublicValWithoutReturnType.kt");
}
@TestMetadata("beforePublicValWithoutReturnTypeCaretOnPublic.kt")
public void testPublicValWithoutReturnTypeCaretOnPublic() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforePublicValWithoutReturnTypeCaretOnPublic.kt");
}
@TestMetadata("beforeWrongGetterParameterType.kt")
public void testWrongGetterParameterType() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforeWrongGetterParameterType.kt");
}
@TestMetadata("beforeWrongSetterParameterType.kt")
public void testWrongSetterParameterType() throws Exception {
doTest("idea/testData/quickfix/typeAddition/beforeWrongSetterParameterType.kt");
}
}
@TestMetadata("idea/testData/quickfix/typeImports")
public static class TypeImports extends AbstractQuickFixTest {
public void testAllFilesPresentInTypeImports() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/typeImports"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeHasThisImport.kt")
public void testHasThisImport() throws Exception {
doTest("idea/testData/quickfix/typeImports/beforeHasThisImport.kt");
}
@TestMetadata("beforeNoImportFromTheSameFile.kt")
public void testNoImportFromTheSameFile() throws Exception {
doTest("idea/testData/quickfix/typeImports/beforeNoImportFromTheSameFile.kt");
}
@TestMetadata("beforeNoImportJavaLang.kt")
public void testNoImportJavaLang() throws Exception {
doTest("idea/testData/quickfix/typeImports/beforeNoImportJavaLang.kt");
}
@TestMetadata("beforeNoImportJetStandard.kt")
public void testNoImportJetStandard() throws Exception {
doTest("idea/testData/quickfix/typeImports/beforeNoImportJetStandard.kt");
}
@TestMetadata("beforeToImport1.kt")
public void testToImport1() throws Exception {
doTest("idea/testData/quickfix/typeImports/beforeToImport1.kt");
}
}
@TestMetadata("idea/testData/quickfix/typeProjection")
public static class TypeProjection extends AbstractQuickFixTest {
public void testAllFilesPresentInTypeProjection() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/typeProjection"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeRemoveRedundantProjection1.kt")
public void testRemoveRedundantProjection1() throws Exception {
doTest("idea/testData/quickfix/typeProjection/beforeRemoveRedundantProjection1.kt");
}
@TestMetadata("beforeRemoveRedundantProjection2.kt")
public void testRemoveRedundantProjection2() throws Exception {
doTest("idea/testData/quickfix/typeProjection/beforeRemoveRedundantProjection2.kt");
}
@TestMetadata("beforeRemoveVariance.kt")
public void testRemoveVariance() throws Exception {
doTest("idea/testData/quickfix/typeProjection/beforeRemoveVariance.kt");
}
}
@TestMetadata("idea/testData/quickfix/uselessImports")
public static class UselessImports extends AbstractQuickFixTest {
public void testAllFilesPresentInUselessImports() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/uselessImports"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeRemoveUselessHiddenImport.kt")
public void testRemoveUselessHiddenImport() throws Exception {
doTest("idea/testData/quickfix/uselessImports/beforeRemoveUselessHiddenImport.kt");
}
@TestMetadata("beforeRemoveUselessImport.kt")
public void testRemoveUselessImport() throws Exception {
doTest("idea/testData/quickfix/uselessImports/beforeRemoveUselessImport.kt");
}
}
@TestMetadata("idea/testData/quickfix/variables")
@InnerTestClasses({Variables.ChangeMutability.class, Variables.ChangeToBackingField.class, Variables.ChangeToFunctionInvocation.class, Variables.ChangeToPropertyName.class})
public static class Variables extends AbstractQuickFixTest {
public void testAllFilesPresentInVariables() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/variables"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeUnusedVariableWithInitializer.kt")
public void testUnusedVariableWithInitializer() throws Exception {
doTest("idea/testData/quickfix/variables/beforeUnusedVariableWithInitializer.kt");
}
@TestMetadata("beforeUnusedVariableWithoutInitializer.kt")
public void testUnusedVariableWithoutInitializer() throws Exception {
doTest("idea/testData/quickfix/variables/beforeUnusedVariableWithoutInitializer.kt");
}
@TestMetadata("idea/testData/quickfix/variables/changeMutability")
public static class ChangeMutability extends AbstractQuickFixTest {
public void testAllFilesPresentInChangeMutability() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/variables/changeMutability"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeValOverrideVar.kt")
public void testValOverrideVar() throws Exception {
doTest("idea/testData/quickfix/variables/changeMutability/beforeValOverrideVar.kt");
}
@TestMetadata("beforeValReassignmentLocal.kt")
public void testValReassignmentLocal() throws Exception {
doTest("idea/testData/quickfix/variables/changeMutability/beforeValReassignmentLocal.kt");
}
@TestMetadata("beforeValReassignmentOuterDecl.kt")
public void testValReassignmentOuterDecl() throws Exception {
doTest("idea/testData/quickfix/variables/changeMutability/beforeValReassignmentOuterDecl.kt");
}
@TestMetadata("beforeValReassignmentProperty.kt")
public void testValReassignmentProperty() throws Exception {
doTest("idea/testData/quickfix/variables/changeMutability/beforeValReassignmentProperty.kt");
}
@TestMetadata("beforeValWithSetter.kt")
public void testValWithSetter() throws Exception {
doTest("idea/testData/quickfix/variables/changeMutability/beforeValWithSetter.kt");
}
}
@TestMetadata("idea/testData/quickfix/variables/changeToBackingField")
public static class ChangeToBackingField extends AbstractQuickFixTest {
public void testAllFilesPresentInChangeToBackingField() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/variables/changeToBackingField"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeBFRequired.kt")
public void testBFRequired() throws Exception {
doTest("idea/testData/quickfix/variables/changeToBackingField/beforeBFRequired.kt");
}
@TestMetadata("beforeKt510.kt")
public void testKt510() throws Exception {
doTest("idea/testData/quickfix/variables/changeToBackingField/beforeKt510.kt");
}
}
@TestMetadata("idea/testData/quickfix/variables/changeToFunctionInvocation")
public static class ChangeToFunctionInvocation extends AbstractQuickFixTest {
public void testAllFilesPresentInChangeToFunctionInvocation() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/variables/changeToFunctionInvocation"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeFunInvWithoutParentheses.kt")
public void testFunInvWithoutParentheses() throws Exception {
doTest("idea/testData/quickfix/variables/changeToFunctionInvocation/beforeFunInvWithoutParentheses.kt");
}
}
@TestMetadata("idea/testData/quickfix/variables/changeToPropertyName")
public static class ChangeToPropertyName extends AbstractQuickFixTest {
@TestMetadata("beforeAbstractProperty.kt")
public void testAbstractProperty() throws Exception {
doTest("idea/testData/quickfix/variables/changeToPropertyName/beforeAbstractProperty.kt");
}
@TestMetadata("beforeAbstractPropertyThis.kt")
public void testAbstractPropertyThis() throws Exception {
doTest("idea/testData/quickfix/variables/changeToPropertyName/beforeAbstractPropertyThis.kt");
}
public void testAllFilesPresentInChangeToPropertyName() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/variables/changeToPropertyName"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeCustomAccessors.kt")
public void testCustomAccessors() throws Exception {
doTest("idea/testData/quickfix/variables/changeToPropertyName/beforeCustomAccessors.kt");
}
@TestMetadata("beforeInaccessibleBackingField.kt")
public void testInaccessibleBackingField() throws Exception {
doTest("idea/testData/quickfix/variables/changeToPropertyName/beforeInaccessibleBackingField.kt");
}
@TestMetadata("beforeInaccessibleBackingFieldQualified.kt")
public void testInaccessibleBackingFieldQualified() throws Exception {
doTest("idea/testData/quickfix/variables/changeToPropertyName/beforeInaccessibleBackingFieldQualified.kt");
}
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("Variables");
suite.addTestSuite(Variables.class);
suite.addTestSuite(ChangeMutability.class);
suite.addTestSuite(ChangeToBackingField.class);
suite.addTestSuite(ChangeToFunctionInvocation.class);
suite.addTestSuite(ChangeToPropertyName.class);
return suite;
}
}
@TestMetadata("idea/testData/quickfix/when")
public static class When extends AbstractQuickFixTest {
public void testAllFilesPresentInWhen() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/quickfix/when"), Pattern.compile("^before(\\w+)\\.kt$"), true);
}
@TestMetadata("beforeElseNotLastInWhen.kt")
public void testElseNotLastInWhen() throws Exception {
doTest("idea/testData/quickfix/when/beforeElseNotLastInWhen.kt");
}
@TestMetadata("beforeNoElseInWhenWithBranches.kt")
public void testNoElseInWhenWithBranches() throws Exception {
doTest("idea/testData/quickfix/when/beforeNoElseInWhenWithBranches.kt");
}
@TestMetadata("beforeNoElseInWhenWithoutBranches.kt")
public void testNoElseInWhenWithoutBranches() throws Exception {
doTest("idea/testData/quickfix/when/beforeNoElseInWhenWithoutBranches.kt");
}
@TestMetadata("beforeTwoElseBranchesInWhen.kt")
public void testTwoElseBranchesInWhen() throws Exception {
doTest("idea/testData/quickfix/when/beforeTwoElseBranchesInWhen.kt");
}
}
public static Test suite() {
TestSuite suite = new TestSuite("QuickFixTestGenerated");
suite.addTestSuite(QuickFixTestGenerated.class);
suite.addTestSuite(Abstract.class);
suite.addTest(AddStarProjections.innerSuite());
suite.addTestSuite(AutoImports.class);
suite.addTestSuite(Expressions.class);
suite.addTestSuite(Migration.class);
suite.addTest(Modifiers.innerSuite());
suite.addTest(Nullables.innerSuite());
suite.addTestSuite(Override.class);
suite.addTestSuite(TypeAddition.class);
suite.addTestSuite(TypeImports.class);
suite.addTestSuite(TypeProjection.class);
suite.addTestSuite(UselessImports.class);
suite.addTest(Variables.innerSuite());
suite.addTestSuite(When.class);
return suite;
}
}