summaryrefslogtreecommitdiff
path: root/plugins/kotlin/fir/test/org/jetbrains/kotlin/idea/fir/shortenRefs/FirShortenRefsTestGenerated.java
blob: fb1d6774d972bdd13b731c1fa59ab2084c6ab1f5 (plain)
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
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.

package org.jetbrains.kotlin.idea.fir.shortenRefs;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.jetbrains.kotlin.idea.test.TestRoot;
import org.junit.runner.RunWith;

/**
 * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
 * DO NOT MODIFY MANUALLY.
 */
@SuppressWarnings("all")
@TestRoot("fir")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("../idea/tests/testData/shortenRefsFir")
public abstract class FirShortenRefsTestGenerated extends AbstractFirShortenRefsTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../idea/tests/testData/shortenRefsFir/calls")
    public static class Calls extends AbstractFirShortenRefsTest {
        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTestWithMuting, this, testDataFilePath);
        }

        @TestMetadata("classInSameFile.kt")
        public void testClassInSameFile() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/classInSameFile.kt");
        }

        @TestMetadata("explicitlyImportedFunctionFromLocalObject.kt")
        public void testExplicitlyImportedFunctionFromLocalObject() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/explicitlyImportedFunctionFromLocalObject.kt");
        }

        @TestMetadata("extenstionFunctionOnCompanionObjectReceiverNotShortened.kt")
        public void testExtenstionFunctionOnCompanionObjectReceiverNotShortened() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/extenstionFunctionOnCompanionObjectReceiverNotShortened.kt");
        }

        @TestMetadata("extenstionFunctionOnObjectReceiverNotShortened.kt")
        public void testExtenstionFunctionOnObjectReceiverNotShortened() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/extenstionFunctionOnObjectReceiverNotShortened.kt");
        }

        @TestMetadata("extenstionFunctionReceiverNotShortened.kt")
        public void testExtenstionFunctionReceiverNotShortened() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/extenstionFunctionReceiverNotShortened.kt");
        }

        @TestMetadata("functionInSameFile.kt")
        public void testFunctionInSameFile() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/functionInSameFile.kt");
        }

        @TestMetadata("functionInSameFile2.kt")
        public void testFunctionInSameFile2() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/functionInSameFile2.kt");
        }

        @TestMetadata("functionInSameFileAmbiguous.kt")
        public void testFunctionInSameFileAmbiguous() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/functionInSameFileAmbiguous.kt");
        }

        @TestMetadata("notImportedTopLevelFunctionAmbiguous.kt")
        public void testNotImportedTopLevelFunctionAmbiguous() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/notImportedTopLevelFunctionAmbiguous.kt");
        }

        @TestMetadata("notImportedTopLevelFunctionConflictsWithImported.kt")
        public void testNotImportedTopLevelFunctionConflictsWithImported() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/notImportedTopLevelFunctionConflictsWithImported.kt");
        }

        @TestMetadata("notImportedTopLevelFunctionMissingArg.kt")
        public void testNotImportedTopLevelFunctionMissingArg() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/notImportedTopLevelFunctionMissingArg.kt");
        }

        @TestMetadata("notImportedTopLevelFunctionNoArgs.kt")
        public void testNotImportedTopLevelFunctionNoArgs() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/notImportedTopLevelFunctionNoArgs.kt");
        }

        @TestMetadata("notImportedTopLevelProperty.kt")
        public void testNotImportedTopLevelProperty() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/notImportedTopLevelProperty.kt");
        }

        @TestMetadata("notImportedTopLevelTypeConstructorNoArgs.kt")
        public void testNotImportedTopLevelTypeConstructorNoArgs() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/notImportedTopLevelTypeConstructorNoArgs.kt");
        }

        @TestMetadata("onlyShortenSelection.kt")
        public void testOnlyShortenSelection() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/onlyShortenSelection.kt");
        }

        @TestMetadata("propertiesDeclaredInPrimaryConstructor_accessorAnnotation.kt")
        public void testPropertiesDeclaredInPrimaryConstructor_accessorAnnotation() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/propertiesDeclaredInPrimaryConstructor_accessorAnnotation.kt");
        }

        @TestMetadata("propertiesDeclaredInPrimaryConstructor_type.kt")
        public void testPropertiesDeclaredInPrimaryConstructor_type() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/propertiesDeclaredInPrimaryConstructor_type.kt");
        }

        @TestMetadata("propertyChainCall.kt")
        public void testPropertyChainCall() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/propertyChainCall.kt");
        }

        @TestMetadata("propertyDeclaredInPrimaryConstructor_accessorAnnotation.kt")
        public void testPropertyDeclaredInPrimaryConstructor_accessorAnnotation() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/propertyDeclaredInPrimaryConstructor_accessorAnnotation.kt");
        }

        @TestMetadata("propertyDeclaredInPrimaryConstructor_type.kt")
        public void testPropertyDeclaredInPrimaryConstructor_type() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/propertyDeclaredInPrimaryConstructor_type.kt");
        }

        @TestMetadata("propertyInSameFile.kt")
        public void testPropertyInSameFile() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/propertyInSameFile.kt");
        }

        @TestMetadata("propertyInSameFile2.kt")
        public void testPropertyInSameFile2() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/propertyInSameFile2.kt");
        }

        @TestMetadata("rootPackage.kt")
        public void testRootPackage() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/rootPackage.kt");
        }

        @TestMetadata("selfReferencingFunction.kt")
        public void testSelfReferencingFunction() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/selfReferencingFunction.kt");
        }

        @TestMetadata("variableNotShortened.kt")
        public void testVariableNotShortened() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/calls/variableNotShortened.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../idea/tests/testData/shortenRefsFir/fakeRootPackage")
    public static class FakeRootPackage extends AbstractFirShortenRefsTest {
        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTestWithMuting, this, testDataFilePath);
        }

        @TestMetadata("rootPackageShortenFakeRootPackage.kt")
        public void testRootPackageShortenFakeRootPackage() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/fakeRootPackage/rootPackageShortenFakeRootPackage.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../idea/tests/testData/shortenRefsFir/quailfiers")
    public static class Quailfiers extends AbstractFirShortenRefsTest {
        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTestWithMuting, this, testDataFilePath);
        }

        @TestMetadata("AlreadyImportedNestedType.kt")
        public void testAlreadyImportedNestedType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/quailfiers/AlreadyImportedNestedType.kt");
        }

        @TestMetadata("Enum.kt")
        public void testEnum() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/quailfiers/Enum.kt");
        }

        @TestMetadata("NestedTypeInSameFile.kt")
        public void testNestedTypeInSameFile() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/quailfiers/NestedTypeInSameFile.kt");
        }

        @TestMetadata("NotImportedNestedType.kt")
        public void testNotImportedNestedType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/quailfiers/NotImportedNestedType.kt");
        }

        @TestMetadata("NotImportedTopLevelType.kt")
        public void testNotImportedTopLevelType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/quailfiers/NotImportedTopLevelType.kt");
        }

        @TestMetadata("TopLevelTypeInSameFile.kt")
        public void testTopLevelTypeInSameFile() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/quailfiers/TopLevelTypeInSameFile.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../idea/tests/testData/shortenRefsFir/types")
    public static class Types extends AbstractFirShortenRefsTest {
        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTestWithMuting, this, testDataFilePath);
        }

        @TestMetadata("ParameterType.kt")
        public void testParameterType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterType.kt");
        }

        @TestMetadata("ParameterTypeConflictingTopLevelClassNotUsed.kt")
        public void testParameterTypeConflictingTopLevelClassNotUsed() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeConflictingTopLevelClassNotUsed.kt");
        }

        @TestMetadata("ParameterTypeConflictingTopLevelClassUsed.kt")
        public void testParameterTypeConflictingTopLevelClassUsed() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeConflictingTopLevelClassUsed.kt");
        }

        @TestMetadata("ParameterTypeFunctionalType.kt")
        public void testParameterTypeFunctionalType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeFunctionalType.kt");
        }

        @TestMetadata("ParameterTypeGenericTypes.kt")
        public void testParameterTypeGenericTypes() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeGenericTypes.kt");
        }

        @TestMetadata("ParameterTypeGenericTypes_missingTypeArgumentError.kt")
        public void testParameterTypeGenericTypes_missingTypeArgumentError() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeGenericTypes_missingTypeArgumentError.kt");
        }

        @TestMetadata("ParameterTypeImplicitImportBeatsStarImport.kt")
        public void testParameterTypeImplicitImportBeatsStarImport() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeImplicitImportBeatsStarImport.kt");
        }

        @TestMetadata("ParameterTypeImportedNestedClass.kt")
        public void testParameterTypeImportedNestedClass() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeImportedNestedClass.kt");
        }

        @TestMetadata("ParameterTypeImportedTypeWins.kt")
        public void testParameterTypeImportedTypeWins() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeImportedTypeWins.kt");
        }

        @TestMetadata("ParameterTypeNestedType.kt")
        public void testParameterTypeNestedType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeNestedType.kt");
        }

        @TestMetadata("ParameterTypeNestedTypeWithoutPackageNotShorten.kt")
        public void testParameterTypeNestedTypeWithoutPackageNotShorten() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeNestedTypeWithoutPackageNotShorten.kt");
        }

        @TestMetadata("ParameterTypeNonImportedClass.kt")
        public void testParameterTypeNonImportedClass() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeNonImportedClass.kt");
        }

        @TestMetadata("ParameterTypeNonImportedClassTwice.kt")
        public void testParameterTypeNonImportedClassTwice() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeNonImportedClassTwice.kt");
        }

        @TestMetadata("ParameterTypeNotImportedNestedClass.kt")
        public void testParameterTypeNotImportedNestedClass() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeNotImportedNestedClass.kt");
        }

        @TestMetadata("ParameterTypeNullableType.kt")
        public void testParameterTypeNullableType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeNullableType.kt");
        }

        @TestMetadata("ParameterTypeStarImportedTypeLoses.kt")
        public void testParameterTypeStarImportedTypeLoses() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeStarImportedTypeLoses.kt");
        }

        @TestMetadata("ParameterTypeTopLevelTypeLoses.kt")
        public void testParameterTypeTopLevelTypeLoses() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeTopLevelTypeLoses.kt");
        }

        @TestMetadata("ParameterTypeTopLevelTypeWins.kt")
        public void testParameterTypeTopLevelTypeWins() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeTopLevelTypeWins.kt");
        }

        @TestMetadata("ParameterTypeTwoNonImportedClassesConflict.kt")
        public void testParameterTypeTwoNonImportedClassesConflict() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/ParameterTypeTwoNonImportedClassesConflict.kt");
        }

        @TestMetadata("VariableType.kt")
        public void testVariableType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/VariableType.kt");
        }

        @TestMetadata("VariableTypeConflictWithLocalType.kt")
        public void testVariableTypeConflictWithLocalType() throws Exception {
            runTest("../idea/tests/testData/shortenRefsFir/types/VariableTypeConflictWithLocalType.kt");
        }
    }
}