/* * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.checkers; import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.TestMetadata; import org.junit.runner.RunWith; import java.io.File; import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInTestsWithJsStdLib() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("funConstructorCallJS.kt") public void testFunConstructorCallJS() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/funConstructorCallJS.kt"); } @TestMetadata("implementingFunction.kt") public void testImplementingFunction() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/implementingFunction.kt"); } @TestMetadata("localClassMetadata.kt") public void testLocalClassMetadata() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/localClassMetadata.kt"); } @TestMetadata("noImpl.kt") public void testNoImpl() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/noImpl.kt"); } @TestMetadata("platformDependent.kt") public void testPlatformDependent() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/platformDependent.kt"); } @TestMetadata("runtimeAnnotations.kt") public void testRuntimeAnnotations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/runtimeAnnotations.kt"); } @TestMetadata("unsafeCastFunctionOnDynamicType.kt") public void testUnsafeCastFunctionOnDynamicType() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/unsafeCastFunctionOnDynamicType.kt"); } @TestMetadata("wrongMultipleInheritance.kt") public void testWrongMultipleInheritance() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/wrongMultipleInheritance.kt"); } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/classLiteral") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class ClassLiteral extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInClassLiteral() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/classLiteral"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("arrays_after.kt") public void testArrays_after() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/classLiteral/arrays_after.kt"); } @TestMetadata("arrays_before.kt") public void testArrays_before() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/classLiteral/arrays_before.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class DynamicTypes extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInDynamicTypes() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("allowedDynamicFunctionType.kt") public void testAllowedDynamicFunctionType() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/allowedDynamicFunctionType.kt"); } @TestMetadata("assignment.kt") public void testAssignment() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/assignment.kt"); } @TestMetadata("block.kt") public void testBlock() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/block.kt"); } @TestMetadata("callableReferences.kt") public void testCallableReferences() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/callableReferences.kt"); } @TestMetadata("capturedDynamic.kt") public void testCapturedDynamic() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/capturedDynamic.kt"); } @TestMetadata("capturedDynamicNI.kt") public void testCapturedDynamicNI() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/capturedDynamicNI.kt"); } @TestMetadata("classDelegateBy.kt") public void testClassDelegateBy() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/classDelegateBy.kt"); } @TestMetadata("comparisonToNull.kt") public void testComparisonToNull() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/comparisonToNull.kt"); } @TestMetadata("conditions.kt") public void testConditions() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/conditions.kt"); } @TestMetadata("conventions.kt") public void testConventions() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/conventions.kt"); } @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/destructuring.kt"); } @TestMetadata("dynamicCalls.kt") public void testDynamicCalls() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/dynamicCalls.kt"); } @TestMetadata("dynamicCallsWithLambdas.kt") public void testDynamicCallsWithLambdas() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/dynamicCallsWithLambdas.kt"); } @TestMetadata("dynamicCastTarget.kt") public void testDynamicCastTarget() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/dynamicCastTarget.kt"); } @TestMetadata("dynamicExtension.kt") public void testDynamicExtension() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/dynamicExtension.kt"); } @TestMetadata("dynamicSafeCalls.kt") public void testDynamicSafeCalls() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/dynamicSafeCalls.kt"); } @TestMetadata("dynamicVsGeneric.kt") public void testDynamicVsGeneric() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/dynamicVsGeneric.kt"); } @TestMetadata("extensionVals.kt") public void testExtensionVals() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/extensionVals.kt"); } @TestMetadata("extensionVars.kt") public void testExtensionVars() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/extensionVars.kt"); } @TestMetadata("extensions.kt") public void testExtensions() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/extensions.kt"); } @TestMetadata("extensionsToDynamic.kt") public void testExtensionsToDynamic() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/extensionsToDynamic.kt"); } @TestMetadata("implicitDynamicReceiver.kt") public void testImplicitDynamicReceiver() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/implicitDynamicReceiver.kt"); } @TestMetadata("inExpression.kt") public void testInExpression() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/inExpression.kt"); } @TestMetadata("indexedAccess.kt") public void testIndexedAccess() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/indexedAccess.kt"); } @TestMetadata("inference.kt") public void testInference() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/inference.kt"); } @TestMetadata("membersOfAny.kt") public void testMembersOfAny() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/membersOfAny.kt"); } @TestMetadata("namedArguments.kt") public void testNamedArguments() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/namedArguments.kt"); } @TestMetadata("noUnsupportedInLocals.kt") public void testNoUnsupportedInLocals() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/noUnsupportedInLocals.kt"); } @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/nullable.kt"); } @TestMetadata("overloading.kt") public void testOverloading() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/overloading.kt"); } @TestMetadata("overloadingAmbiguity.kt") public void testOverloadingAmbiguity() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/overloadingAmbiguity.kt"); } @TestMetadata("overrides.kt") public void testOverrides() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/overrides.kt"); } @TestMetadata("propertyDelegateBy.kt") public void testPropertyDelegateBy() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/propertyDelegateBy.kt"); } @TestMetadata("protected.kt") public void testProtected() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/protected.kt"); } @TestMetadata("rangeExpression.kt") public void testRangeExpression() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/rangeExpression.kt"); } @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/reified.kt"); } @TestMetadata("smartCast.kt") public void testSmartCast() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/smartCast.kt"); } @TestMetadata("spreadOperator.kt") public void testSpreadOperator() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/spreadOperator.kt"); } @TestMetadata("staticCallsInDynamicContext.kt") public void testStaticCallsInDynamicContext() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/staticCallsInDynamicContext.kt"); } @TestMetadata("staticExtensions.kt") public void testStaticExtensions() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/staticExtensions.kt"); } @TestMetadata("substitution.kt") public void testSubstitution() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/substitution.kt"); } @TestMetadata("supertypesAndBounds.kt") public void testSupertypesAndBounds() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/supertypesAndBounds.kt"); } @TestMetadata("typealiasExpandingToDynamic.kt") public void testTypealiasExpandingToDynamic() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/typealiasExpandingToDynamic.kt"); } @TestMetadata("typealiasWithAnnotatedDynamic.kt") public void testTypealiasWithAnnotatedDynamic() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/typealiasWithAnnotatedDynamic.kt"); } @TestMetadata("typealiasWithDynamic.kt") public void testTypealiasWithDynamic() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/typealiasWithDynamic.kt"); } @TestMetadata("varargs.kt") public void testVarargs() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/varargs.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/export") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Export extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInExport() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/export"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("extendingNonExportedType.kt") public void testExtendingNonExportedType() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.kt"); } @TestMetadata("jsExportOnNestedDeclarations.kt") public void testJsExportOnNestedDeclarations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/jsExportOnNestedDeclarations.kt"); } @TestMetadata("secondaryConstructorWithoutJsName.kt") public void testSecondaryConstructorWithoutJsName() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/secondaryConstructorWithoutJsName.kt"); } @TestMetadata("unexportableTypesInSignature.kt") public void testUnexportableTypesInSignature() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/unexportableTypesInSignature.kt"); } @TestMetadata("unexportableTypesInTypeParameters.kt") public void testUnexportableTypesInTypeParameters() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/unexportableTypesInTypeParameters.kt"); } @TestMetadata("wrongExportedDeclaration.kt") public void testWrongExportedDeclaration() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/wrongExportedDeclaration.kt"); } @TestMetadata("wrongExportedDeclarationInExportedFile.kt") public void testWrongExportedDeclarationInExportedFile() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/wrongExportedDeclarationInExportedFile.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/inline") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Inline extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInInline() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/inline"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("Reified.kt") public void testReified() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/inline/Reified.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jsCode") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class JsCode extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInJsCode() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/jsCode"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("argumentIsLiteral.kt") public void testArgumentIsLiteral() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/argumentIsLiteral.kt"); } @TestMetadata("badAssignment.kt") public void testBadAssignment() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/badAssignment.kt"); } @TestMetadata("deleteOperation.kt") public void testDeleteOperation() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/deleteOperation.kt"); } @TestMetadata("error.kt") public void testError() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/error.kt"); } @TestMetadata("noJavaScriptProduced.kt") public void testNoJavaScriptProduced() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/noJavaScriptProduced.kt"); } @TestMetadata("warning.kt") public void testWarning() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/warning.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jvmDeclarations") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class JvmDeclarations extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInJvmDeclarations() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/jvmDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("cloneable.kt") public void testCloneable() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/jvmDeclarations/cloneable.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/module") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Module extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInModule() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/module"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("dualModuleFromUmd.kt") public void testDualModuleFromUmd() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/dualModuleFromUmd.kt"); } @TestMetadata("incompleteReifiedArg.kt") public void testIncompleteReifiedArg() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/incompleteReifiedArg.kt"); } @TestMetadata("jsModuleNonExternal.kt") public void testJsModuleNonExternal() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/jsModuleNonExternal.kt"); } @TestMetadata("jsModuleWithoutParameters.kt") public void testJsModuleWithoutParameters() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/jsModuleWithoutParameters.kt"); } @TestMetadata("jsVarProhibited.kt") public void testJsVarProhibited() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/jsVarProhibited.kt"); } @TestMetadata("nestedProhibited.kt") public void testNestedProhibited() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/nestedProhibited.kt"); } @TestMetadata("prohibitedOnNonNative.kt") public void testProhibitedOnNonNative() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/prohibitedOnNonNative.kt"); } @TestMetadata("wrongCallToModule.kt") public void testWrongCallToModule() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/wrongCallToModule.kt"); } @TestMetadata("wrongCallToNonModule.kt") public void testWrongCallToNonModule() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/module/wrongCallToNonModule.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/name") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Name extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInName() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/name"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("bridgeClash.kt") public void testBridgeClash() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/bridgeClash.kt"); } @TestMetadata("builtinClash.kt") public void testBuiltinClash() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/builtinClash.kt"); } @TestMetadata("classAndFunction.kt") public void testClassAndFunction() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classAndFunction.kt"); } @TestMetadata("classAndTypealias.kt") public void testClassAndTypealias() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classAndTypealias.kt"); } @TestMetadata("classLevelMethodAndProperty.kt") public void testClassLevelMethodAndProperty() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classLevelMethodAndProperty.kt"); } @TestMetadata("conflictingNamesFromSuperclass.kt") public void testConflictingNamesFromSuperclass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/conflictingNamesFromSuperclass.kt"); } @TestMetadata("declarationClash.kt") public void testDeclarationClash() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/declarationClash.kt"); } @TestMetadata("extensionPropertyAndMethod.kt") public void testExtensionPropertyAndMethod() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/extensionPropertyAndMethod.kt"); } @TestMetadata("illegalName.kt") public void testIllegalName() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/illegalName.kt"); } @TestMetadata("illegalPackageName.kt") public void testIllegalPackageName() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/illegalPackageName.kt"); } @TestMetadata("jsNameAndOverridden.kt") public void testJsNameAndOverridden() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameAndOverridden.kt"); } @TestMetadata("jsNameClash.kt") public void testJsNameClash() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameClash.kt"); } @TestMetadata("jsNameClashWithDefault.kt") public void testJsNameClashWithDefault() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameClashWithDefault.kt"); } @TestMetadata("jsNameMissingOnAccessors.kt") public void testJsNameMissingOnAccessors() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameMissingOnAccessors.kt"); } @TestMetadata("jsNameOnAccessors.kt") public void testJsNameOnAccessors() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameOnAccessors.kt"); } @TestMetadata("jsNameOnOverride.kt") public void testJsNameOnOverride() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameOnOverride.kt"); } @TestMetadata("jsNameOnPropertyAndAccessor.kt") public void testJsNameOnPropertyAndAccessor() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameOnPropertyAndAccessor.kt"); } @TestMetadata("jsNamePrihibitedOnPrimaryConstructor.kt") public void testJsNamePrihibitedOnPrimaryConstructor() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNamePrihibitedOnPrimaryConstructor.kt"); } @TestMetadata("jsNameProhibitedOnExtensionProperty.kt") public void testJsNameProhibitedOnExtensionProperty() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameProhibitedOnExtensionProperty.kt"); } @TestMetadata("jsNameUseTargetOnProperty.kt") public void testJsNameUseTargetOnProperty() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameUseTargetOnProperty.kt"); } @TestMetadata("jsNameWithoutParameter.kt") public void testJsNameWithoutParameter() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameWithoutParameter.kt"); } @TestMetadata("methodAndMethod.kt") public void testMethodAndMethod() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/methodAndMethod.kt"); } @TestMetadata("nameSwapInOverride.kt") public void testNameSwapInOverride() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/nameSwapInOverride.kt"); } @TestMetadata("overrideOverloadedNativeFunction.kt") public void testOverrideOverloadedNativeFunction() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/overrideOverloadedNativeFunction.kt"); } @TestMetadata("packageAndMethod.kt") public void testPackageAndMethod() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/packageAndMethod.kt"); } @TestMetadata("packageAndProperty.kt") public void testPackageAndProperty() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/packageAndProperty.kt"); } @TestMetadata("privateJsNameClash.kt") public void testPrivateJsNameClash() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/privateJsNameClash.kt"); } @TestMetadata("propertyAndMethodInImplementor.kt") public void testPropertyAndMethodInImplementor() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/propertyAndMethodInImplementor.kt"); } @TestMetadata("propertyAndMethodInSubclass.kt") public void testPropertyAndMethodInSubclass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/propertyAndMethodInSubclass.kt"); } @TestMetadata("topLevelMethodAndJsNameConstructor.kt") public void testTopLevelMethodAndJsNameConstructor() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/topLevelMethodAndJsNameConstructor.kt"); } @TestMetadata("topLevelMethodAndProperty.kt") public void testTopLevelMethodAndProperty() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/topLevelMethodAndProperty.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Native extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInNative() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/native"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("anonymousInitializer.kt") public void testAnonymousInitializer() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/anonymousInitializer.kt"); } @TestMetadata("body.kt") public void testBody() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/body.kt"); } @TestMetadata("delegatedConstructorCall.kt") public void testDelegatedConstructorCall() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/delegatedConstructorCall.kt"); } @TestMetadata("delegation.kt") public void testDelegation() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/delegation.kt"); } @TestMetadata("enumEntry.kt") public void testEnumEntry() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/enumEntry.kt"); } @TestMetadata("extensionFunctionAndProperty.kt") public void testExtensionFunctionAndProperty() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/extensionFunctionAndProperty.kt"); } @TestMetadata("extensionFunctionArgumentOrReturnType.kt") public void testExtensionFunctionArgumentOrReturnType() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/extensionFunctionArgumentOrReturnType.kt"); } @TestMetadata("externalFunInterface.kt") public void testExternalFunInterface() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/externalFunInterface.kt"); } @TestMetadata("externalInterfaceNested.kt") public void testExternalInterfaceNested() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/externalInterfaceNested.kt"); } @TestMetadata("inheritance.kt") public void testInheritance() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/inheritance.kt"); } @TestMetadata("inline.kt") public void testInline() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/inline.kt"); } @TestMetadata("inlineClass.kt") public void testInlineClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/inlineClass.kt"); } @TestMetadata("inlineClassAsParameterOrReturnType.kt.kt") public void testInlineClassAsParameterOrReturnType_kt() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/inlineClassAsParameterOrReturnType.kt.kt"); } @TestMetadata("inlineExtensionToNative.kt") public void testInlineExtensionToNative() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/inlineExtensionToNative.kt"); } @TestMetadata("innerClass.kt") public void testInnerClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/innerClass.kt"); } @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nested.kt"); } @TestMetadata("nonAbstractMembersOfInterface.kt") public void testNonAbstractMembersOfInterface() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nonAbstractMembersOfInterface.kt"); } @TestMetadata("overrideOptionalParam.kt") public void testOverrideOptionalParam() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/overrideOptionalParam.kt"); } @TestMetadata("privateMembers.kt") public void testPrivateMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/privateMembers.kt"); } @TestMetadata("propertyParameter.kt") public void testPropertyParameter() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/propertyParameter.kt"); } @TestMetadata("wrongTarget.kt") public void testWrongTarget() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/wrongTarget.kt"); } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class NativeGetter extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInNativeGetter() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("onLocalExtensionFun.kt") public void testOnLocalExtensionFun() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onLocalExtensionFun.kt"); } @TestMetadata("onLocalNonNativeClassMembers.kt") public void testOnLocalNonNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onLocalNonNativeClassMembers.kt"); } @TestMetadata("onLocalOtherDeclarations.kt") public void testOnLocalOtherDeclarations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onLocalOtherDeclarations.kt"); } @TestMetadata("onNativeClassMembers.kt") public void testOnNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onNativeClassMembers.kt"); } @TestMetadata("onNestedDeclarationsInsideNativeClass.kt") public void testOnNestedDeclarationsInsideNativeClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onNestedDeclarationsInsideNativeClass.kt"); } @TestMetadata("onNestedDeclarationsInsideNonNativeClass.kt") public void testOnNestedDeclarationsInsideNonNativeClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onNestedDeclarationsInsideNonNativeClass.kt"); } @TestMetadata("onNonNativeClassMembers.kt") public void testOnNonNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onNonNativeClassMembers.kt"); } @TestMetadata("onToplevelExtensionFun.kt") public void testOnToplevelExtensionFun() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onToplevelExtensionFun.kt"); } @TestMetadata("onToplevelOtherDeclarations.kt") public void testOnToplevelOtherDeclarations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeGetter/onToplevelOtherDeclarations.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class NativeInvoke extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInNativeInvoke() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("onLocalExtensionFun.kt") public void testOnLocalExtensionFun() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onLocalExtensionFun.kt"); } @TestMetadata("onLocalNonNativeClassMembers.kt") public void testOnLocalNonNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onLocalNonNativeClassMembers.kt"); } @TestMetadata("onLocalOtherDeclarations.kt") public void testOnLocalOtherDeclarations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onLocalOtherDeclarations.kt"); } @TestMetadata("onNativeClassMembers.kt") public void testOnNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onNativeClassMembers.kt"); } @TestMetadata("onNestedDeclarationsInsideNativeClass.kt") public void testOnNestedDeclarationsInsideNativeClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onNestedDeclarationsInsideNativeClass.kt"); } @TestMetadata("onNestedDeclarationsInsideNonNativeClass.kt") public void testOnNestedDeclarationsInsideNonNativeClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onNestedDeclarationsInsideNonNativeClass.kt"); } @TestMetadata("onNonNativeClassMembers.kt") public void testOnNonNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onNonNativeClassMembers.kt"); } @TestMetadata("onToplevelExtensionFun.kt") public void testOnToplevelExtensionFun() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onToplevelExtensionFun.kt"); } @TestMetadata("onToplevelOtherDeclarations.kt") public void testOnToplevelOtherDeclarations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onToplevelOtherDeclarations.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class NativeSetter extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInNativeSetter() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("onLocalExtensionFun.kt") public void testOnLocalExtensionFun() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onLocalExtensionFun.kt"); } @TestMetadata("onLocalNonNativeClassMembers.kt") public void testOnLocalNonNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onLocalNonNativeClassMembers.kt"); } @TestMetadata("onLocalOtherDeclarations.kt") public void testOnLocalOtherDeclarations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onLocalOtherDeclarations.kt"); } @TestMetadata("onNativeClassMembers.kt") public void testOnNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onNativeClassMembers.kt"); } @TestMetadata("onNestedDeclarationsInsideNativeClass.kt") public void testOnNestedDeclarationsInsideNativeClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onNestedDeclarationsInsideNativeClass.kt"); } @TestMetadata("onNestedDeclarationsInsideNonNativeClass.kt") public void testOnNestedDeclarationsInsideNonNativeClass() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onNestedDeclarationsInsideNonNativeClass.kt"); } @TestMetadata("onNonNativeClassMembers.kt") public void testOnNonNativeClassMembers() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onNonNativeClassMembers.kt"); } @TestMetadata("onToplevelExtensionFun.kt") public void testOnToplevelExtensionFun() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onToplevelExtensionFun.kt"); } @TestMetadata("onToplevelOtherDeclarations.kt") public void testOnToplevelOtherDeclarations() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/nativeSetter/onToplevelOtherDeclarations.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/optionlBody") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class OptionlBody extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInOptionlBody() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/native/optionlBody"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("native.kt") public void testNative() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/optionlBody/native.kt"); } @TestMetadata("nativeGetter.kt") public void testNativeGetter() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/optionlBody/nativeGetter.kt"); } @TestMetadata("nativeInvoke.kt") public void testNativeInvoke() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/optionlBody/nativeInvoke.kt"); } @TestMetadata("nativeSetter.kt") public void testNativeSetter() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/optionlBody/nativeSetter.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Rtti extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInRtti() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("castToNativeInterface.kt") public void testCastToNativeInterface() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti/castToNativeInterface.kt"); } @TestMetadata("checkForNativeInterface.kt") public void testCheckForNativeInterface() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti/checkForNativeInterface.kt"); } @TestMetadata("nativeInterfaceAsReifiedTypeArgument.kt") public void testNativeInterfaceAsReifiedTypeArgument() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti/nativeInterfaceAsReifiedTypeArgument.kt"); } @TestMetadata("nativeInterfaceClassLiteral.kt") public void testNativeInterfaceClassLiteral() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti/nativeInterfaceClassLiteral.kt"); } @TestMetadata("whenIsNativeInterface.kt") public void testWhenIsNativeInterface() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti/whenIsNativeInterface.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/unusedParam") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class UnusedParam extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInUnusedParam() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/native/unusedParam"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("native.kt") public void testNative() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/unusedParam/native.kt"); } @TestMetadata("nativeGetter.kt") public void testNativeGetter() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/unusedParam/nativeGetter.kt"); } @TestMetadata("nativeInvoke.kt") public void testNativeInvoke() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/unusedParam/nativeInvoke.kt"); } @TestMetadata("nativeSetter.kt") public void testNativeSetter() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/native/unusedParam/nativeSetter.kt"); } } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/qualifier") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Qualifier extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInQualifier() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/qualifier"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("jsQualifierNonExternal.kt") public void testJsQualifierNonExternal() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/qualifier/jsQualifierNonExternal.kt"); } @TestMetadata("wrongQualifier.kt") public void testWrongQualifier() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/qualifier/wrongQualifier.kt"); } } @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/reflection") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Reflection extends AbstractDiagnosticsTestWithJsStdLib { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void testAllFilesPresentInReflection() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/reflection"), Pattern.compile("^(.+)\\.kt$"), null, true); } @TestMetadata("reflectionApi.kt") public void testReflectionApi() throws Exception { runTest("compiler/testData/diagnostics/testsWithJsStdLib/reflection/reflectionApi.kt"); } } }