Optimize Imports tests: add test for qualified expression with nested enum
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
package foo
|
||||||
|
|
||||||
|
import dependency.D
|
||||||
|
import dependency.D.E1.E11
|
||||||
|
import dependency.D.E3
|
||||||
|
|
||||||
|
fun foo {
|
||||||
|
E11
|
||||||
|
D.E2.E22
|
||||||
|
E3.E31
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package dependency
|
||||||
|
|
||||||
|
class D {
|
||||||
|
enum class E1 {
|
||||||
|
E11
|
||||||
|
E12
|
||||||
|
}
|
||||||
|
enum class E2 {
|
||||||
|
E21
|
||||||
|
E22
|
||||||
|
}
|
||||||
|
enum class E3 {
|
||||||
|
E31
|
||||||
|
E32
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package foo
|
||||||
|
|
||||||
|
import dependency.D
|
||||||
|
import dependency.D.E1
|
||||||
|
import dependency.D.E1.E11
|
||||||
|
import dependency.D.E1.E12
|
||||||
|
import dependency.D.E2
|
||||||
|
import dependency.D.E2.E21
|
||||||
|
import dependency.D.E2.E22
|
||||||
|
import dependency.D.E3
|
||||||
|
import dependency.D.E3.E31
|
||||||
|
import dependency.D.E3.E32
|
||||||
|
|
||||||
|
fun foo {
|
||||||
|
E11
|
||||||
|
D.E2.E22
|
||||||
|
E3.E31
|
||||||
|
}
|
||||||
@@ -66,6 +66,11 @@ public class OptimizeImportsTestGenerated extends AbstractOptimizeImportsTest {
|
|||||||
doTest("idea/testData/editor/optimizeImports/DuplicatedImports");
|
doTest("idea/testData/editor/optimizeImports/DuplicatedImports");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("Enums")
|
||||||
|
public void testEnums() throws Exception {
|
||||||
|
doTest("idea/testData/editor/optimizeImports/Enums");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("InvokeFunction")
|
@TestMetadata("InvokeFunction")
|
||||||
public void testInvokeFunction() throws Exception {
|
public void testInvokeFunction() throws Exception {
|
||||||
doTest("idea/testData/editor/optimizeImports/InvokeFunction");
|
doTest("idea/testData/editor/optimizeImports/InvokeFunction");
|
||||||
|
|||||||
Reference in New Issue
Block a user