Refactoring: fix weak warning about unnecessary escaped dot

This commit is contained in:
Nikolay Krasko
2016-07-27 15:19:00 +03:00
parent e7ee0d1c5e
commit 097288d15f
12 changed files with 35 additions and 35 deletions
@@ -146,7 +146,7 @@ import java.util.*
import java.util.regex.Pattern import java.util.regex.Pattern
@Language("RegExp") private val KT_OR_KTS = """^(.+)\.(kt|kts)$""" @Language("RegExp") private val KT_OR_KTS = """^(.+)\.(kt|kts)$"""
@Language("RegExp") private val KT_WITHOUT_DOTS_IN_NAME = """^([^\.]+)\.kt$""" @Language("RegExp") private val KT_WITHOUT_DOTS_IN_NAME = """^([^.]+)\.kt$"""
fun main(args: Array<String>) { fun main(args: Array<String>) {
System.setProperty("java.awt.headless", "true") System.setProperty("java.awt.headless", "true")
@@ -38,7 +38,7 @@ public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletion
} }
public void testAllFilesPresentInBasic() throws Exception { public void testAllFilesPresentInBasic() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/basic"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/basic"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("CallableReference_NothingLast.kt") @TestMetadata("CallableReference_NothingLast.kt")
@@ -196,7 +196,7 @@ public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletion
} }
public void testAllFilesPresentInExpectedInfo() throws Exception { public void testAllFilesPresentInExpectedInfo() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/basic/expectedInfo"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/basic/expectedInfo"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("CompanionObjectMethod.kt") @TestMetadata("CompanionObjectMethod.kt")
@@ -289,7 +289,7 @@ public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletion
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class ParameterNameAndType extends AbstractBasicCompletionWeigherTest { public static class ParameterNameAndType extends AbstractBasicCompletionWeigherTest {
public void testAllFilesPresentInParameterNameAndType() throws Exception { public void testAllFilesPresentInParameterNameAndType() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/basic/parameterNameAndType"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/basic/parameterNameAndType"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("Deprecated.kt") @TestMetadata("Deprecated.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class SmartCompletionWeigherTestGenerated extends AbstractSmartCompletionWeigherTest { public class SmartCompletionWeigherTestGenerated extends AbstractSmartCompletionWeigherTest {
public void testAllFilesPresentInSmart() throws Exception { public void testAllFilesPresentInSmart() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/smart"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/smart"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("BooleanExpected.kt") @TestMetadata("BooleanExpected.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class AddImportTestGenerated extends AbstractAddImportTest { public class AddImportTestGenerated extends AbstractAddImportTest {
public void testAllFilesPresentInAddImport() throws Exception { public void testAllFilesPresentInAddImport() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/addImport"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/addImport"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("CannotImportClass1.kt") @TestMetadata("CannotImportClass1.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class ExpressionSelectionTestGenerated extends AbstractExpressionSelectionTest { public class ExpressionSelectionTestGenerated extends AbstractExpressionSelectionTest {
public void testAllFilesPresentInExpressionSelection() throws Exception { public void testAllFilesPresentInExpressionSelection() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/expressionSelection"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/expressionSelection"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("binaryExpr.kt") @TestMetadata("binaryExpr.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class SmartSelectionTestGenerated extends AbstractSmartSelectionTest { public class SmartSelectionTestGenerated extends AbstractSmartSelectionTest {
public void testAllFilesPresentInSmartSelection() throws Exception { public void testAllFilesPresentInSmartSelection() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/smartSelection"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/smartSelection"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("commentsAndExtraSpaces.kt") @TestMetadata("commentsAndExtraSpaces.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLightClassTest { public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLightClassTest {
public void testAllFilesPresentInLightClasses() throws Exception { public void testAllFilesPresentInLightClasses() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("AnnotationClass.kt") @TestMetadata("AnnotationClass.kt")
@@ -52,7 +52,7 @@ public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLight
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Delegation extends AbstractIdeCompiledLightClassTest { public static class Delegation extends AbstractIdeCompiledLightClassTest {
public void testAllFilesPresentInDelegation() throws Exception { public void testAllFilesPresentInDelegation() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/delegation"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/delegation"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("Function.kt") @TestMetadata("Function.kt")
@@ -73,7 +73,7 @@ public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLight
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Facades extends AbstractIdeCompiledLightClassTest { public static class Facades extends AbstractIdeCompiledLightClassTest {
public void testAllFilesPresentInFacades() throws Exception { public void testAllFilesPresentInFacades() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/facades"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/facades"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("MultiFile.kt") @TestMetadata("MultiFile.kt")
@@ -100,7 +100,7 @@ public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLight
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class NullabilityAnnotations extends AbstractIdeCompiledLightClassTest { public static class NullabilityAnnotations extends AbstractIdeCompiledLightClassTest {
public void testAllFilesPresentInNullabilityAnnotations() throws Exception { public void testAllFilesPresentInNullabilityAnnotations() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/nullabilityAnnotations"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/nullabilityAnnotations"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("Class.kt") @TestMetadata("Class.kt")
@@ -217,7 +217,7 @@ public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLight
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Object extends AbstractIdeCompiledLightClassTest { public static class Object extends AbstractIdeCompiledLightClassTest {
public void testAllFilesPresentInObject() throws Exception { public void testAllFilesPresentInObject() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/object"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/object"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("SimpleObject.kt") @TestMetadata("SimpleObject.kt")
@@ -232,7 +232,7 @@ public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLight
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class PublicField extends AbstractIdeCompiledLightClassTest { public static class PublicField extends AbstractIdeCompiledLightClassTest {
public void testAllFilesPresentInPublicField() throws Exception { public void testAllFilesPresentInPublicField() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/publicField"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/publicField"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("CompanionObject.kt") @TestMetadata("CompanionObject.kt")
@@ -34,7 +34,7 @@ public class InsertImportOnPasteTestGenerated extends AbstractInsertImportOnPast
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Copy extends AbstractInsertImportOnPasteTest { public static class Copy extends AbstractInsertImportOnPasteTest {
public void testAllFilesPresentInCopy() throws Exception { public void testAllFilesPresentInCopy() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/copyPaste/imports"), Pattern.compile("^([^\\.]+)\\.kt$"), false); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/copyPaste/imports"), Pattern.compile("^([^.]+)\\.kt$"), false);
} }
@TestMetadata("AlreadyImportedExtensions.kt") @TestMetadata("AlreadyImportedExtensions.kt")
@@ -397,7 +397,7 @@ public class InsertImportOnPasteTestGenerated extends AbstractInsertImportOnPast
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Cut extends AbstractInsertImportOnPasteTest { public static class Cut extends AbstractInsertImportOnPasteTest {
public void testAllFilesPresentInCut() throws Exception { public void testAllFilesPresentInCut() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/copyPaste/imports"), Pattern.compile("^([^\\.]+)\\.kt$"), false); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/copyPaste/imports"), Pattern.compile("^([^.]+)\\.kt$"), false);
} }
@TestMetadata("AlreadyImportedExtensions.kt") @TestMetadata("AlreadyImportedExtensions.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class OptimizeImportsTestGenerated extends AbstractOptimizeImportsTest { public class OptimizeImportsTestGenerated extends AbstractOptimizeImportsTest {
public void testAllFilesPresentInOptimizeImports() throws Exception { public void testAllFilesPresentInOptimizeImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/editor/optimizeImports"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/editor/optimizeImports"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("AlreadyOptimized.kt") @TestMetadata("AlreadyOptimized.kt")
@@ -262,7 +262,7 @@ public class OptimizeImportsTestGenerated extends AbstractOptimizeImportsTest {
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class AllUnderImports extends AbstractOptimizeImportsTest { public static class AllUnderImports extends AbstractOptimizeImportsTest {
public void testAllFilesPresentInAllUnderImports() throws Exception { public void testAllFilesPresentInAllUnderImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/editor/optimizeImports/allUnderImports"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/editor/optimizeImports/allUnderImports"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("ClassNameConflict.kt") @TestMetadata("ClassNameConflict.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest { public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest {
public void testAllFilesPresentInReferences() throws Exception { public void testAllFilesPresentInReferences() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("AnnotationForClass.kt") @TestMetadata("AnnotationForClass.kt")
@@ -472,7 +472,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class DelegatedPropertyAccessors extends AbstractReferenceResolveTest { public static class DelegatedPropertyAccessors extends AbstractReferenceResolveTest {
public void testAllFilesPresentInDelegatedPropertyAccessors() throws Exception { public void testAllFilesPresentInDelegatedPropertyAccessors() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/delegatedPropertyAccessors"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/delegatedPropertyAccessors"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("unresolved.kt") @TestMetadata("unresolved.kt")
@@ -486,7 +486,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class InSource extends AbstractReferenceResolveTest { public static class InSource extends AbstractReferenceResolveTest {
public void testAllFilesPresentInInSource() throws Exception { public void testAllFilesPresentInInSource() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/delegatedPropertyAccessors/inSource"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/delegatedPropertyAccessors/inSource"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("getExtension.kt") @TestMetadata("getExtension.kt")
@@ -531,7 +531,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class InStandardLibrary extends AbstractReferenceResolveTest { public static class InStandardLibrary extends AbstractReferenceResolveTest {
public void testAllFilesPresentInInStandardLibrary() throws Exception { public void testAllFilesPresentInInStandardLibrary() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/delegatedPropertyAccessors/inStandardLibrary"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/delegatedPropertyAccessors/inStandardLibrary"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("lazy.kt") @TestMetadata("lazy.kt")
@@ -553,7 +553,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class ForLoopIn extends AbstractReferenceResolveTest { public static class ForLoopIn extends AbstractReferenceResolveTest {
public void testAllFilesPresentInForLoopIn() throws Exception { public void testAllFilesPresentInForLoopIn() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("unresolvedIterator.kt") @TestMetadata("unresolvedIterator.kt")
@@ -567,7 +567,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class InBuiltIns extends AbstractReferenceResolveTest { public static class InBuiltIns extends AbstractReferenceResolveTest {
public void testAllFilesPresentInInBuiltIns() throws Exception { public void testAllFilesPresentInInBuiltIns() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn/inBuiltIns"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn/inBuiltIns"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("extension.kt") @TestMetadata("extension.kt")
@@ -588,7 +588,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class InLibrary extends AbstractReferenceResolveTest { public static class InLibrary extends AbstractReferenceResolveTest {
public void testAllFilesPresentInInLibrary() throws Exception { public void testAllFilesPresentInInLibrary() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn/inLibrary"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn/inLibrary"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("extension.kt") @TestMetadata("extension.kt")
@@ -609,7 +609,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
} }
public void testAllFilesPresentInInSource() throws Exception { public void testAllFilesPresentInInSource() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn/inSource"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/forLoopIn/inSource"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("allMembers.kt") @TestMetadata("allMembers.kt")
@@ -631,7 +631,7 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Invoke extends AbstractReferenceResolveTest { public static class Invoke extends AbstractReferenceResolveTest {
public void testAllFilesPresentInInvoke() throws Exception { public void testAllFilesPresentInInvoke() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/invoke"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/resolve/references/invoke"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("lambdaAndParens.kt") @TestMetadata("lambdaAndParens.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class KotlinFileStructureTestGenerated extends AbstractKotlinFileStructureTest { public class KotlinFileStructureTestGenerated extends AbstractKotlinFileStructureTest {
public void testAllFilesPresentInFileStructure() throws Exception { public void testAllFilesPresentInFileStructure() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/structureView/fileStructure"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/structureView/fileStructure"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("CheckLocationForKotlin.kt") @TestMetadata("CheckLocationForKotlin.kt")
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class ShortenRefsTestGenerated extends AbstractShortenRefsTest { public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
public void testAllFilesPresentInShortenRefs() throws Exception { public void testAllFilesPresentInShortenRefs() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("ClassNameConflict.kt") @TestMetadata("ClassNameConflict.kt")
@@ -112,7 +112,7 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Constructor extends AbstractShortenRefsTest { public static class Constructor extends AbstractShortenRefsTest {
public void testAllFilesPresentInConstructor() throws Exception { public void testAllFilesPresentInConstructor() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/constructor"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/constructor"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("Ambiguous.kt") @TestMetadata("Ambiguous.kt")
@@ -211,7 +211,7 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Imports extends AbstractShortenRefsTest { public static class Imports extends AbstractShortenRefsTest {
public void testAllFilesPresentInImports() throws Exception { public void testAllFilesPresentInImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/imports"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/imports"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("importGlobalCallables.kt") @TestMetadata("importGlobalCallables.kt")
@@ -238,7 +238,7 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Java extends AbstractShortenRefsTest { public static class Java extends AbstractShortenRefsTest {
public void testAllFilesPresentInJava() throws Exception { public void testAllFilesPresentInJava() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/java"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/java"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("innerClassImport.kt") @TestMetadata("innerClassImport.kt")
@@ -301,7 +301,7 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class This extends AbstractShortenRefsTest { public static class This extends AbstractShortenRefsTest {
public void testAllFilesPresentInThis() throws Exception { public void testAllFilesPresentInThis() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/this"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/this"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("cantShortenThis.kt") @TestMetadata("cantShortenThis.kt")
@@ -358,7 +358,7 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Type extends AbstractShortenRefsTest { public static class Type extends AbstractShortenRefsTest {
public void testAllFilesPresentInType() throws Exception { public void testAllFilesPresentInType() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/type"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/type"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("ClassNameInsideArguments.kt") @TestMetadata("ClassNameInsideArguments.kt")
@@ -475,7 +475,7 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Typealias extends AbstractShortenRefsTest { public static class Typealias extends AbstractShortenRefsTest {
public void testAllFilesPresentInTypealias() throws Exception { public void testAllFilesPresentInTypealias() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/typealias"), Pattern.compile("^([^\\.]+)\\.kt$"), true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/typealias"), Pattern.compile("^([^.]+)\\.kt$"), true);
} }
@TestMetadata("TypeAliasAsCtor.kt") @TestMetadata("TypeAliasAsCtor.kt")