コード例 #1
0
 @TestMetadata("DuplicatedImports.kt")
 public void testDuplicatedImports() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/DuplicatedImports.kt");
   doTest(fileName);
 }
コード例 #2
0
 @TestMetadata("mutableMapRemove.kt")
 public void testMutableMapRemove() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "compiler/testData/diagnostics/testsWithJava8/targetedBuiltIns/mutableMapRemove.kt");
   doTest(fileName);
 }
コード例 #3
0
 @TestMetadata("javaUnrepeatable.kt")
 public void testJavaUnrepeatable() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "compiler/testData/diagnostics/testsWithJava8/annotations/javaUnrepeatable.kt");
   doTest(fileName);
 }
コード例 #4
0
 @TestMetadata("CurrentPackage.kt")
 public void testCurrentPackage() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/CurrentPackage.kt");
   doTest(fileName);
 }
コード例 #5
0
 @TestMetadata("inheritanceStaticMethodFromInterface.kt")
 public void testInheritanceStaticMethodFromInterface() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "compiler/testData/diagnostics/testsWithJava8/statics/inheritanceStaticMethodFromInterface.kt");
   doTest(fileName);
 }
コード例 #6
0
 @TestMetadata("CallableReference.kt")
 public void testCallableReference() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/CallableReference.kt");
   doTest(fileName);
 }
コード例 #7
0
 @TestMetadata("ClassMemberImported.kt")
 public void testClassMemberImported() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/ClassMemberImported.kt");
   doTest(fileName);
 }
コード例 #8
0
 @TestMetadata("NestedClassInObject.kt")
 public void testNestedClassInObject() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/NestedClassInObject.kt");
   doTest(fileName);
 }
コード例 #9
0
 @TestMetadata("NestedClassReferenceOutsideClassBody.kt")
 public void testNestedClassReferenceOutsideClassBody() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/NestedClassReferenceOutsideClassBody.kt");
   doTest(fileName);
 }
コード例 #10
0
 @TestMetadata("Kt2488EnumEntry.kt")
 public void testKt2488EnumEntry() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/Kt2488EnumEntry.kt");
   doTest(fileName);
 }
コード例 #11
0
 @TestMetadata("MembersInScope.kt")
 public void testMembersInScope() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/MembersInScope.kt");
   doTest(fileName);
 }
コード例 #12
0
 @TestMetadata("Kt1850InnerClass.kt")
 public void testKt1850InnerClass() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/Kt1850InnerClass.kt");
   doTest(fileName);
 }
コード例 #13
0
 @TestMetadata("JavaStaticField.kt")
 public void testJavaStaticField() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/JavaStaticField.kt");
   doTest(fileName);
 }
コード例 #14
0
 @TestMetadata("FromCompanionObjectGeneric.kt")
 public void testFromCompanionObjectGeneric() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/FromCompanionObjectGeneric.kt");
   doTest(fileName);
 }
コード例 #15
0
 @TestMetadata("AlreadyOptimized.kt")
 public void testAlreadyOptimized() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/AlreadyOptimized.kt");
   doTest(fileName);
 }
コード例 #16
0
 @TestMetadata("RemoveImportsIfGeneralBefore.kt")
 public void testRemoveImportsIfGeneralBefore() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/RemoveImportsIfGeneralBefore.kt");
   doTest(fileName);
 }
コード例 #17
0
 @TestMetadata("ArrayAccessExpression.kt")
 public void testArrayAccessExpression() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/ArrayAccessExpression.kt");
   doTest(fileName);
 }
コード例 #18
0
 @TestMetadata("SamConstructor.kt")
 public void testSamConstructor() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/SamConstructor.kt");
   doTest(fileName);
 }
コード例 #19
0
 @TestMetadata("ClassFromSameFileImportAddedBug.kt")
 public void testClassFromSameFileImportAddedBug() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/ClassFromSameFileImportAddedBug.kt");
   doTest(fileName);
 }
コード例 #20
0
 @TestMetadata("StaticMethodFromSuper.kt")
 public void testStaticMethodFromSuper() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/StaticMethodFromSuper.kt");
   doTest(fileName);
 }
コード例 #21
0
 @TestMetadata("ComponentFunction.kt")
 public void testComponentFunction() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/ComponentFunction.kt");
   doTest(fileName);
 }
コード例 #22
0
 @TestMetadata("ClassNameConflictWithDefault.kt")
 public void testClassNameConflictWithDefault() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/allUnderImports/ClassNameConflictWithDefault.kt");
   doTest(fileName);
 }
コード例 #23
0
 @TestMetadata("jk.kt")
 public void testJk() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "compiler/testData/diagnostics/testsWithJava8/duplicateJvmSignature/statics/jk.kt");
   doTest(fileName);
 }
コード例 #24
0
 @TestMetadata("NameCountSetting.kt")
 public void testNameCountSetting() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/allUnderImports/NameCountSetting.kt");
   doTest(fileName);
 }
コード例 #25
0
 @TestMetadata("forEachRemainingNullability.kt")
 public void testForEachRemainingNullability() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "compiler/testData/diagnostics/testsWithJava8/targetedBuiltIns/forEachRemainingNullability.kt");
   doTest(fileName);
 }
コード例 #26
0
 @TestMetadata("PackagesToUseStarImport.kt")
 public void testPackagesToUseStarImport() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/allUnderImports/PackagesToUseStarImport.kt");
   doTest(fileName);
 }
コード例 #27
0
 @TestMetadata("stream.kt")
 public void testStream() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "compiler/testData/diagnostics/testsWithJava8/targetedBuiltIns/stream.kt");
   doTest(fileName);
 }
コード例 #28
0
 @TestMetadata("Simple.kt")
 public void testSimple() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/allUnderImports/Simple.kt");
   doTest(fileName);
 }
コード例 #29
0
 @TestMetadata("labelledStatement.kt")
 public void testLabelledStatement() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/expressionSelection/labelledStatement.kt");
   doTestExpressionSelection(fileName);
 }
コード例 #30
0
 @TestMetadata("DoNotTouchIfNoChanges.kt")
 public void testDoNotTouchIfNoChanges() throws Exception {
   String fileName =
       KotlinTestUtils.navigationMetadata(
           "idea/testData/editor/optimizeImports/DoNotTouchIfNoChanges.kt");
   doTest(fileName);
 }