From 3199ce03a6267bfb2c4d863c9d06d9f6fa8ffab3 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 27 Jan 2021 16:21:31 +0300 Subject: [PATCH] [Test] Merge box against java testdata into codegen black box testsdata --- .../FirBlackBoxCodegenTestGenerated.java | 1316 ----------------- .../annotations/divisionByZeroInJava.kt | 0 .../javaAnnotationArrayValueDefault.kt | 0 .../javaAnnotationArrayValueNoDefault.kt | 0 .../annotations/javaAnnotationCall.kt | 0 .../annotations/javaAnnotationDefault.kt | 0 ...vaNegativePropertyAsAnnotationParameter.kt | 0 .../javaPropertyAsAnnotationParameter.kt | 0 .../javaPropertyWithIntInitializer.kt | 0 .../kClassMapping/arrayClassParameter.kt | 0 .../arrayClassParameterOnJavaClass.kt | 0 .../kClassMapping/classParameter.kt | 0 .../classParameterOnJavaClass.kt | 0 .../kClassMapping/varargClassParameter.kt | 0 .../varargClassParameterOnJavaClass.kt | 0 .../annotations/retentionInJava.kt | 0 .../typeAnnotations/implicitReturn.kt | 0 .../callableReference/constructor.kt | 0 .../callableReference/kt16412.kt | 0 .../callableReference/publicFinalField.kt | 0 .../callableReference/publicMutableField.kt | 0 .../callableReference/staticMethod.kt | 0 .../constructor/genericConstructor.kt | 0 .../constructor/secondaryConstructor.kt | 0 .../delegationAndInheritanceFromJava.kt | 0 .../{boxAgainstJava => }/enum/nameConflict.kt | 0 .../enum/simpleJavaEnum.kt | 0 .../enum/simpleJavaEnumWithFunction.kt | 0 .../enum/simpleJavaEnumWithStaticImport.kt | 0 .../enum/simpleJavaInnerEnum.kt | 0 .../{boxAgainstJava => }/enum/staticField.kt | 0 .../{boxAgainstJava => }/enum/staticMethod.kt | 0 .../functions/constructor.kt | 0 .../{boxAgainstJava => }/functions/max.kt | 0 .../referencesStaticInnerClassMethod.kt | 0 .../referencesStaticInnerClassMethodL2.kt | 0 .../functions/unrelatedUpperBounds.kt | 0 .../{boxAgainstJava => }/ieee754/anyToReal.kt | 0 .../ieee754/comparableTypeCast.kt | 0 .../{boxAgainstJava => }/ieee754/double.kt | 0 .../ieee754/explicitCompareCall.kt | 0 .../ieee754/explicitEqualsCall.kt | 0 .../{boxAgainstJava => }/ieee754/float.kt | 0 .../{boxAgainstJava => }/ieee754/generic.kt | 0 .../ieee754/nullableAnyToReal.kt | 0 .../{boxAgainstJava => }/inline/kt19910.kt | 0 .../{boxAgainstJava => }/innerClass/kt3532.kt | 0 .../{boxAgainstJava => }/innerClass/kt3812.kt | 0 .../{boxAgainstJava => }/innerClass/kt4036.kt | 0 .../interfaces/defaultMethod.kt | 0 .../interfaces/inheritJavaInterface.kt | 0 ...annotationsViaActualTypeAliasFromBinary.kt | 0 .../notNullAssertions/callAssertions.kt | 0 .../notNullAssertions/delegation.kt | 0 .../doGenerateParamAssertions.kt | 0 .../notNullAssertions/noCallAssertions.kt | 0 .../notNullAssertions/rightElvisOperand.kt | 0 .../ieee754/explicitEqualsCallNull.kt | 0 .../platformTypes/genericUnit.kt | 0 .../platformTypes/kt14989.kt | 0 .../platformTypes/specializedMapFull.kt | 0 .../platformTypes/specializedMapPut.kt | 0 .../fieldAccessFromExtensionInTraitImpl.kt | 0 .../property/fieldAccessViaSubclass.kt | 0 .../property/referenceToJavaFieldViaBridge.kt | 0 .../recursiveRawTypes/kt16528.kt | 0 .../recursiveRawTypes/kt16639.kt | 0 .../classLiterals/javaClassLiteral.kt | 0 .../reflection/mapping/jClass2kClass.kt | 0 .../reflection/mapping/javaConstructor.kt | 0 .../reflection/mapping/javaFields.kt | 0 .../reflection/mapping/javaMethods.kt | 0 .../properties/equalsHashCodeToString.kt | 0 .../sam/adapters/bridgesForOverridden.kt | 0 .../adapters/bridgesForOverriddenComplex.kt | 0 .../sam/adapters/callAbstractAdapter.kt | 0 .../sam/adapters/comparator.kt | 0 .../sam/adapters/constructor.kt | 0 .../sam/adapters/doubleLongParameters.kt | 0 .../sam/adapters/fileFilter.kt | 0 .../sam/adapters/genericSignature.kt | 0 .../sam/adapters/implementAdapter.kt | 0 .../sam/adapters/inheritedInKotlin.kt | 0 .../adapters/inheritedOverriddenAdapter.kt | 0 .../sam/adapters/inheritedSimple.kt | 0 .../sam/adapters/localClass.kt | 0 .../sam/adapters/localObjectConstructor.kt | 0 .../localObjectConstructorWithFnValue.kt | 0 .../adapters/nonLiteralAndLiteralRunnable.kt | 0 .../sam/adapters/nonLiteralComparator.kt | 0 .../sam/adapters/nonLiteralInConstructor.kt | 0 .../sam/adapters/nonLiteralNull.kt | 0 .../sam/adapters/nonLiteralRunnable.kt | 0 .../operators/augmentedAssignmentPure.kt | 0 .../augmentedAssignmentViaSimpleBinary.kt | 0 .../sam/adapters/operators/binary.kt | 0 .../sam/adapters/operators/compareTo.kt | 0 .../sam/adapters/operators/contains.kt | 0 .../sam/adapters/operators/get.kt | 0 .../sam/adapters/operators/invoke.kt | 0 .../adapters/operators/legacyModOperator.kt | 0 .../sam/adapters/operators/multiGetSet.kt | 0 .../sam/adapters/operators/multiInvoke.kt | 0 .../sam/adapters/operators/set.kt | 0 .../sam/adapters/protectedFromBase.kt | 0 .../sam/adapters/severalSamParameters.kt | 0 .../sam/adapters/simplest.kt | 0 .../adapters/superInSecondaryConstructor.kt | 0 .../sam/adapters/superconstructor.kt | 0 .../adapters/superconstructorWithClosure.kt | 0 .../sam/adapters/typeParameterOfClass.kt | 0 .../sam/adapters/typeParameterOfMethod.kt | 0 .../sam/adapters/typeParameterOfOuterClass.kt | 0 .../sam/differentFqNames.kt | 0 .../{boxAgainstJava => }/sam/kt11519.kt | 0 .../sam/kt11519Constructor.kt | 0 .../{boxAgainstJava => }/sam/kt11696.kt | 0 .../{boxAgainstJava => }/sam/kt4753.kt | 0 .../{boxAgainstJava => }/sam/kt4753_2.kt | 0 .../sam/propertyReference.kt | 0 .../sam/samConstructorGenericSignature.kt | 0 .../sam/smartCastSamConversion.kt | 0 .../specialBuiltins/charBuffer.kt | 0 .../staticFun/classWithNestedEnum.kt | 0 .../syntheticExtensions/fromTwoBases.kt | 0 .../syntheticExtensions/getter.kt | 0 .../syntheticExtensions/implicitReceiver.kt | 0 .../syntheticExtensions/overrideOnlyGetter.kt | 0 .../syntheticExtensions/plusPlus.kt | 0 .../syntheticExtensions/protected.kt | 0 .../syntheticExtensions/protectedSetter.kt | 0 .../syntheticExtensions/setter.kt | 0 .../syntheticExtensions/setterNonVoid1.kt | 0 .../syntheticExtensions/setterNonVoid2.kt | 0 .../throws/delegationAndThrows.kt | 0 .../javaStaticMembersViaTypeAlias.kt | 0 .../varargs/varargsOverride.kt | 0 .../varargs/varargsOverride2.kt | 0 .../varargs/varargsOverride3.kt | 0 .../visibility/package/kt2781.kt | 0 .../visibility/package/packageClass.kt | 0 .../visibility/package/packageFun.kt | 0 .../visibility/package/packageProperty.kt | 0 .../overrideProtectedFunInPackage.kt | 0 .../protectedAndPackage/protectedAccessor.kt | 0 .../protectedFunInPackage.kt | 0 .../protectedPropertyInPackage.kt | 0 ...otectedPropertyInPackageFromCrossinline.kt | 0 .../protectedStaticClass.kt | 0 .../protectedSuperField.kt | 0 .../protectedSuperMethod.kt | 0 .../protectedStatic/funCallInConstructor.kt | 0 .../protectedStatic/funClassObject.kt | 0 .../protectedStatic/funGenericClass.kt | 0 .../protectedStatic/funNestedStaticClass.kt | 0 .../protectedStatic/funNestedStaticClass2.kt | 0 .../funNestedStaticGenericClass.kt | 0 .../protectedStatic/funNotDirectSuperClass.kt | 0 .../visibility/protectedStatic/funObject.kt | 0 .../visibility/protectedStatic/simpleClass.kt | 0 .../protectedStatic/simpleClass2.kt | 0 .../visibility/protectedStatic/simpleFun.kt | 0 .../protectedStatic/simpleProperty.kt | 0 .../codegen/BlackBoxCodegenTestGenerated.java | 1316 ----------------- .../IrBlackBoxCodegenTestGenerated.java | 1316 ----------------- 165 files changed, 3948 deletions(-) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/divisionByZeroInJava.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/javaAnnotationArrayValueDefault.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/javaAnnotationArrayValueNoDefault.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/javaAnnotationCall.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/javaAnnotationDefault.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/javaNegativePropertyAsAnnotationParameter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/javaPropertyAsAnnotationParameter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/javaPropertyWithIntInitializer.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/kClassMapping/arrayClassParameter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/kClassMapping/classParameter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/kClassMapping/classParameterOnJavaClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/kClassMapping/varargClassParameter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/kClassMapping/varargClassParameterOnJavaClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/retentionInJava.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/annotations/typeAnnotations/implicitReturn.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/callableReference/constructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/callableReference/kt16412.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/callableReference/publicFinalField.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/callableReference/publicMutableField.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/callableReference/staticMethod.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/constructor/genericConstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/constructor/secondaryConstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/delegation/delegationAndInheritanceFromJava.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/enum/nameConflict.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/enum/simpleJavaEnum.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/enum/simpleJavaEnumWithFunction.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/enum/simpleJavaEnumWithStaticImport.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/enum/simpleJavaInnerEnum.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/enum/staticField.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/enum/staticMethod.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/functions/constructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/functions/max.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/functions/referencesStaticInnerClassMethod.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/functions/referencesStaticInnerClassMethodL2.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/functions/unrelatedUpperBounds.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/anyToReal.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/comparableTypeCast.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/double.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/explicitCompareCall.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/explicitEqualsCall.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/float.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/generic.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/ieee754/nullableAnyToReal.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/inline/kt19910.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/innerClass/kt3532.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/innerClass/kt3812.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/innerClass/kt4036.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/interfaces/defaultMethod.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/interfaces/inheritJavaInterface.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/multiplatform/annotationsViaActualTypeAliasFromBinary.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/notNullAssertions/callAssertions.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/notNullAssertions/delegation.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/notNullAssertions/doGenerateParamAssertions.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/notNullAssertions/noCallAssertions.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/notNullAssertions/rightElvisOperand.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/oldLanguageVersions/ieee754/explicitEqualsCallNull.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/platformTypes/genericUnit.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/platformTypes/kt14989.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/platformTypes/specializedMapFull.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/platformTypes/specializedMapPut.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/property/fieldAccessFromExtensionInTraitImpl.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/property/fieldAccessViaSubclass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/property/referenceToJavaFieldViaBridge.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/recursiveRawTypes/kt16528.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/recursiveRawTypes/kt16639.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/reflection/classLiterals/javaClassLiteral.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/reflection/mapping/jClass2kClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/reflection/mapping/javaConstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/reflection/mapping/javaFields.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/reflection/mapping/javaMethods.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/reflection/properties/equalsHashCodeToString.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/bridgesForOverridden.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/bridgesForOverriddenComplex.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/callAbstractAdapter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/comparator.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/constructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/doubleLongParameters.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/fileFilter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/genericSignature.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/implementAdapter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/inheritedInKotlin.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/inheritedOverriddenAdapter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/inheritedSimple.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/localClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/localObjectConstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/localObjectConstructorWithFnValue.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/nonLiteralAndLiteralRunnable.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/nonLiteralComparator.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/nonLiteralInConstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/nonLiteralNull.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/nonLiteralRunnable.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/augmentedAssignmentPure.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/binary.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/compareTo.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/contains.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/get.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/invoke.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/legacyModOperator.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/multiGetSet.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/multiInvoke.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/operators/set.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/protectedFromBase.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/severalSamParameters.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/simplest.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/superInSecondaryConstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/superconstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/superconstructorWithClosure.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/typeParameterOfClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/typeParameterOfMethod.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/adapters/typeParameterOfOuterClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/differentFqNames.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/kt11519.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/kt11519Constructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/kt11696.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/kt4753.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/kt4753_2.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/propertyReference.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/samConstructorGenericSignature.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/sam/smartCastSamConversion.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/specialBuiltins/charBuffer.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/staticFun/classWithNestedEnum.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/fromTwoBases.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/getter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/implicitReceiver.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/overrideOnlyGetter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/plusPlus.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/protected.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/protectedSetter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/setter.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/setterNonVoid1.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/syntheticExtensions/setterNonVoid2.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/throws/delegationAndThrows.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/typealias/javaStaticMembersViaTypeAlias.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/varargs/varargsOverride.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/varargs/varargsOverride2.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/varargs/varargsOverride3.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/package/kt2781.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/package/packageClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/package/packageFun.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/package/packageProperty.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/protectedAccessor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/protectedFunInPackage.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/protectedPropertyInPackage.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/protectedStaticClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/protectedSuperField.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedAndPackage/protectedSuperMethod.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funCallInConstructor.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funClassObject.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funGenericClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funNestedStaticClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funNestedStaticClass2.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funNestedStaticGenericClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funNotDirectSuperClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/funObject.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/simpleClass.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/simpleClass2.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/simpleFun.kt (100%) rename compiler/testData/codegen/{boxAgainstJava => }/visibility/protectedStatic/simpleProperty.kt (100%) diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java index d9a8d9f62a8..6e2d9fb3f3f 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java @@ -38937,1320 +38937,4 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT } } } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava") - @TestDataPath("$PROJECT_ROOT") - public class BoxAgainstJava extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInBoxAgainstJava() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "oldLanguageVersions"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations") - @TestDataPath("$PROJECT_ROOT") - public class Annotations extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("divisionByZeroInJava.kt") - public void testDivisionByZeroInJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/divisionByZeroInJava.kt"); - } - - @Test - @TestMetadata("javaAnnotationArrayValueDefault.kt") - public void testJavaAnnotationArrayValueDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueDefault.kt"); - } - - @Test - @TestMetadata("javaAnnotationArrayValueNoDefault.kt") - public void testJavaAnnotationArrayValueNoDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueNoDefault.kt"); - } - - @Test - @TestMetadata("javaAnnotationCall.kt") - public void testJavaAnnotationCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationCall.kt"); - } - - @Test - @TestMetadata("javaAnnotationDefault.kt") - public void testJavaAnnotationDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationDefault.kt"); - } - - @Test - @TestMetadata("javaNegativePropertyAsAnnotationParameter.kt") - public void testJavaNegativePropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaNegativePropertyAsAnnotationParameter.kt"); - } - - @Test - @TestMetadata("javaPropertyAsAnnotationParameter.kt") - public void testJavaPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyAsAnnotationParameter.kt"); - } - - @Test - @TestMetadata("javaPropertyWithIntInitializer.kt") - public void testJavaPropertyWithIntInitializer() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyWithIntInitializer.kt"); - } - - @Test - @TestMetadata("retentionInJava.kt") - public void testRetentionInJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/retentionInJava.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping") - @TestDataPath("$PROJECT_ROOT") - public class KClassMapping extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInKClassMapping() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("arrayClassParameter.kt") - public void testArrayClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameter.kt"); - } - - @Test - @TestMetadata("arrayClassParameterOnJavaClass.kt") - public void testArrayClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt"); - } - - @Test - @TestMetadata("classParameter.kt") - public void testClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameter.kt"); - } - - @Test - @TestMetadata("classParameterOnJavaClass.kt") - public void testClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameterOnJavaClass.kt"); - } - - @Test - @TestMetadata("varargClassParameter.kt") - public void testVarargClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameter.kt"); - } - - @Test - @TestMetadata("varargClassParameterOnJavaClass.kt") - public void testVarargClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameterOnJavaClass.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations") - @TestDataPath("$PROJECT_ROOT") - public class TypeAnnotations extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("implicitReturn.kt") - public void testImplicitReturn() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations/implicitReturn.kt"); - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/callableReference") - @TestDataPath("$PROJECT_ROOT") - public class CallableReference extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInCallableReference() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/constructor.kt"); - } - - @Test - @TestMetadata("kt16412.kt") - public void testKt16412() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/kt16412.kt"); - } - - @Test - @TestMetadata("publicFinalField.kt") - public void testPublicFinalField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/publicFinalField.kt"); - } - - @Test - @TestMetadata("publicMutableField.kt") - public void testPublicMutableField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/publicMutableField.kt"); - } - - @Test - @TestMetadata("staticMethod.kt") - public void testStaticMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/staticMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/constructor") - @TestDataPath("$PROJECT_ROOT") - public class Constructor extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInConstructor() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("genericConstructor.kt") - public void testGenericConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/constructor/genericConstructor.kt"); - } - - @Test - @TestMetadata("secondaryConstructor.kt") - public void testSecondaryConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/constructor/secondaryConstructor.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/delegation") - @TestDataPath("$PROJECT_ROOT") - public class Delegation extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("delegationAndInheritanceFromJava.kt") - public void testDelegationAndInheritanceFromJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/delegation/delegationAndInheritanceFromJava.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/enum") - @TestDataPath("$PROJECT_ROOT") - public class Enum extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInEnum() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("nameConflict.kt") - public void testNameConflict() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/nameConflict.kt"); - } - - @Test - @TestMetadata("simpleJavaEnum.kt") - public void testSimpleJavaEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnum.kt"); - } - - @Test - @TestMetadata("simpleJavaEnumWithFunction.kt") - public void testSimpleJavaEnumWithFunction() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithFunction.kt"); - } - - @Test - @TestMetadata("simpleJavaEnumWithStaticImport.kt") - public void testSimpleJavaEnumWithStaticImport() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithStaticImport.kt"); - } - - @Test - @TestMetadata("simpleJavaInnerEnum.kt") - public void testSimpleJavaInnerEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaInnerEnum.kt"); - } - - @Test - @TestMetadata("staticField.kt") - public void testStaticField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/staticField.kt"); - } - - @Test - @TestMetadata("staticMethod.kt") - public void testStaticMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/staticMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/functions") - @TestDataPath("$PROJECT_ROOT") - public class Functions extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInFunctions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/constructor.kt"); - } - - @Test - @TestMetadata("max.kt") - public void testMax() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/max.kt"); - } - - @Test - @TestMetadata("referencesStaticInnerClassMethod.kt") - public void testReferencesStaticInnerClassMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethod.kt"); - } - - @Test - @TestMetadata("referencesStaticInnerClassMethodL2.kt") - public void testReferencesStaticInnerClassMethodL2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethodL2.kt"); - } - - @Test - @TestMetadata("unrelatedUpperBounds.kt") - public void testUnrelatedUpperBounds() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/unrelatedUpperBounds.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/ieee754") - @TestDataPath("$PROJECT_ROOT") - public class Ieee754 extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInIeee754() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("anyToReal.kt") - public void testAnyToReal() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/anyToReal.kt"); - } - - @Test - @TestMetadata("comparableTypeCast.kt") - public void testComparableTypeCast() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/comparableTypeCast.kt"); - } - - @Test - @TestMetadata("double.kt") - public void testDouble() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/double.kt"); - } - - @Test - @TestMetadata("explicitCompareCall.kt") - public void testExplicitCompareCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/explicitCompareCall.kt"); - } - - @Test - @TestMetadata("explicitEqualsCall.kt") - public void testExplicitEqualsCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/explicitEqualsCall.kt"); - } - - @Test - @TestMetadata("float.kt") - public void testFloat() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/float.kt"); - } - - @Test - @TestMetadata("generic.kt") - public void testGeneric() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/generic.kt"); - } - - @Test - @TestMetadata("nullableAnyToReal.kt") - public void testNullableAnyToReal() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/nullableAnyToReal.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/inline") - @TestDataPath("$PROJECT_ROOT") - public class Inline extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInline() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt19910.kt") - public void testKt19910() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/inline/kt19910.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/innerClass") - @TestDataPath("$PROJECT_ROOT") - public class InnerClass extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInnerClass() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt3532.kt") - public void testKt3532() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt3532.kt"); - } - - @Test - @TestMetadata("kt3812.kt") - public void testKt3812() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt3812.kt"); - } - - @Test - @TestMetadata("kt4036.kt") - public void testKt4036() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt4036.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/interfaces") - @TestDataPath("$PROJECT_ROOT") - public class Interfaces extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInterfaces() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/interfaces"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("defaultMethod.kt") - public void testDefaultMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/interfaces/defaultMethod.kt"); - } - - @Test - @TestMetadata("inheritJavaInterface.kt") - public void testInheritJavaInterface() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/interfaces/inheritJavaInterface.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/multiplatform") - @TestDataPath("$PROJECT_ROOT") - public class Multiplatform extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInMultiplatform() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("annotationsViaActualTypeAliasFromBinary.kt") - public void testAnnotationsViaActualTypeAliasFromBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/multiplatform/annotationsViaActualTypeAliasFromBinary.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/notNullAssertions") - @TestDataPath("$PROJECT_ROOT") - public class NotNullAssertions extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInNotNullAssertions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("callAssertions.kt") - public void testCallAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/callAssertions.kt"); - } - - @Test - @TestMetadata("delegation.kt") - public void testDelegation() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/delegation.kt"); - } - - @Test - @TestMetadata("doGenerateParamAssertions.kt") - public void testDoGenerateParamAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/doGenerateParamAssertions.kt"); - } - - @Test - @TestMetadata("noCallAssertions.kt") - public void testNoCallAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/noCallAssertions.kt"); - } - - @Test - @TestMetadata("rightElvisOperand.kt") - public void testRightElvisOperand() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/rightElvisOperand.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/platformTypes") - @TestDataPath("$PROJECT_ROOT") - public class PlatformTypes extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInPlatformTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("genericUnit.kt") - public void testGenericUnit() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/genericUnit.kt"); - } - - @Test - @TestMetadata("kt14989.kt") - public void testKt14989() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/kt14989.kt"); - } - - @Test - @TestMetadata("specializedMapFull.kt") - public void testSpecializedMapFull() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapFull.kt"); - } - - @Test - @TestMetadata("specializedMapPut.kt") - public void testSpecializedMapPut() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapPut.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/property") - @TestDataPath("$PROJECT_ROOT") - public class Property extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProperty() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("fieldAccessFromExtensionInTraitImpl.kt") - public void testFieldAccessFromExtensionInTraitImpl() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/fieldAccessFromExtensionInTraitImpl.kt"); - } - - @Test - @TestMetadata("fieldAccessViaSubclass.kt") - public void testFieldAccessViaSubclass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/fieldAccessViaSubclass.kt"); - } - - @Test - @TestMetadata("referenceToJavaFieldViaBridge.kt") - public void testReferenceToJavaFieldViaBridge() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/referenceToJavaFieldViaBridge.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes") - @TestDataPath("$PROJECT_ROOT") - public class RecursiveRawTypes extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInRecursiveRawTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt16528.kt") - public void testKt16528() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16528.kt"); - } - - @Test - @TestMetadata("kt16639.kt") - public void testKt16639() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16639.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection") - @TestDataPath("$PROJECT_ROOT") - public class Reflection extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInReflection() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals") - @TestDataPath("$PROJECT_ROOT") - public class ClassLiterals extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInClassLiterals() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("javaClassLiteral.kt") - public void testJavaClassLiteral() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals/javaClassLiteral.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/mapping") - @TestDataPath("$PROJECT_ROOT") - public class Mapping extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInMapping() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/mapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("jClass2kClass.kt") - public void testJClass2kClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/jClass2kClass.kt"); - } - - @Test - @TestMetadata("javaConstructor.kt") - public void testJavaConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaConstructor.kt"); - } - - @Test - @TestMetadata("javaFields.kt") - public void testJavaFields() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaFields.kt"); - } - - @Test - @TestMetadata("javaMethods.kt") - public void testJavaMethods() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaMethods.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/properties") - @TestDataPath("$PROJECT_ROOT") - public class Properties extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProperties() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("equalsHashCodeToString.kt") - public void testEqualsHashCodeToString() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/properties/equalsHashCodeToString.kt"); - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam") - @TestDataPath("$PROJECT_ROOT") - public class Sam extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSam() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("differentFqNames.kt") - public void testDifferentFqNames() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/differentFqNames.kt"); - } - - @Test - @TestMetadata("kt11519.kt") - public void testKt11519() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11519.kt"); - } - - @Test - @TestMetadata("kt11519Constructor.kt") - public void testKt11519Constructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11519Constructor.kt"); - } - - @Test - @TestMetadata("kt11696.kt") - public void testKt11696() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11696.kt"); - } - - @Test - @TestMetadata("kt4753.kt") - public void testKt4753() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt4753.kt"); - } - - @Test - @TestMetadata("kt4753_2.kt") - public void testKt4753_2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt4753_2.kt"); - } - - @Test - @TestMetadata("propertyReference.kt") - public void testPropertyReference() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/propertyReference.kt"); - } - - @Test - @TestMetadata("samConstructorGenericSignature.kt") - public void testSamConstructorGenericSignature() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt"); - } - - @Test - @TestMetadata("smartCastSamConversion.kt") - public void testSmartCastSamConversion() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters") - @TestDataPath("$PROJECT_ROOT") - public class Adapters extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInAdapters() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam/adapters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("bridgesForOverridden.kt") - public void testBridgesForOverridden() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverridden.kt"); - } - - @Test - @TestMetadata("bridgesForOverriddenComplex.kt") - public void testBridgesForOverriddenComplex() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverriddenComplex.kt"); - } - - @Test - @TestMetadata("callAbstractAdapter.kt") - public void testCallAbstractAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/callAbstractAdapter.kt"); - } - - @Test - @TestMetadata("comparator.kt") - public void testComparator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/comparator.kt"); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/constructor.kt"); - } - - @Test - @TestMetadata("doubleLongParameters.kt") - public void testDoubleLongParameters() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.kt"); - } - - @Test - @TestMetadata("fileFilter.kt") - public void testFileFilter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/fileFilter.kt"); - } - - @Test - @TestMetadata("genericSignature.kt") - public void testGenericSignature() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/genericSignature.kt"); - } - - @Test - @TestMetadata("implementAdapter.kt") - public void testImplementAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/implementAdapter.kt"); - } - - @Test - @TestMetadata("inheritedInKotlin.kt") - public void testInheritedInKotlin() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedInKotlin.kt"); - } - - @Test - @TestMetadata("inheritedOverriddenAdapter.kt") - public void testInheritedOverriddenAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedOverriddenAdapter.kt"); - } - - @Test - @TestMetadata("inheritedSimple.kt") - public void testInheritedSimple() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedSimple.kt"); - } - - @Test - @TestMetadata("localClass.kt") - public void testLocalClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localClass.kt"); - } - - @Test - @TestMetadata("localObjectConstructor.kt") - public void testLocalObjectConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructor.kt"); - } - - @Test - @TestMetadata("localObjectConstructorWithFnValue.kt") - public void testLocalObjectConstructorWithFnValue() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructorWithFnValue.kt"); - } - - @Test - @TestMetadata("nonLiteralAndLiteralRunnable.kt") - public void testNonLiteralAndLiteralRunnable() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralAndLiteralRunnable.kt"); - } - - @Test - @TestMetadata("nonLiteralComparator.kt") - public void testNonLiteralComparator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralComparator.kt"); - } - - @Test - @TestMetadata("nonLiteralInConstructor.kt") - public void testNonLiteralInConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralInConstructor.kt"); - } - - @Test - @TestMetadata("nonLiteralNull.kt") - public void testNonLiteralNull() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralNull.kt"); - } - - @Test - @TestMetadata("nonLiteralRunnable.kt") - public void testNonLiteralRunnable() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralRunnable.kt"); - } - - @Test - @TestMetadata("protectedFromBase.kt") - public void testProtectedFromBase() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/protectedFromBase.kt"); - } - - @Test - @TestMetadata("severalSamParameters.kt") - public void testSeveralSamParameters() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/severalSamParameters.kt"); - } - - @Test - @TestMetadata("simplest.kt") - public void testSimplest() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/simplest.kt"); - } - - @Test - @TestMetadata("superInSecondaryConstructor.kt") - public void testSuperInSecondaryConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superInSecondaryConstructor.kt"); - } - - @Test - @TestMetadata("superconstructor.kt") - public void testSuperconstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructor.kt"); - } - - @Test - @TestMetadata("superconstructorWithClosure.kt") - public void testSuperconstructorWithClosure() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructorWithClosure.kt"); - } - - @Test - @TestMetadata("typeParameterOfClass.kt") - public void testTypeParameterOfClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfClass.kt"); - } - - @Test - @TestMetadata("typeParameterOfMethod.kt") - public void testTypeParameterOfMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfMethod.kt"); - } - - @Test - @TestMetadata("typeParameterOfOuterClass.kt") - public void testTypeParameterOfOuterClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfOuterClass.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators") - @TestDataPath("$PROJECT_ROOT") - public class Operators extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInOperators() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("augmentedAssignmentPure.kt") - public void testAugmentedAssignmentPure() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentPure.kt"); - } - - @Test - @TestMetadata("augmentedAssignmentViaSimpleBinary.kt") - public void testAugmentedAssignmentViaSimpleBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt"); - } - - @Test - @TestMetadata("binary.kt") - public void testBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/binary.kt"); - } - - @Test - @TestMetadata("compareTo.kt") - public void testCompareTo() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/compareTo.kt"); - } - - @Test - @TestMetadata("contains.kt") - public void testContains() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/contains.kt"); - } - - @Test - @TestMetadata("get.kt") - public void testGet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/get.kt"); - } - - @Test - @TestMetadata("invoke.kt") - public void testInvoke() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/invoke.kt"); - } - - @Test - @TestMetadata("legacyModOperator.kt") - public void testLegacyModOperator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/legacyModOperator.kt"); - } - - @Test - @TestMetadata("multiGetSet.kt") - public void testMultiGetSet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiGetSet.kt"); - } - - @Test - @TestMetadata("multiInvoke.kt") - public void testMultiInvoke() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiInvoke.kt"); - } - - @Test - @TestMetadata("set.kt") - public void testSet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/set.kt"); - } - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/specialBuiltins") - @TestDataPath("$PROJECT_ROOT") - public class SpecialBuiltins extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSpecialBuiltins() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/specialBuiltins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("charBuffer.kt") - public void testCharBuffer() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/specialBuiltins/charBuffer.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/staticFun") - @TestDataPath("$PROJECT_ROOT") - public class StaticFun extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInStaticFun() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/staticFun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("classWithNestedEnum.kt") - public void testClassWithNestedEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/staticFun/classWithNestedEnum.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/syntheticExtensions") - @TestDataPath("$PROJECT_ROOT") - public class SyntheticExtensions extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSyntheticExtensions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("fromTwoBases.kt") - public void testFromTwoBases() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.kt"); - } - - @Test - @TestMetadata("getter.kt") - public void testGetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/getter.kt"); - } - - @Test - @TestMetadata("implicitReceiver.kt") - public void testImplicitReceiver() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/implicitReceiver.kt"); - } - - @Test - @TestMetadata("overrideOnlyGetter.kt") - public void testOverrideOnlyGetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/overrideOnlyGetter.kt"); - } - - @Test - @TestMetadata("plusPlus.kt") - public void testPlusPlus() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/plusPlus.kt"); - } - - @Test - @TestMetadata("protected.kt") - public void testProtected() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protected.kt"); - } - - @Test - @TestMetadata("protectedSetter.kt") - public void testProtectedSetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protectedSetter.kt"); - } - - @Test - @TestMetadata("setter.kt") - public void testSetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setter.kt"); - } - - @Test - @TestMetadata("setterNonVoid1.kt") - public void testSetterNonVoid1() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid1.kt"); - } - - @Test - @TestMetadata("setterNonVoid2.kt") - public void testSetterNonVoid2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid2.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/throws") - @TestDataPath("$PROJECT_ROOT") - public class Throws extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInThrows() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/throws"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("delegationAndThrows.kt") - public void testDelegationAndThrows() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/throws/delegationAndThrows.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/typealias") - @TestDataPath("$PROJECT_ROOT") - public class Typealias extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInTypealias() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("javaStaticMembersViaTypeAlias.kt") - public void testJavaStaticMembersViaTypeAlias() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/typealias/javaStaticMembersViaTypeAlias.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/varargs") - @TestDataPath("$PROJECT_ROOT") - public class Varargs extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInVarargs() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("varargsOverride.kt") - public void testVarargsOverride() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride.kt"); - } - - @Test - @TestMetadata("varargsOverride2.kt") - public void testVarargsOverride2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride2.kt"); - } - - @Test - @TestMetadata("varargsOverride3.kt") - public void testVarargsOverride3() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride3.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility") - @TestDataPath("$PROJECT_ROOT") - public class Visibility extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInVisibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/package") - @TestDataPath("$PROJECT_ROOT") - public class Package extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInPackage() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt2781.kt") - public void testKt2781() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/kt2781.kt"); - } - - @Test - @TestMetadata("packageClass.kt") - public void testPackageClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageClass.kt"); - } - - @Test - @TestMetadata("packageFun.kt") - public void testPackageFun() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageFun.kt"); - } - - @Test - @TestMetadata("packageProperty.kt") - public void testPackageProperty() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageProperty.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage") - @TestDataPath("$PROJECT_ROOT") - public class ProtectedAndPackage extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProtectedAndPackage() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("overrideProtectedFunInPackage.kt") - public void testOverrideProtectedFunInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt"); - } - - @Test - @TestMetadata("protectedAccessor.kt") - public void testProtectedAccessor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedAccessor.kt"); - } - - @Test - @TestMetadata("protectedFunInPackage.kt") - public void testProtectedFunInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedFunInPackage.kt"); - } - - @Test - @TestMetadata("protectedPropertyInPackage.kt") - public void testProtectedPropertyInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackage.kt"); - } - - @Test - @TestMetadata("protectedPropertyInPackageFromCrossinline.kt") - public void testProtectedPropertyInPackageFromCrossinline() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt"); - } - - @Test - @TestMetadata("protectedStaticClass.kt") - public void testProtectedStaticClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedStaticClass.kt"); - } - - @Test - @TestMetadata("protectedSuperField.kt") - public void testProtectedSuperField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperField.kt"); - } - - @Test - @TestMetadata("protectedSuperMethod.kt") - public void testProtectedSuperMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic") - @TestDataPath("$PROJECT_ROOT") - public class ProtectedStatic extends AbstractFirBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProtectedStatic() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("funCallInConstructor.kt") - public void testFunCallInConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funCallInConstructor.kt"); - } - - @Test - @TestMetadata("funClassObject.kt") - public void testFunClassObject() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funClassObject.kt"); - } - - @Test - @TestMetadata("funGenericClass.kt") - public void testFunGenericClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funGenericClass.kt"); - } - - @Test - @TestMetadata("funNestedStaticClass.kt") - public void testFunNestedStaticClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass.kt"); - } - - @Test - @TestMetadata("funNestedStaticClass2.kt") - public void testFunNestedStaticClass2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass2.kt"); - } - - @Test - @TestMetadata("funNestedStaticGenericClass.kt") - public void testFunNestedStaticGenericClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticGenericClass.kt"); - } - - @Test - @TestMetadata("funNotDirectSuperClass.kt") - public void testFunNotDirectSuperClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNotDirectSuperClass.kt"); - } - - @Test - @TestMetadata("funObject.kt") - public void testFunObject() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funObject.kt"); - } - - @Test - @TestMetadata("simpleClass.kt") - public void testSimpleClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass.kt"); - } - - @Test - @TestMetadata("simpleClass2.kt") - public void testSimpleClass2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass2.kt"); - } - - @Test - @TestMetadata("simpleFun.kt") - public void testSimpleFun() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleFun.kt"); - } - - @Test - @TestMetadata("simpleProperty.kt") - public void testSimpleProperty() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleProperty.kt"); - } - } - } - } } diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/divisionByZeroInJava.kt b/compiler/testData/codegen/annotations/divisionByZeroInJava.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/divisionByZeroInJava.kt rename to compiler/testData/codegen/annotations/divisionByZeroInJava.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueDefault.kt b/compiler/testData/codegen/annotations/javaAnnotationArrayValueDefault.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueDefault.kt rename to compiler/testData/codegen/annotations/javaAnnotationArrayValueDefault.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueNoDefault.kt b/compiler/testData/codegen/annotations/javaAnnotationArrayValueNoDefault.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueNoDefault.kt rename to compiler/testData/codegen/annotations/javaAnnotationArrayValueNoDefault.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationCall.kt b/compiler/testData/codegen/annotations/javaAnnotationCall.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationCall.kt rename to compiler/testData/codegen/annotations/javaAnnotationCall.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationDefault.kt b/compiler/testData/codegen/annotations/javaAnnotationDefault.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationDefault.kt rename to compiler/testData/codegen/annotations/javaAnnotationDefault.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/javaNegativePropertyAsAnnotationParameter.kt b/compiler/testData/codegen/annotations/javaNegativePropertyAsAnnotationParameter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/javaNegativePropertyAsAnnotationParameter.kt rename to compiler/testData/codegen/annotations/javaNegativePropertyAsAnnotationParameter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyAsAnnotationParameter.kt b/compiler/testData/codegen/annotations/javaPropertyAsAnnotationParameter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyAsAnnotationParameter.kt rename to compiler/testData/codegen/annotations/javaPropertyAsAnnotationParameter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyWithIntInitializer.kt b/compiler/testData/codegen/annotations/javaPropertyWithIntInitializer.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyWithIntInitializer.kt rename to compiler/testData/codegen/annotations/javaPropertyWithIntInitializer.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameter.kt b/compiler/testData/codegen/annotations/kClassMapping/arrayClassParameter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameter.kt rename to compiler/testData/codegen/annotations/kClassMapping/arrayClassParameter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt b/compiler/testData/codegen/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt rename to compiler/testData/codegen/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameter.kt b/compiler/testData/codegen/annotations/kClassMapping/classParameter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameter.kt rename to compiler/testData/codegen/annotations/kClassMapping/classParameter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameterOnJavaClass.kt b/compiler/testData/codegen/annotations/kClassMapping/classParameterOnJavaClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameterOnJavaClass.kt rename to compiler/testData/codegen/annotations/kClassMapping/classParameterOnJavaClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameter.kt b/compiler/testData/codegen/annotations/kClassMapping/varargClassParameter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameter.kt rename to compiler/testData/codegen/annotations/kClassMapping/varargClassParameter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameterOnJavaClass.kt b/compiler/testData/codegen/annotations/kClassMapping/varargClassParameterOnJavaClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameterOnJavaClass.kt rename to compiler/testData/codegen/annotations/kClassMapping/varargClassParameterOnJavaClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/retentionInJava.kt b/compiler/testData/codegen/annotations/retentionInJava.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/retentionInJava.kt rename to compiler/testData/codegen/annotations/retentionInJava.kt diff --git a/compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations/implicitReturn.kt b/compiler/testData/codegen/annotations/typeAnnotations/implicitReturn.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations/implicitReturn.kt rename to compiler/testData/codegen/annotations/typeAnnotations/implicitReturn.kt diff --git a/compiler/testData/codegen/boxAgainstJava/callableReference/constructor.kt b/compiler/testData/codegen/callableReference/constructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/callableReference/constructor.kt rename to compiler/testData/codegen/callableReference/constructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/callableReference/kt16412.kt b/compiler/testData/codegen/callableReference/kt16412.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/callableReference/kt16412.kt rename to compiler/testData/codegen/callableReference/kt16412.kt diff --git a/compiler/testData/codegen/boxAgainstJava/callableReference/publicFinalField.kt b/compiler/testData/codegen/callableReference/publicFinalField.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/callableReference/publicFinalField.kt rename to compiler/testData/codegen/callableReference/publicFinalField.kt diff --git a/compiler/testData/codegen/boxAgainstJava/callableReference/publicMutableField.kt b/compiler/testData/codegen/callableReference/publicMutableField.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/callableReference/publicMutableField.kt rename to compiler/testData/codegen/callableReference/publicMutableField.kt diff --git a/compiler/testData/codegen/boxAgainstJava/callableReference/staticMethod.kt b/compiler/testData/codegen/callableReference/staticMethod.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/callableReference/staticMethod.kt rename to compiler/testData/codegen/callableReference/staticMethod.kt diff --git a/compiler/testData/codegen/boxAgainstJava/constructor/genericConstructor.kt b/compiler/testData/codegen/constructor/genericConstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/constructor/genericConstructor.kt rename to compiler/testData/codegen/constructor/genericConstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/constructor/secondaryConstructor.kt b/compiler/testData/codegen/constructor/secondaryConstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/constructor/secondaryConstructor.kt rename to compiler/testData/codegen/constructor/secondaryConstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/delegation/delegationAndInheritanceFromJava.kt b/compiler/testData/codegen/delegation/delegationAndInheritanceFromJava.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/delegation/delegationAndInheritanceFromJava.kt rename to compiler/testData/codegen/delegation/delegationAndInheritanceFromJava.kt diff --git a/compiler/testData/codegen/boxAgainstJava/enum/nameConflict.kt b/compiler/testData/codegen/enum/nameConflict.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/enum/nameConflict.kt rename to compiler/testData/codegen/enum/nameConflict.kt diff --git a/compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnum.kt b/compiler/testData/codegen/enum/simpleJavaEnum.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnum.kt rename to compiler/testData/codegen/enum/simpleJavaEnum.kt diff --git a/compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithFunction.kt b/compiler/testData/codegen/enum/simpleJavaEnumWithFunction.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithFunction.kt rename to compiler/testData/codegen/enum/simpleJavaEnumWithFunction.kt diff --git a/compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithStaticImport.kt b/compiler/testData/codegen/enum/simpleJavaEnumWithStaticImport.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithStaticImport.kt rename to compiler/testData/codegen/enum/simpleJavaEnumWithStaticImport.kt diff --git a/compiler/testData/codegen/boxAgainstJava/enum/simpleJavaInnerEnum.kt b/compiler/testData/codegen/enum/simpleJavaInnerEnum.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/enum/simpleJavaInnerEnum.kt rename to compiler/testData/codegen/enum/simpleJavaInnerEnum.kt diff --git a/compiler/testData/codegen/boxAgainstJava/enum/staticField.kt b/compiler/testData/codegen/enum/staticField.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/enum/staticField.kt rename to compiler/testData/codegen/enum/staticField.kt diff --git a/compiler/testData/codegen/boxAgainstJava/enum/staticMethod.kt b/compiler/testData/codegen/enum/staticMethod.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/enum/staticMethod.kt rename to compiler/testData/codegen/enum/staticMethod.kt diff --git a/compiler/testData/codegen/boxAgainstJava/functions/constructor.kt b/compiler/testData/codegen/functions/constructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/functions/constructor.kt rename to compiler/testData/codegen/functions/constructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/functions/max.kt b/compiler/testData/codegen/functions/max.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/functions/max.kt rename to compiler/testData/codegen/functions/max.kt diff --git a/compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethod.kt b/compiler/testData/codegen/functions/referencesStaticInnerClassMethod.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethod.kt rename to compiler/testData/codegen/functions/referencesStaticInnerClassMethod.kt diff --git a/compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethodL2.kt b/compiler/testData/codegen/functions/referencesStaticInnerClassMethodL2.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethodL2.kt rename to compiler/testData/codegen/functions/referencesStaticInnerClassMethodL2.kt diff --git a/compiler/testData/codegen/boxAgainstJava/functions/unrelatedUpperBounds.kt b/compiler/testData/codegen/functions/unrelatedUpperBounds.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/functions/unrelatedUpperBounds.kt rename to compiler/testData/codegen/functions/unrelatedUpperBounds.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/anyToReal.kt b/compiler/testData/codegen/ieee754/anyToReal.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/anyToReal.kt rename to compiler/testData/codegen/ieee754/anyToReal.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/comparableTypeCast.kt b/compiler/testData/codegen/ieee754/comparableTypeCast.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/comparableTypeCast.kt rename to compiler/testData/codegen/ieee754/comparableTypeCast.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/double.kt b/compiler/testData/codegen/ieee754/double.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/double.kt rename to compiler/testData/codegen/ieee754/double.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/explicitCompareCall.kt b/compiler/testData/codegen/ieee754/explicitCompareCall.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/explicitCompareCall.kt rename to compiler/testData/codegen/ieee754/explicitCompareCall.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/explicitEqualsCall.kt b/compiler/testData/codegen/ieee754/explicitEqualsCall.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/explicitEqualsCall.kt rename to compiler/testData/codegen/ieee754/explicitEqualsCall.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/float.kt b/compiler/testData/codegen/ieee754/float.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/float.kt rename to compiler/testData/codegen/ieee754/float.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/generic.kt b/compiler/testData/codegen/ieee754/generic.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/generic.kt rename to compiler/testData/codegen/ieee754/generic.kt diff --git a/compiler/testData/codegen/boxAgainstJava/ieee754/nullableAnyToReal.kt b/compiler/testData/codegen/ieee754/nullableAnyToReal.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/ieee754/nullableAnyToReal.kt rename to compiler/testData/codegen/ieee754/nullableAnyToReal.kt diff --git a/compiler/testData/codegen/boxAgainstJava/inline/kt19910.kt b/compiler/testData/codegen/inline/kt19910.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/inline/kt19910.kt rename to compiler/testData/codegen/inline/kt19910.kt diff --git a/compiler/testData/codegen/boxAgainstJava/innerClass/kt3532.kt b/compiler/testData/codegen/innerClass/kt3532.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/innerClass/kt3532.kt rename to compiler/testData/codegen/innerClass/kt3532.kt diff --git a/compiler/testData/codegen/boxAgainstJava/innerClass/kt3812.kt b/compiler/testData/codegen/innerClass/kt3812.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/innerClass/kt3812.kt rename to compiler/testData/codegen/innerClass/kt3812.kt diff --git a/compiler/testData/codegen/boxAgainstJava/innerClass/kt4036.kt b/compiler/testData/codegen/innerClass/kt4036.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/innerClass/kt4036.kt rename to compiler/testData/codegen/innerClass/kt4036.kt diff --git a/compiler/testData/codegen/boxAgainstJava/interfaces/defaultMethod.kt b/compiler/testData/codegen/interfaces/defaultMethod.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/interfaces/defaultMethod.kt rename to compiler/testData/codegen/interfaces/defaultMethod.kt diff --git a/compiler/testData/codegen/boxAgainstJava/interfaces/inheritJavaInterface.kt b/compiler/testData/codegen/interfaces/inheritJavaInterface.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/interfaces/inheritJavaInterface.kt rename to compiler/testData/codegen/interfaces/inheritJavaInterface.kt diff --git a/compiler/testData/codegen/boxAgainstJava/multiplatform/annotationsViaActualTypeAliasFromBinary.kt b/compiler/testData/codegen/multiplatform/annotationsViaActualTypeAliasFromBinary.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/multiplatform/annotationsViaActualTypeAliasFromBinary.kt rename to compiler/testData/codegen/multiplatform/annotationsViaActualTypeAliasFromBinary.kt diff --git a/compiler/testData/codegen/boxAgainstJava/notNullAssertions/callAssertions.kt b/compiler/testData/codegen/notNullAssertions/callAssertions.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/notNullAssertions/callAssertions.kt rename to compiler/testData/codegen/notNullAssertions/callAssertions.kt diff --git a/compiler/testData/codegen/boxAgainstJava/notNullAssertions/delegation.kt b/compiler/testData/codegen/notNullAssertions/delegation.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/notNullAssertions/delegation.kt rename to compiler/testData/codegen/notNullAssertions/delegation.kt diff --git a/compiler/testData/codegen/boxAgainstJava/notNullAssertions/doGenerateParamAssertions.kt b/compiler/testData/codegen/notNullAssertions/doGenerateParamAssertions.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/notNullAssertions/doGenerateParamAssertions.kt rename to compiler/testData/codegen/notNullAssertions/doGenerateParamAssertions.kt diff --git a/compiler/testData/codegen/boxAgainstJava/notNullAssertions/noCallAssertions.kt b/compiler/testData/codegen/notNullAssertions/noCallAssertions.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/notNullAssertions/noCallAssertions.kt rename to compiler/testData/codegen/notNullAssertions/noCallAssertions.kt diff --git a/compiler/testData/codegen/boxAgainstJava/notNullAssertions/rightElvisOperand.kt b/compiler/testData/codegen/notNullAssertions/rightElvisOperand.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/notNullAssertions/rightElvisOperand.kt rename to compiler/testData/codegen/notNullAssertions/rightElvisOperand.kt diff --git a/compiler/testData/codegen/boxAgainstJava/oldLanguageVersions/ieee754/explicitEqualsCallNull.kt b/compiler/testData/codegen/oldLanguageVersions/ieee754/explicitEqualsCallNull.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/oldLanguageVersions/ieee754/explicitEqualsCallNull.kt rename to compiler/testData/codegen/oldLanguageVersions/ieee754/explicitEqualsCallNull.kt diff --git a/compiler/testData/codegen/boxAgainstJava/platformTypes/genericUnit.kt b/compiler/testData/codegen/platformTypes/genericUnit.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/platformTypes/genericUnit.kt rename to compiler/testData/codegen/platformTypes/genericUnit.kt diff --git a/compiler/testData/codegen/boxAgainstJava/platformTypes/kt14989.kt b/compiler/testData/codegen/platformTypes/kt14989.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/platformTypes/kt14989.kt rename to compiler/testData/codegen/platformTypes/kt14989.kt diff --git a/compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapFull.kt b/compiler/testData/codegen/platformTypes/specializedMapFull.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapFull.kt rename to compiler/testData/codegen/platformTypes/specializedMapFull.kt diff --git a/compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapPut.kt b/compiler/testData/codegen/platformTypes/specializedMapPut.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapPut.kt rename to compiler/testData/codegen/platformTypes/specializedMapPut.kt diff --git a/compiler/testData/codegen/boxAgainstJava/property/fieldAccessFromExtensionInTraitImpl.kt b/compiler/testData/codegen/property/fieldAccessFromExtensionInTraitImpl.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/property/fieldAccessFromExtensionInTraitImpl.kt rename to compiler/testData/codegen/property/fieldAccessFromExtensionInTraitImpl.kt diff --git a/compiler/testData/codegen/boxAgainstJava/property/fieldAccessViaSubclass.kt b/compiler/testData/codegen/property/fieldAccessViaSubclass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/property/fieldAccessViaSubclass.kt rename to compiler/testData/codegen/property/fieldAccessViaSubclass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/property/referenceToJavaFieldViaBridge.kt b/compiler/testData/codegen/property/referenceToJavaFieldViaBridge.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/property/referenceToJavaFieldViaBridge.kt rename to compiler/testData/codegen/property/referenceToJavaFieldViaBridge.kt diff --git a/compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16528.kt b/compiler/testData/codegen/recursiveRawTypes/kt16528.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16528.kt rename to compiler/testData/codegen/recursiveRawTypes/kt16528.kt diff --git a/compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16639.kt b/compiler/testData/codegen/recursiveRawTypes/kt16639.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16639.kt rename to compiler/testData/codegen/recursiveRawTypes/kt16639.kt diff --git a/compiler/testData/codegen/boxAgainstJava/reflection/classLiterals/javaClassLiteral.kt b/compiler/testData/codegen/reflection/classLiterals/javaClassLiteral.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/reflection/classLiterals/javaClassLiteral.kt rename to compiler/testData/codegen/reflection/classLiterals/javaClassLiteral.kt diff --git a/compiler/testData/codegen/boxAgainstJava/reflection/mapping/jClass2kClass.kt b/compiler/testData/codegen/reflection/mapping/jClass2kClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/reflection/mapping/jClass2kClass.kt rename to compiler/testData/codegen/reflection/mapping/jClass2kClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaConstructor.kt b/compiler/testData/codegen/reflection/mapping/javaConstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaConstructor.kt rename to compiler/testData/codegen/reflection/mapping/javaConstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaFields.kt b/compiler/testData/codegen/reflection/mapping/javaFields.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaFields.kt rename to compiler/testData/codegen/reflection/mapping/javaFields.kt diff --git a/compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaMethods.kt b/compiler/testData/codegen/reflection/mapping/javaMethods.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaMethods.kt rename to compiler/testData/codegen/reflection/mapping/javaMethods.kt diff --git a/compiler/testData/codegen/boxAgainstJava/reflection/properties/equalsHashCodeToString.kt b/compiler/testData/codegen/reflection/properties/equalsHashCodeToString.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/reflection/properties/equalsHashCodeToString.kt rename to compiler/testData/codegen/reflection/properties/equalsHashCodeToString.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverridden.kt b/compiler/testData/codegen/sam/adapters/bridgesForOverridden.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverridden.kt rename to compiler/testData/codegen/sam/adapters/bridgesForOverridden.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverriddenComplex.kt b/compiler/testData/codegen/sam/adapters/bridgesForOverriddenComplex.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverriddenComplex.kt rename to compiler/testData/codegen/sam/adapters/bridgesForOverriddenComplex.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/callAbstractAdapter.kt b/compiler/testData/codegen/sam/adapters/callAbstractAdapter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/callAbstractAdapter.kt rename to compiler/testData/codegen/sam/adapters/callAbstractAdapter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/comparator.kt b/compiler/testData/codegen/sam/adapters/comparator.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/comparator.kt rename to compiler/testData/codegen/sam/adapters/comparator.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/constructor.kt b/compiler/testData/codegen/sam/adapters/constructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/constructor.kt rename to compiler/testData/codegen/sam/adapters/constructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.kt b/compiler/testData/codegen/sam/adapters/doubleLongParameters.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.kt rename to compiler/testData/codegen/sam/adapters/doubleLongParameters.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/fileFilter.kt b/compiler/testData/codegen/sam/adapters/fileFilter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/fileFilter.kt rename to compiler/testData/codegen/sam/adapters/fileFilter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/genericSignature.kt b/compiler/testData/codegen/sam/adapters/genericSignature.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/genericSignature.kt rename to compiler/testData/codegen/sam/adapters/genericSignature.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/implementAdapter.kt b/compiler/testData/codegen/sam/adapters/implementAdapter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/implementAdapter.kt rename to compiler/testData/codegen/sam/adapters/implementAdapter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedInKotlin.kt b/compiler/testData/codegen/sam/adapters/inheritedInKotlin.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedInKotlin.kt rename to compiler/testData/codegen/sam/adapters/inheritedInKotlin.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedOverriddenAdapter.kt b/compiler/testData/codegen/sam/adapters/inheritedOverriddenAdapter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedOverriddenAdapter.kt rename to compiler/testData/codegen/sam/adapters/inheritedOverriddenAdapter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedSimple.kt b/compiler/testData/codegen/sam/adapters/inheritedSimple.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedSimple.kt rename to compiler/testData/codegen/sam/adapters/inheritedSimple.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/localClass.kt b/compiler/testData/codegen/sam/adapters/localClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/localClass.kt rename to compiler/testData/codegen/sam/adapters/localClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructor.kt b/compiler/testData/codegen/sam/adapters/localObjectConstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructor.kt rename to compiler/testData/codegen/sam/adapters/localObjectConstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructorWithFnValue.kt b/compiler/testData/codegen/sam/adapters/localObjectConstructorWithFnValue.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructorWithFnValue.kt rename to compiler/testData/codegen/sam/adapters/localObjectConstructorWithFnValue.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralAndLiteralRunnable.kt b/compiler/testData/codegen/sam/adapters/nonLiteralAndLiteralRunnable.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralAndLiteralRunnable.kt rename to compiler/testData/codegen/sam/adapters/nonLiteralAndLiteralRunnable.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralComparator.kt b/compiler/testData/codegen/sam/adapters/nonLiteralComparator.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralComparator.kt rename to compiler/testData/codegen/sam/adapters/nonLiteralComparator.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralInConstructor.kt b/compiler/testData/codegen/sam/adapters/nonLiteralInConstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralInConstructor.kt rename to compiler/testData/codegen/sam/adapters/nonLiteralInConstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralNull.kt b/compiler/testData/codegen/sam/adapters/nonLiteralNull.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralNull.kt rename to compiler/testData/codegen/sam/adapters/nonLiteralNull.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralRunnable.kt b/compiler/testData/codegen/sam/adapters/nonLiteralRunnable.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralRunnable.kt rename to compiler/testData/codegen/sam/adapters/nonLiteralRunnable.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentPure.kt b/compiler/testData/codegen/sam/adapters/operators/augmentedAssignmentPure.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentPure.kt rename to compiler/testData/codegen/sam/adapters/operators/augmentedAssignmentPure.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt b/compiler/testData/codegen/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt rename to compiler/testData/codegen/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/binary.kt b/compiler/testData/codegen/sam/adapters/operators/binary.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/binary.kt rename to compiler/testData/codegen/sam/adapters/operators/binary.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/compareTo.kt b/compiler/testData/codegen/sam/adapters/operators/compareTo.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/compareTo.kt rename to compiler/testData/codegen/sam/adapters/operators/compareTo.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/contains.kt b/compiler/testData/codegen/sam/adapters/operators/contains.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/contains.kt rename to compiler/testData/codegen/sam/adapters/operators/contains.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/get.kt b/compiler/testData/codegen/sam/adapters/operators/get.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/get.kt rename to compiler/testData/codegen/sam/adapters/operators/get.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/invoke.kt b/compiler/testData/codegen/sam/adapters/operators/invoke.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/invoke.kt rename to compiler/testData/codegen/sam/adapters/operators/invoke.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/legacyModOperator.kt b/compiler/testData/codegen/sam/adapters/operators/legacyModOperator.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/legacyModOperator.kt rename to compiler/testData/codegen/sam/adapters/operators/legacyModOperator.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiGetSet.kt b/compiler/testData/codegen/sam/adapters/operators/multiGetSet.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiGetSet.kt rename to compiler/testData/codegen/sam/adapters/operators/multiGetSet.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiInvoke.kt b/compiler/testData/codegen/sam/adapters/operators/multiInvoke.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiInvoke.kt rename to compiler/testData/codegen/sam/adapters/operators/multiInvoke.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/set.kt b/compiler/testData/codegen/sam/adapters/operators/set.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/set.kt rename to compiler/testData/codegen/sam/adapters/operators/set.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/protectedFromBase.kt b/compiler/testData/codegen/sam/adapters/protectedFromBase.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/protectedFromBase.kt rename to compiler/testData/codegen/sam/adapters/protectedFromBase.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/severalSamParameters.kt b/compiler/testData/codegen/sam/adapters/severalSamParameters.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/severalSamParameters.kt rename to compiler/testData/codegen/sam/adapters/severalSamParameters.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/simplest.kt b/compiler/testData/codegen/sam/adapters/simplest.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/simplest.kt rename to compiler/testData/codegen/sam/adapters/simplest.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/superInSecondaryConstructor.kt b/compiler/testData/codegen/sam/adapters/superInSecondaryConstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/superInSecondaryConstructor.kt rename to compiler/testData/codegen/sam/adapters/superInSecondaryConstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructor.kt b/compiler/testData/codegen/sam/adapters/superconstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructor.kt rename to compiler/testData/codegen/sam/adapters/superconstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructorWithClosure.kt b/compiler/testData/codegen/sam/adapters/superconstructorWithClosure.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructorWithClosure.kt rename to compiler/testData/codegen/sam/adapters/superconstructorWithClosure.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfClass.kt b/compiler/testData/codegen/sam/adapters/typeParameterOfClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfClass.kt rename to compiler/testData/codegen/sam/adapters/typeParameterOfClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfMethod.kt b/compiler/testData/codegen/sam/adapters/typeParameterOfMethod.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfMethod.kt rename to compiler/testData/codegen/sam/adapters/typeParameterOfMethod.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfOuterClass.kt b/compiler/testData/codegen/sam/adapters/typeParameterOfOuterClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfOuterClass.kt rename to compiler/testData/codegen/sam/adapters/typeParameterOfOuterClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/differentFqNames.kt b/compiler/testData/codegen/sam/differentFqNames.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/differentFqNames.kt rename to compiler/testData/codegen/sam/differentFqNames.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/kt11519.kt b/compiler/testData/codegen/sam/kt11519.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/kt11519.kt rename to compiler/testData/codegen/sam/kt11519.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/kt11519Constructor.kt b/compiler/testData/codegen/sam/kt11519Constructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/kt11519Constructor.kt rename to compiler/testData/codegen/sam/kt11519Constructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/kt11696.kt b/compiler/testData/codegen/sam/kt11696.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/kt11696.kt rename to compiler/testData/codegen/sam/kt11696.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/kt4753.kt b/compiler/testData/codegen/sam/kt4753.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/kt4753.kt rename to compiler/testData/codegen/sam/kt4753.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/kt4753_2.kt b/compiler/testData/codegen/sam/kt4753_2.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/kt4753_2.kt rename to compiler/testData/codegen/sam/kt4753_2.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/propertyReference.kt b/compiler/testData/codegen/sam/propertyReference.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/propertyReference.kt rename to compiler/testData/codegen/sam/propertyReference.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt b/compiler/testData/codegen/sam/samConstructorGenericSignature.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt rename to compiler/testData/codegen/sam/samConstructorGenericSignature.kt diff --git a/compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt b/compiler/testData/codegen/sam/smartCastSamConversion.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt rename to compiler/testData/codegen/sam/smartCastSamConversion.kt diff --git a/compiler/testData/codegen/boxAgainstJava/specialBuiltins/charBuffer.kt b/compiler/testData/codegen/specialBuiltins/charBuffer.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/specialBuiltins/charBuffer.kt rename to compiler/testData/codegen/specialBuiltins/charBuffer.kt diff --git a/compiler/testData/codegen/boxAgainstJava/staticFun/classWithNestedEnum.kt b/compiler/testData/codegen/staticFun/classWithNestedEnum.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/staticFun/classWithNestedEnum.kt rename to compiler/testData/codegen/staticFun/classWithNestedEnum.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.kt b/compiler/testData/codegen/syntheticExtensions/fromTwoBases.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.kt rename to compiler/testData/codegen/syntheticExtensions/fromTwoBases.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/getter.kt b/compiler/testData/codegen/syntheticExtensions/getter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/getter.kt rename to compiler/testData/codegen/syntheticExtensions/getter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/implicitReceiver.kt b/compiler/testData/codegen/syntheticExtensions/implicitReceiver.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/implicitReceiver.kt rename to compiler/testData/codegen/syntheticExtensions/implicitReceiver.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/overrideOnlyGetter.kt b/compiler/testData/codegen/syntheticExtensions/overrideOnlyGetter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/overrideOnlyGetter.kt rename to compiler/testData/codegen/syntheticExtensions/overrideOnlyGetter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/plusPlus.kt b/compiler/testData/codegen/syntheticExtensions/plusPlus.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/plusPlus.kt rename to compiler/testData/codegen/syntheticExtensions/plusPlus.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protected.kt b/compiler/testData/codegen/syntheticExtensions/protected.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protected.kt rename to compiler/testData/codegen/syntheticExtensions/protected.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protectedSetter.kt b/compiler/testData/codegen/syntheticExtensions/protectedSetter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protectedSetter.kt rename to compiler/testData/codegen/syntheticExtensions/protectedSetter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setter.kt b/compiler/testData/codegen/syntheticExtensions/setter.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setter.kt rename to compiler/testData/codegen/syntheticExtensions/setter.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid1.kt b/compiler/testData/codegen/syntheticExtensions/setterNonVoid1.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid1.kt rename to compiler/testData/codegen/syntheticExtensions/setterNonVoid1.kt diff --git a/compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid2.kt b/compiler/testData/codegen/syntheticExtensions/setterNonVoid2.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid2.kt rename to compiler/testData/codegen/syntheticExtensions/setterNonVoid2.kt diff --git a/compiler/testData/codegen/boxAgainstJava/throws/delegationAndThrows.kt b/compiler/testData/codegen/throws/delegationAndThrows.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/throws/delegationAndThrows.kt rename to compiler/testData/codegen/throws/delegationAndThrows.kt diff --git a/compiler/testData/codegen/boxAgainstJava/typealias/javaStaticMembersViaTypeAlias.kt b/compiler/testData/codegen/typealias/javaStaticMembersViaTypeAlias.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/typealias/javaStaticMembersViaTypeAlias.kt rename to compiler/testData/codegen/typealias/javaStaticMembersViaTypeAlias.kt diff --git a/compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride.kt b/compiler/testData/codegen/varargs/varargsOverride.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride.kt rename to compiler/testData/codegen/varargs/varargsOverride.kt diff --git a/compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride2.kt b/compiler/testData/codegen/varargs/varargsOverride2.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride2.kt rename to compiler/testData/codegen/varargs/varargsOverride2.kt diff --git a/compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride3.kt b/compiler/testData/codegen/varargs/varargsOverride3.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride3.kt rename to compiler/testData/codegen/varargs/varargsOverride3.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/package/kt2781.kt b/compiler/testData/codegen/visibility/package/kt2781.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/package/kt2781.kt rename to compiler/testData/codegen/visibility/package/kt2781.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/package/packageClass.kt b/compiler/testData/codegen/visibility/package/packageClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/package/packageClass.kt rename to compiler/testData/codegen/visibility/package/packageClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/package/packageFun.kt b/compiler/testData/codegen/visibility/package/packageFun.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/package/packageFun.kt rename to compiler/testData/codegen/visibility/package/packageFun.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/package/packageProperty.kt b/compiler/testData/codegen/visibility/package/packageProperty.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/package/packageProperty.kt rename to compiler/testData/codegen/visibility/package/packageProperty.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt b/compiler/testData/codegen/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedAccessor.kt b/compiler/testData/codegen/visibility/protectedAndPackage/protectedAccessor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedAccessor.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/protectedAccessor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedFunInPackage.kt b/compiler/testData/codegen/visibility/protectedAndPackage/protectedFunInPackage.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedFunInPackage.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/protectedFunInPackage.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackage.kt b/compiler/testData/codegen/visibility/protectedAndPackage/protectedPropertyInPackage.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackage.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/protectedPropertyInPackage.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt b/compiler/testData/codegen/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedStaticClass.kt b/compiler/testData/codegen/visibility/protectedAndPackage/protectedStaticClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedStaticClass.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/protectedStaticClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperField.kt b/compiler/testData/codegen/visibility/protectedAndPackage/protectedSuperField.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperField.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/protectedSuperField.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperMethod.kt b/compiler/testData/codegen/visibility/protectedAndPackage/protectedSuperMethod.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperMethod.kt rename to compiler/testData/codegen/visibility/protectedAndPackage/protectedSuperMethod.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funCallInConstructor.kt b/compiler/testData/codegen/visibility/protectedStatic/funCallInConstructor.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funCallInConstructor.kt rename to compiler/testData/codegen/visibility/protectedStatic/funCallInConstructor.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funClassObject.kt b/compiler/testData/codegen/visibility/protectedStatic/funClassObject.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funClassObject.kt rename to compiler/testData/codegen/visibility/protectedStatic/funClassObject.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funGenericClass.kt b/compiler/testData/codegen/visibility/protectedStatic/funGenericClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funGenericClass.kt rename to compiler/testData/codegen/visibility/protectedStatic/funGenericClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass.kt b/compiler/testData/codegen/visibility/protectedStatic/funNestedStaticClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass.kt rename to compiler/testData/codegen/visibility/protectedStatic/funNestedStaticClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass2.kt b/compiler/testData/codegen/visibility/protectedStatic/funNestedStaticClass2.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass2.kt rename to compiler/testData/codegen/visibility/protectedStatic/funNestedStaticClass2.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticGenericClass.kt b/compiler/testData/codegen/visibility/protectedStatic/funNestedStaticGenericClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticGenericClass.kt rename to compiler/testData/codegen/visibility/protectedStatic/funNestedStaticGenericClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNotDirectSuperClass.kt b/compiler/testData/codegen/visibility/protectedStatic/funNotDirectSuperClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNotDirectSuperClass.kt rename to compiler/testData/codegen/visibility/protectedStatic/funNotDirectSuperClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funObject.kt b/compiler/testData/codegen/visibility/protectedStatic/funObject.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funObject.kt rename to compiler/testData/codegen/visibility/protectedStatic/funObject.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass.kt b/compiler/testData/codegen/visibility/protectedStatic/simpleClass.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass.kt rename to compiler/testData/codegen/visibility/protectedStatic/simpleClass.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass2.kt b/compiler/testData/codegen/visibility/protectedStatic/simpleClass2.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass2.kt rename to compiler/testData/codegen/visibility/protectedStatic/simpleClass2.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleFun.kt b/compiler/testData/codegen/visibility/protectedStatic/simpleFun.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleFun.kt rename to compiler/testData/codegen/visibility/protectedStatic/simpleFun.kt diff --git a/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleProperty.kt b/compiler/testData/codegen/visibility/protectedStatic/simpleProperty.kt similarity index 100% rename from compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleProperty.kt rename to compiler/testData/codegen/visibility/protectedStatic/simpleProperty.kt diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index 6bd5581c47a..3c1d18568d2 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -39137,1320 +39137,4 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava") - @TestDataPath("$PROJECT_ROOT") - public class BoxAgainstJava extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInBoxAgainstJava() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true, "oldLanguageVersions"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations") - @TestDataPath("$PROJECT_ROOT") - public class Annotations extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("divisionByZeroInJava.kt") - public void testDivisionByZeroInJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/divisionByZeroInJava.kt"); - } - - @Test - @TestMetadata("javaAnnotationArrayValueDefault.kt") - public void testJavaAnnotationArrayValueDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueDefault.kt"); - } - - @Test - @TestMetadata("javaAnnotationArrayValueNoDefault.kt") - public void testJavaAnnotationArrayValueNoDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueNoDefault.kt"); - } - - @Test - @TestMetadata("javaAnnotationCall.kt") - public void testJavaAnnotationCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationCall.kt"); - } - - @Test - @TestMetadata("javaAnnotationDefault.kt") - public void testJavaAnnotationDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationDefault.kt"); - } - - @Test - @TestMetadata("javaNegativePropertyAsAnnotationParameter.kt") - public void testJavaNegativePropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaNegativePropertyAsAnnotationParameter.kt"); - } - - @Test - @TestMetadata("javaPropertyAsAnnotationParameter.kt") - public void testJavaPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyAsAnnotationParameter.kt"); - } - - @Test - @TestMetadata("javaPropertyWithIntInitializer.kt") - public void testJavaPropertyWithIntInitializer() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyWithIntInitializer.kt"); - } - - @Test - @TestMetadata("retentionInJava.kt") - public void testRetentionInJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/retentionInJava.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping") - @TestDataPath("$PROJECT_ROOT") - public class KClassMapping extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInKClassMapping() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("arrayClassParameter.kt") - public void testArrayClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameter.kt"); - } - - @Test - @TestMetadata("arrayClassParameterOnJavaClass.kt") - public void testArrayClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt"); - } - - @Test - @TestMetadata("classParameter.kt") - public void testClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameter.kt"); - } - - @Test - @TestMetadata("classParameterOnJavaClass.kt") - public void testClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameterOnJavaClass.kt"); - } - - @Test - @TestMetadata("varargClassParameter.kt") - public void testVarargClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameter.kt"); - } - - @Test - @TestMetadata("varargClassParameterOnJavaClass.kt") - public void testVarargClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameterOnJavaClass.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations") - @TestDataPath("$PROJECT_ROOT") - public class TypeAnnotations extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("implicitReturn.kt") - public void testImplicitReturn() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations/implicitReturn.kt"); - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/callableReference") - @TestDataPath("$PROJECT_ROOT") - public class CallableReference extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInCallableReference() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/constructor.kt"); - } - - @Test - @TestMetadata("kt16412.kt") - public void testKt16412() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/kt16412.kt"); - } - - @Test - @TestMetadata("publicFinalField.kt") - public void testPublicFinalField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/publicFinalField.kt"); - } - - @Test - @TestMetadata("publicMutableField.kt") - public void testPublicMutableField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/publicMutableField.kt"); - } - - @Test - @TestMetadata("staticMethod.kt") - public void testStaticMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/staticMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/constructor") - @TestDataPath("$PROJECT_ROOT") - public class Constructor extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInConstructor() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("genericConstructor.kt") - public void testGenericConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/constructor/genericConstructor.kt"); - } - - @Test - @TestMetadata("secondaryConstructor.kt") - public void testSecondaryConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/constructor/secondaryConstructor.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/delegation") - @TestDataPath("$PROJECT_ROOT") - public class Delegation extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("delegationAndInheritanceFromJava.kt") - public void testDelegationAndInheritanceFromJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/delegation/delegationAndInheritanceFromJava.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/enum") - @TestDataPath("$PROJECT_ROOT") - public class Enum extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInEnum() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("nameConflict.kt") - public void testNameConflict() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/nameConflict.kt"); - } - - @Test - @TestMetadata("simpleJavaEnum.kt") - public void testSimpleJavaEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnum.kt"); - } - - @Test - @TestMetadata("simpleJavaEnumWithFunction.kt") - public void testSimpleJavaEnumWithFunction() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithFunction.kt"); - } - - @Test - @TestMetadata("simpleJavaEnumWithStaticImport.kt") - public void testSimpleJavaEnumWithStaticImport() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithStaticImport.kt"); - } - - @Test - @TestMetadata("simpleJavaInnerEnum.kt") - public void testSimpleJavaInnerEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaInnerEnum.kt"); - } - - @Test - @TestMetadata("staticField.kt") - public void testStaticField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/staticField.kt"); - } - - @Test - @TestMetadata("staticMethod.kt") - public void testStaticMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/staticMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/functions") - @TestDataPath("$PROJECT_ROOT") - public class Functions extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInFunctions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/constructor.kt"); - } - - @Test - @TestMetadata("max.kt") - public void testMax() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/max.kt"); - } - - @Test - @TestMetadata("referencesStaticInnerClassMethod.kt") - public void testReferencesStaticInnerClassMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethod.kt"); - } - - @Test - @TestMetadata("referencesStaticInnerClassMethodL2.kt") - public void testReferencesStaticInnerClassMethodL2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethodL2.kt"); - } - - @Test - @TestMetadata("unrelatedUpperBounds.kt") - public void testUnrelatedUpperBounds() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/unrelatedUpperBounds.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/ieee754") - @TestDataPath("$PROJECT_ROOT") - public class Ieee754 extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInIeee754() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("anyToReal.kt") - public void testAnyToReal() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/anyToReal.kt"); - } - - @Test - @TestMetadata("comparableTypeCast.kt") - public void testComparableTypeCast() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/comparableTypeCast.kt"); - } - - @Test - @TestMetadata("double.kt") - public void testDouble() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/double.kt"); - } - - @Test - @TestMetadata("explicitCompareCall.kt") - public void testExplicitCompareCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/explicitCompareCall.kt"); - } - - @Test - @TestMetadata("explicitEqualsCall.kt") - public void testExplicitEqualsCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/explicitEqualsCall.kt"); - } - - @Test - @TestMetadata("float.kt") - public void testFloat() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/float.kt"); - } - - @Test - @TestMetadata("generic.kt") - public void testGeneric() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/generic.kt"); - } - - @Test - @TestMetadata("nullableAnyToReal.kt") - public void testNullableAnyToReal() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/nullableAnyToReal.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/inline") - @TestDataPath("$PROJECT_ROOT") - public class Inline extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInline() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("kt19910.kt") - public void testKt19910() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/inline/kt19910.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/innerClass") - @TestDataPath("$PROJECT_ROOT") - public class InnerClass extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInnerClass() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("kt3532.kt") - public void testKt3532() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt3532.kt"); - } - - @Test - @TestMetadata("kt3812.kt") - public void testKt3812() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt3812.kt"); - } - - @Test - @TestMetadata("kt4036.kt") - public void testKt4036() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt4036.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/interfaces") - @TestDataPath("$PROJECT_ROOT") - public class Interfaces extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInterfaces() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/interfaces"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("defaultMethod.kt") - public void testDefaultMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/interfaces/defaultMethod.kt"); - } - - @Test - @TestMetadata("inheritJavaInterface.kt") - public void testInheritJavaInterface() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/interfaces/inheritJavaInterface.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/multiplatform") - @TestDataPath("$PROJECT_ROOT") - public class Multiplatform extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInMultiplatform() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("annotationsViaActualTypeAliasFromBinary.kt") - public void testAnnotationsViaActualTypeAliasFromBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/multiplatform/annotationsViaActualTypeAliasFromBinary.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/notNullAssertions") - @TestDataPath("$PROJECT_ROOT") - public class NotNullAssertions extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInNotNullAssertions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("callAssertions.kt") - public void testCallAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/callAssertions.kt"); - } - - @Test - @TestMetadata("delegation.kt") - public void testDelegation() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/delegation.kt"); - } - - @Test - @TestMetadata("doGenerateParamAssertions.kt") - public void testDoGenerateParamAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/doGenerateParamAssertions.kt"); - } - - @Test - @TestMetadata("noCallAssertions.kt") - public void testNoCallAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/noCallAssertions.kt"); - } - - @Test - @TestMetadata("rightElvisOperand.kt") - public void testRightElvisOperand() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/rightElvisOperand.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/platformTypes") - @TestDataPath("$PROJECT_ROOT") - public class PlatformTypes extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInPlatformTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("genericUnit.kt") - public void testGenericUnit() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/genericUnit.kt"); - } - - @Test - @TestMetadata("kt14989.kt") - public void testKt14989() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/kt14989.kt"); - } - - @Test - @TestMetadata("specializedMapFull.kt") - public void testSpecializedMapFull() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapFull.kt"); - } - - @Test - @TestMetadata("specializedMapPut.kt") - public void testSpecializedMapPut() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapPut.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/property") - @TestDataPath("$PROJECT_ROOT") - public class Property extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProperty() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("fieldAccessFromExtensionInTraitImpl.kt") - public void testFieldAccessFromExtensionInTraitImpl() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/fieldAccessFromExtensionInTraitImpl.kt"); - } - - @Test - @TestMetadata("fieldAccessViaSubclass.kt") - public void testFieldAccessViaSubclass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/fieldAccessViaSubclass.kt"); - } - - @Test - @TestMetadata("referenceToJavaFieldViaBridge.kt") - public void testReferenceToJavaFieldViaBridge() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/referenceToJavaFieldViaBridge.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes") - @TestDataPath("$PROJECT_ROOT") - public class RecursiveRawTypes extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInRecursiveRawTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("kt16528.kt") - public void testKt16528() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16528.kt"); - } - - @Test - @TestMetadata("kt16639.kt") - public void testKt16639() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16639.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection") - @TestDataPath("$PROJECT_ROOT") - public class Reflection extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInReflection() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals") - @TestDataPath("$PROJECT_ROOT") - public class ClassLiterals extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInClassLiterals() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("javaClassLiteral.kt") - public void testJavaClassLiteral() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals/javaClassLiteral.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/mapping") - @TestDataPath("$PROJECT_ROOT") - public class Mapping extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInMapping() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/mapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("jClass2kClass.kt") - public void testJClass2kClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/jClass2kClass.kt"); - } - - @Test - @TestMetadata("javaConstructor.kt") - public void testJavaConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaConstructor.kt"); - } - - @Test - @TestMetadata("javaFields.kt") - public void testJavaFields() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaFields.kt"); - } - - @Test - @TestMetadata("javaMethods.kt") - public void testJavaMethods() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaMethods.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/properties") - @TestDataPath("$PROJECT_ROOT") - public class Properties extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProperties() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("equalsHashCodeToString.kt") - public void testEqualsHashCodeToString() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/properties/equalsHashCodeToString.kt"); - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam") - @TestDataPath("$PROJECT_ROOT") - public class Sam extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSam() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("differentFqNames.kt") - public void testDifferentFqNames() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/differentFqNames.kt"); - } - - @Test - @TestMetadata("kt11519.kt") - public void testKt11519() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11519.kt"); - } - - @Test - @TestMetadata("kt11519Constructor.kt") - public void testKt11519Constructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11519Constructor.kt"); - } - - @Test - @TestMetadata("kt11696.kt") - public void testKt11696() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11696.kt"); - } - - @Test - @TestMetadata("kt4753.kt") - public void testKt4753() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt4753.kt"); - } - - @Test - @TestMetadata("kt4753_2.kt") - public void testKt4753_2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt4753_2.kt"); - } - - @Test - @TestMetadata("propertyReference.kt") - public void testPropertyReference() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/propertyReference.kt"); - } - - @Test - @TestMetadata("samConstructorGenericSignature.kt") - public void testSamConstructorGenericSignature() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt"); - } - - @Test - @TestMetadata("smartCastSamConversion.kt") - public void testSmartCastSamConversion() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters") - @TestDataPath("$PROJECT_ROOT") - public class Adapters extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInAdapters() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam/adapters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("bridgesForOverridden.kt") - public void testBridgesForOverridden() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverridden.kt"); - } - - @Test - @TestMetadata("bridgesForOverriddenComplex.kt") - public void testBridgesForOverriddenComplex() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverriddenComplex.kt"); - } - - @Test - @TestMetadata("callAbstractAdapter.kt") - public void testCallAbstractAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/callAbstractAdapter.kt"); - } - - @Test - @TestMetadata("comparator.kt") - public void testComparator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/comparator.kt"); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/constructor.kt"); - } - - @Test - @TestMetadata("doubleLongParameters.kt") - public void testDoubleLongParameters() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.kt"); - } - - @Test - @TestMetadata("fileFilter.kt") - public void testFileFilter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/fileFilter.kt"); - } - - @Test - @TestMetadata("genericSignature.kt") - public void testGenericSignature() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/genericSignature.kt"); - } - - @Test - @TestMetadata("implementAdapter.kt") - public void testImplementAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/implementAdapter.kt"); - } - - @Test - @TestMetadata("inheritedInKotlin.kt") - public void testInheritedInKotlin() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedInKotlin.kt"); - } - - @Test - @TestMetadata("inheritedOverriddenAdapter.kt") - public void testInheritedOverriddenAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedOverriddenAdapter.kt"); - } - - @Test - @TestMetadata("inheritedSimple.kt") - public void testInheritedSimple() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedSimple.kt"); - } - - @Test - @TestMetadata("localClass.kt") - public void testLocalClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localClass.kt"); - } - - @Test - @TestMetadata("localObjectConstructor.kt") - public void testLocalObjectConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructor.kt"); - } - - @Test - @TestMetadata("localObjectConstructorWithFnValue.kt") - public void testLocalObjectConstructorWithFnValue() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructorWithFnValue.kt"); - } - - @Test - @TestMetadata("nonLiteralAndLiteralRunnable.kt") - public void testNonLiteralAndLiteralRunnable() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralAndLiteralRunnable.kt"); - } - - @Test - @TestMetadata("nonLiteralComparator.kt") - public void testNonLiteralComparator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralComparator.kt"); - } - - @Test - @TestMetadata("nonLiteralInConstructor.kt") - public void testNonLiteralInConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralInConstructor.kt"); - } - - @Test - @TestMetadata("nonLiteralNull.kt") - public void testNonLiteralNull() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralNull.kt"); - } - - @Test - @TestMetadata("nonLiteralRunnable.kt") - public void testNonLiteralRunnable() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralRunnable.kt"); - } - - @Test - @TestMetadata("protectedFromBase.kt") - public void testProtectedFromBase() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/protectedFromBase.kt"); - } - - @Test - @TestMetadata("severalSamParameters.kt") - public void testSeveralSamParameters() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/severalSamParameters.kt"); - } - - @Test - @TestMetadata("simplest.kt") - public void testSimplest() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/simplest.kt"); - } - - @Test - @TestMetadata("superInSecondaryConstructor.kt") - public void testSuperInSecondaryConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superInSecondaryConstructor.kt"); - } - - @Test - @TestMetadata("superconstructor.kt") - public void testSuperconstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructor.kt"); - } - - @Test - @TestMetadata("superconstructorWithClosure.kt") - public void testSuperconstructorWithClosure() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructorWithClosure.kt"); - } - - @Test - @TestMetadata("typeParameterOfClass.kt") - public void testTypeParameterOfClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfClass.kt"); - } - - @Test - @TestMetadata("typeParameterOfMethod.kt") - public void testTypeParameterOfMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfMethod.kt"); - } - - @Test - @TestMetadata("typeParameterOfOuterClass.kt") - public void testTypeParameterOfOuterClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfOuterClass.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators") - @TestDataPath("$PROJECT_ROOT") - public class Operators extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInOperators() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("augmentedAssignmentPure.kt") - public void testAugmentedAssignmentPure() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentPure.kt"); - } - - @Test - @TestMetadata("augmentedAssignmentViaSimpleBinary.kt") - public void testAugmentedAssignmentViaSimpleBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt"); - } - - @Test - @TestMetadata("binary.kt") - public void testBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/binary.kt"); - } - - @Test - @TestMetadata("compareTo.kt") - public void testCompareTo() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/compareTo.kt"); - } - - @Test - @TestMetadata("contains.kt") - public void testContains() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/contains.kt"); - } - - @Test - @TestMetadata("get.kt") - public void testGet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/get.kt"); - } - - @Test - @TestMetadata("invoke.kt") - public void testInvoke() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/invoke.kt"); - } - - @Test - @TestMetadata("legacyModOperator.kt") - public void testLegacyModOperator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/legacyModOperator.kt"); - } - - @Test - @TestMetadata("multiGetSet.kt") - public void testMultiGetSet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiGetSet.kt"); - } - - @Test - @TestMetadata("multiInvoke.kt") - public void testMultiInvoke() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiInvoke.kt"); - } - - @Test - @TestMetadata("set.kt") - public void testSet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/set.kt"); - } - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/specialBuiltins") - @TestDataPath("$PROJECT_ROOT") - public class SpecialBuiltins extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSpecialBuiltins() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/specialBuiltins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("charBuffer.kt") - public void testCharBuffer() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/specialBuiltins/charBuffer.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/staticFun") - @TestDataPath("$PROJECT_ROOT") - public class StaticFun extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInStaticFun() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/staticFun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("classWithNestedEnum.kt") - public void testClassWithNestedEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/staticFun/classWithNestedEnum.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/syntheticExtensions") - @TestDataPath("$PROJECT_ROOT") - public class SyntheticExtensions extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSyntheticExtensions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("fromTwoBases.kt") - public void testFromTwoBases() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.kt"); - } - - @Test - @TestMetadata("getter.kt") - public void testGetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/getter.kt"); - } - - @Test - @TestMetadata("implicitReceiver.kt") - public void testImplicitReceiver() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/implicitReceiver.kt"); - } - - @Test - @TestMetadata("overrideOnlyGetter.kt") - public void testOverrideOnlyGetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/overrideOnlyGetter.kt"); - } - - @Test - @TestMetadata("plusPlus.kt") - public void testPlusPlus() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/plusPlus.kt"); - } - - @Test - @TestMetadata("protected.kt") - public void testProtected() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protected.kt"); - } - - @Test - @TestMetadata("protectedSetter.kt") - public void testProtectedSetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protectedSetter.kt"); - } - - @Test - @TestMetadata("setter.kt") - public void testSetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setter.kt"); - } - - @Test - @TestMetadata("setterNonVoid1.kt") - public void testSetterNonVoid1() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid1.kt"); - } - - @Test - @TestMetadata("setterNonVoid2.kt") - public void testSetterNonVoid2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid2.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/throws") - @TestDataPath("$PROJECT_ROOT") - public class Throws extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInThrows() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/throws"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("delegationAndThrows.kt") - public void testDelegationAndThrows() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/throws/delegationAndThrows.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/typealias") - @TestDataPath("$PROJECT_ROOT") - public class Typealias extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInTypealias() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("javaStaticMembersViaTypeAlias.kt") - public void testJavaStaticMembersViaTypeAlias() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/typealias/javaStaticMembersViaTypeAlias.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/varargs") - @TestDataPath("$PROJECT_ROOT") - public class Varargs extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInVarargs() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("varargsOverride.kt") - public void testVarargsOverride() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride.kt"); - } - - @Test - @TestMetadata("varargsOverride2.kt") - public void testVarargsOverride2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride2.kt"); - } - - @Test - @TestMetadata("varargsOverride3.kt") - public void testVarargsOverride3() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride3.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility") - @TestDataPath("$PROJECT_ROOT") - public class Visibility extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInVisibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/package") - @TestDataPath("$PROJECT_ROOT") - public class Package extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInPackage() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("kt2781.kt") - public void testKt2781() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/kt2781.kt"); - } - - @Test - @TestMetadata("packageClass.kt") - public void testPackageClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageClass.kt"); - } - - @Test - @TestMetadata("packageFun.kt") - public void testPackageFun() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageFun.kt"); - } - - @Test - @TestMetadata("packageProperty.kt") - public void testPackageProperty() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageProperty.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage") - @TestDataPath("$PROJECT_ROOT") - public class ProtectedAndPackage extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProtectedAndPackage() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("overrideProtectedFunInPackage.kt") - public void testOverrideProtectedFunInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt"); - } - - @Test - @TestMetadata("protectedAccessor.kt") - public void testProtectedAccessor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedAccessor.kt"); - } - - @Test - @TestMetadata("protectedFunInPackage.kt") - public void testProtectedFunInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedFunInPackage.kt"); - } - - @Test - @TestMetadata("protectedPropertyInPackage.kt") - public void testProtectedPropertyInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackage.kt"); - } - - @Test - @TestMetadata("protectedPropertyInPackageFromCrossinline.kt") - public void testProtectedPropertyInPackageFromCrossinline() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt"); - } - - @Test - @TestMetadata("protectedStaticClass.kt") - public void testProtectedStaticClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedStaticClass.kt"); - } - - @Test - @TestMetadata("protectedSuperField.kt") - public void testProtectedSuperField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperField.kt"); - } - - @Test - @TestMetadata("protectedSuperMethod.kt") - public void testProtectedSuperMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic") - @TestDataPath("$PROJECT_ROOT") - public class ProtectedStatic extends AbstractBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProtectedStatic() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("funCallInConstructor.kt") - public void testFunCallInConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funCallInConstructor.kt"); - } - - @Test - @TestMetadata("funClassObject.kt") - public void testFunClassObject() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funClassObject.kt"); - } - - @Test - @TestMetadata("funGenericClass.kt") - public void testFunGenericClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funGenericClass.kt"); - } - - @Test - @TestMetadata("funNestedStaticClass.kt") - public void testFunNestedStaticClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass.kt"); - } - - @Test - @TestMetadata("funNestedStaticClass2.kt") - public void testFunNestedStaticClass2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass2.kt"); - } - - @Test - @TestMetadata("funNestedStaticGenericClass.kt") - public void testFunNestedStaticGenericClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticGenericClass.kt"); - } - - @Test - @TestMetadata("funNotDirectSuperClass.kt") - public void testFunNotDirectSuperClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNotDirectSuperClass.kt"); - } - - @Test - @TestMetadata("funObject.kt") - public void testFunObject() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funObject.kt"); - } - - @Test - @TestMetadata("simpleClass.kt") - public void testSimpleClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass.kt"); - } - - @Test - @TestMetadata("simpleClass2.kt") - public void testSimpleClass2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass2.kt"); - } - - @Test - @TestMetadata("simpleFun.kt") - public void testSimpleFun() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleFun.kt"); - } - - @Test - @TestMetadata("simpleProperty.kt") - public void testSimpleProperty() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleProperty.kt"); - } - } - } - } } diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index 37034ab3f0f..36a03e68a2c 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -38937,1320 +38937,4 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava") - @TestDataPath("$PROJECT_ROOT") - public class BoxAgainstJava extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInBoxAgainstJava() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "oldLanguageVersions"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations") - @TestDataPath("$PROJECT_ROOT") - public class Annotations extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("divisionByZeroInJava.kt") - public void testDivisionByZeroInJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/divisionByZeroInJava.kt"); - } - - @Test - @TestMetadata("javaAnnotationArrayValueDefault.kt") - public void testJavaAnnotationArrayValueDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueDefault.kt"); - } - - @Test - @TestMetadata("javaAnnotationArrayValueNoDefault.kt") - public void testJavaAnnotationArrayValueNoDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationArrayValueNoDefault.kt"); - } - - @Test - @TestMetadata("javaAnnotationCall.kt") - public void testJavaAnnotationCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationCall.kt"); - } - - @Test - @TestMetadata("javaAnnotationDefault.kt") - public void testJavaAnnotationDefault() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaAnnotationDefault.kt"); - } - - @Test - @TestMetadata("javaNegativePropertyAsAnnotationParameter.kt") - public void testJavaNegativePropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaNegativePropertyAsAnnotationParameter.kt"); - } - - @Test - @TestMetadata("javaPropertyAsAnnotationParameter.kt") - public void testJavaPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyAsAnnotationParameter.kt"); - } - - @Test - @TestMetadata("javaPropertyWithIntInitializer.kt") - public void testJavaPropertyWithIntInitializer() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/javaPropertyWithIntInitializer.kt"); - } - - @Test - @TestMetadata("retentionInJava.kt") - public void testRetentionInJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/retentionInJava.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping") - @TestDataPath("$PROJECT_ROOT") - public class KClassMapping extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInKClassMapping() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("arrayClassParameter.kt") - public void testArrayClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameter.kt"); - } - - @Test - @TestMetadata("arrayClassParameterOnJavaClass.kt") - public void testArrayClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt"); - } - - @Test - @TestMetadata("classParameter.kt") - public void testClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameter.kt"); - } - - @Test - @TestMetadata("classParameterOnJavaClass.kt") - public void testClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/classParameterOnJavaClass.kt"); - } - - @Test - @TestMetadata("varargClassParameter.kt") - public void testVarargClassParameter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameter.kt"); - } - - @Test - @TestMetadata("varargClassParameterOnJavaClass.kt") - public void testVarargClassParameterOnJavaClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/kClassMapping/varargClassParameterOnJavaClass.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations") - @TestDataPath("$PROJECT_ROOT") - public class TypeAnnotations extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("implicitReturn.kt") - public void testImplicitReturn() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/annotations/typeAnnotations/implicitReturn.kt"); - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/callableReference") - @TestDataPath("$PROJECT_ROOT") - public class CallableReference extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInCallableReference() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/constructor.kt"); - } - - @Test - @TestMetadata("kt16412.kt") - public void testKt16412() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/kt16412.kt"); - } - - @Test - @TestMetadata("publicFinalField.kt") - public void testPublicFinalField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/publicFinalField.kt"); - } - - @Test - @TestMetadata("publicMutableField.kt") - public void testPublicMutableField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/publicMutableField.kt"); - } - - @Test - @TestMetadata("staticMethod.kt") - public void testStaticMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/callableReference/staticMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/constructor") - @TestDataPath("$PROJECT_ROOT") - public class Constructor extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInConstructor() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("genericConstructor.kt") - public void testGenericConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/constructor/genericConstructor.kt"); - } - - @Test - @TestMetadata("secondaryConstructor.kt") - public void testSecondaryConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/constructor/secondaryConstructor.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/delegation") - @TestDataPath("$PROJECT_ROOT") - public class Delegation extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("delegationAndInheritanceFromJava.kt") - public void testDelegationAndInheritanceFromJava() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/delegation/delegationAndInheritanceFromJava.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/enum") - @TestDataPath("$PROJECT_ROOT") - public class Enum extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInEnum() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("nameConflict.kt") - public void testNameConflict() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/nameConflict.kt"); - } - - @Test - @TestMetadata("simpleJavaEnum.kt") - public void testSimpleJavaEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnum.kt"); - } - - @Test - @TestMetadata("simpleJavaEnumWithFunction.kt") - public void testSimpleJavaEnumWithFunction() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithFunction.kt"); - } - - @Test - @TestMetadata("simpleJavaEnumWithStaticImport.kt") - public void testSimpleJavaEnumWithStaticImport() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithStaticImport.kt"); - } - - @Test - @TestMetadata("simpleJavaInnerEnum.kt") - public void testSimpleJavaInnerEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/simpleJavaInnerEnum.kt"); - } - - @Test - @TestMetadata("staticField.kt") - public void testStaticField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/staticField.kt"); - } - - @Test - @TestMetadata("staticMethod.kt") - public void testStaticMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/enum/staticMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/functions") - @TestDataPath("$PROJECT_ROOT") - public class Functions extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInFunctions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/constructor.kt"); - } - - @Test - @TestMetadata("max.kt") - public void testMax() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/max.kt"); - } - - @Test - @TestMetadata("referencesStaticInnerClassMethod.kt") - public void testReferencesStaticInnerClassMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethod.kt"); - } - - @Test - @TestMetadata("referencesStaticInnerClassMethodL2.kt") - public void testReferencesStaticInnerClassMethodL2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/referencesStaticInnerClassMethodL2.kt"); - } - - @Test - @TestMetadata("unrelatedUpperBounds.kt") - public void testUnrelatedUpperBounds() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/functions/unrelatedUpperBounds.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/ieee754") - @TestDataPath("$PROJECT_ROOT") - public class Ieee754 extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInIeee754() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("anyToReal.kt") - public void testAnyToReal() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/anyToReal.kt"); - } - - @Test - @TestMetadata("comparableTypeCast.kt") - public void testComparableTypeCast() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/comparableTypeCast.kt"); - } - - @Test - @TestMetadata("double.kt") - public void testDouble() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/double.kt"); - } - - @Test - @TestMetadata("explicitCompareCall.kt") - public void testExplicitCompareCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/explicitCompareCall.kt"); - } - - @Test - @TestMetadata("explicitEqualsCall.kt") - public void testExplicitEqualsCall() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/explicitEqualsCall.kt"); - } - - @Test - @TestMetadata("float.kt") - public void testFloat() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/float.kt"); - } - - @Test - @TestMetadata("generic.kt") - public void testGeneric() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/generic.kt"); - } - - @Test - @TestMetadata("nullableAnyToReal.kt") - public void testNullableAnyToReal() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/ieee754/nullableAnyToReal.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/inline") - @TestDataPath("$PROJECT_ROOT") - public class Inline extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInline() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt19910.kt") - public void testKt19910() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/inline/kt19910.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/innerClass") - @TestDataPath("$PROJECT_ROOT") - public class InnerClass extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInnerClass() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt3532.kt") - public void testKt3532() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt3532.kt"); - } - - @Test - @TestMetadata("kt3812.kt") - public void testKt3812() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt3812.kt"); - } - - @Test - @TestMetadata("kt4036.kt") - public void testKt4036() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/innerClass/kt4036.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/interfaces") - @TestDataPath("$PROJECT_ROOT") - public class Interfaces extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInInterfaces() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/interfaces"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("defaultMethod.kt") - public void testDefaultMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/interfaces/defaultMethod.kt"); - } - - @Test - @TestMetadata("inheritJavaInterface.kt") - public void testInheritJavaInterface() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/interfaces/inheritJavaInterface.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/multiplatform") - @TestDataPath("$PROJECT_ROOT") - public class Multiplatform extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInMultiplatform() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("annotationsViaActualTypeAliasFromBinary.kt") - public void testAnnotationsViaActualTypeAliasFromBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/multiplatform/annotationsViaActualTypeAliasFromBinary.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/notNullAssertions") - @TestDataPath("$PROJECT_ROOT") - public class NotNullAssertions extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInNotNullAssertions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("callAssertions.kt") - public void testCallAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/callAssertions.kt"); - } - - @Test - @TestMetadata("delegation.kt") - public void testDelegation() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/delegation.kt"); - } - - @Test - @TestMetadata("doGenerateParamAssertions.kt") - public void testDoGenerateParamAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/doGenerateParamAssertions.kt"); - } - - @Test - @TestMetadata("noCallAssertions.kt") - public void testNoCallAssertions() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/noCallAssertions.kt"); - } - - @Test - @TestMetadata("rightElvisOperand.kt") - public void testRightElvisOperand() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/notNullAssertions/rightElvisOperand.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/platformTypes") - @TestDataPath("$PROJECT_ROOT") - public class PlatformTypes extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInPlatformTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("genericUnit.kt") - public void testGenericUnit() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/genericUnit.kt"); - } - - @Test - @TestMetadata("kt14989.kt") - public void testKt14989() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/kt14989.kt"); - } - - @Test - @TestMetadata("specializedMapFull.kt") - public void testSpecializedMapFull() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapFull.kt"); - } - - @Test - @TestMetadata("specializedMapPut.kt") - public void testSpecializedMapPut() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/platformTypes/specializedMapPut.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/property") - @TestDataPath("$PROJECT_ROOT") - public class Property extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProperty() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("fieldAccessFromExtensionInTraitImpl.kt") - public void testFieldAccessFromExtensionInTraitImpl() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/fieldAccessFromExtensionInTraitImpl.kt"); - } - - @Test - @TestMetadata("fieldAccessViaSubclass.kt") - public void testFieldAccessViaSubclass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/fieldAccessViaSubclass.kt"); - } - - @Test - @TestMetadata("referenceToJavaFieldViaBridge.kt") - public void testReferenceToJavaFieldViaBridge() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/property/referenceToJavaFieldViaBridge.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes") - @TestDataPath("$PROJECT_ROOT") - public class RecursiveRawTypes extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInRecursiveRawTypes() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt16528.kt") - public void testKt16528() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16528.kt"); - } - - @Test - @TestMetadata("kt16639.kt") - public void testKt16639() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/recursiveRawTypes/kt16639.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection") - @TestDataPath("$PROJECT_ROOT") - public class Reflection extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInReflection() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals") - @TestDataPath("$PROJECT_ROOT") - public class ClassLiterals extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInClassLiterals() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("javaClassLiteral.kt") - public void testJavaClassLiteral() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/classLiterals/javaClassLiteral.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/mapping") - @TestDataPath("$PROJECT_ROOT") - public class Mapping extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInMapping() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/mapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("jClass2kClass.kt") - public void testJClass2kClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/jClass2kClass.kt"); - } - - @Test - @TestMetadata("javaConstructor.kt") - public void testJavaConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaConstructor.kt"); - } - - @Test - @TestMetadata("javaFields.kt") - public void testJavaFields() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaFields.kt"); - } - - @Test - @TestMetadata("javaMethods.kt") - public void testJavaMethods() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/mapping/javaMethods.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/reflection/properties") - @TestDataPath("$PROJECT_ROOT") - public class Properties extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProperties() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/reflection/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("equalsHashCodeToString.kt") - public void testEqualsHashCodeToString() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/reflection/properties/equalsHashCodeToString.kt"); - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam") - @TestDataPath("$PROJECT_ROOT") - public class Sam extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSam() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("differentFqNames.kt") - public void testDifferentFqNames() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/differentFqNames.kt"); - } - - @Test - @TestMetadata("kt11519.kt") - public void testKt11519() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11519.kt"); - } - - @Test - @TestMetadata("kt11519Constructor.kt") - public void testKt11519Constructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11519Constructor.kt"); - } - - @Test - @TestMetadata("kt11696.kt") - public void testKt11696() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt11696.kt"); - } - - @Test - @TestMetadata("kt4753.kt") - public void testKt4753() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt4753.kt"); - } - - @Test - @TestMetadata("kt4753_2.kt") - public void testKt4753_2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/kt4753_2.kt"); - } - - @Test - @TestMetadata("propertyReference.kt") - public void testPropertyReference() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/propertyReference.kt"); - } - - @Test - @TestMetadata("samConstructorGenericSignature.kt") - public void testSamConstructorGenericSignature() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt"); - } - - @Test - @TestMetadata("smartCastSamConversion.kt") - public void testSmartCastSamConversion() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters") - @TestDataPath("$PROJECT_ROOT") - public class Adapters extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInAdapters() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam/adapters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("bridgesForOverridden.kt") - public void testBridgesForOverridden() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverridden.kt"); - } - - @Test - @TestMetadata("bridgesForOverriddenComplex.kt") - public void testBridgesForOverriddenComplex() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/bridgesForOverriddenComplex.kt"); - } - - @Test - @TestMetadata("callAbstractAdapter.kt") - public void testCallAbstractAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/callAbstractAdapter.kt"); - } - - @Test - @TestMetadata("comparator.kt") - public void testComparator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/comparator.kt"); - } - - @Test - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/constructor.kt"); - } - - @Test - @TestMetadata("doubleLongParameters.kt") - public void testDoubleLongParameters() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.kt"); - } - - @Test - @TestMetadata("fileFilter.kt") - public void testFileFilter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/fileFilter.kt"); - } - - @Test - @TestMetadata("genericSignature.kt") - public void testGenericSignature() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/genericSignature.kt"); - } - - @Test - @TestMetadata("implementAdapter.kt") - public void testImplementAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/implementAdapter.kt"); - } - - @Test - @TestMetadata("inheritedInKotlin.kt") - public void testInheritedInKotlin() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedInKotlin.kt"); - } - - @Test - @TestMetadata("inheritedOverriddenAdapter.kt") - public void testInheritedOverriddenAdapter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedOverriddenAdapter.kt"); - } - - @Test - @TestMetadata("inheritedSimple.kt") - public void testInheritedSimple() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/inheritedSimple.kt"); - } - - @Test - @TestMetadata("localClass.kt") - public void testLocalClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localClass.kt"); - } - - @Test - @TestMetadata("localObjectConstructor.kt") - public void testLocalObjectConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructor.kt"); - } - - @Test - @TestMetadata("localObjectConstructorWithFnValue.kt") - public void testLocalObjectConstructorWithFnValue() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/localObjectConstructorWithFnValue.kt"); - } - - @Test - @TestMetadata("nonLiteralAndLiteralRunnable.kt") - public void testNonLiteralAndLiteralRunnable() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralAndLiteralRunnable.kt"); - } - - @Test - @TestMetadata("nonLiteralComparator.kt") - public void testNonLiteralComparator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralComparator.kt"); - } - - @Test - @TestMetadata("nonLiteralInConstructor.kt") - public void testNonLiteralInConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralInConstructor.kt"); - } - - @Test - @TestMetadata("nonLiteralNull.kt") - public void testNonLiteralNull() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralNull.kt"); - } - - @Test - @TestMetadata("nonLiteralRunnable.kt") - public void testNonLiteralRunnable() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/nonLiteralRunnable.kt"); - } - - @Test - @TestMetadata("protectedFromBase.kt") - public void testProtectedFromBase() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/protectedFromBase.kt"); - } - - @Test - @TestMetadata("severalSamParameters.kt") - public void testSeveralSamParameters() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/severalSamParameters.kt"); - } - - @Test - @TestMetadata("simplest.kt") - public void testSimplest() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/simplest.kt"); - } - - @Test - @TestMetadata("superInSecondaryConstructor.kt") - public void testSuperInSecondaryConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superInSecondaryConstructor.kt"); - } - - @Test - @TestMetadata("superconstructor.kt") - public void testSuperconstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructor.kt"); - } - - @Test - @TestMetadata("superconstructorWithClosure.kt") - public void testSuperconstructorWithClosure() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructorWithClosure.kt"); - } - - @Test - @TestMetadata("typeParameterOfClass.kt") - public void testTypeParameterOfClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfClass.kt"); - } - - @Test - @TestMetadata("typeParameterOfMethod.kt") - public void testTypeParameterOfMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfMethod.kt"); - } - - @Test - @TestMetadata("typeParameterOfOuterClass.kt") - public void testTypeParameterOfOuterClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/typeParameterOfOuterClass.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators") - @TestDataPath("$PROJECT_ROOT") - public class Operators extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInOperators() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("augmentedAssignmentPure.kt") - public void testAugmentedAssignmentPure() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentPure.kt"); - } - - @Test - @TestMetadata("augmentedAssignmentViaSimpleBinary.kt") - public void testAugmentedAssignmentViaSimpleBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt"); - } - - @Test - @TestMetadata("binary.kt") - public void testBinary() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/binary.kt"); - } - - @Test - @TestMetadata("compareTo.kt") - public void testCompareTo() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/compareTo.kt"); - } - - @Test - @TestMetadata("contains.kt") - public void testContains() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/contains.kt"); - } - - @Test - @TestMetadata("get.kt") - public void testGet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/get.kt"); - } - - @Test - @TestMetadata("invoke.kt") - public void testInvoke() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/invoke.kt"); - } - - @Test - @TestMetadata("legacyModOperator.kt") - public void testLegacyModOperator() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/legacyModOperator.kt"); - } - - @Test - @TestMetadata("multiGetSet.kt") - public void testMultiGetSet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiGetSet.kt"); - } - - @Test - @TestMetadata("multiInvoke.kt") - public void testMultiInvoke() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/multiInvoke.kt"); - } - - @Test - @TestMetadata("set.kt") - public void testSet() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/sam/adapters/operators/set.kt"); - } - } - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/specialBuiltins") - @TestDataPath("$PROJECT_ROOT") - public class SpecialBuiltins extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSpecialBuiltins() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/specialBuiltins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("charBuffer.kt") - public void testCharBuffer() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/specialBuiltins/charBuffer.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/staticFun") - @TestDataPath("$PROJECT_ROOT") - public class StaticFun extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInStaticFun() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/staticFun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("classWithNestedEnum.kt") - public void testClassWithNestedEnum() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/staticFun/classWithNestedEnum.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/syntheticExtensions") - @TestDataPath("$PROJECT_ROOT") - public class SyntheticExtensions extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInSyntheticExtensions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("fromTwoBases.kt") - public void testFromTwoBases() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.kt"); - } - - @Test - @TestMetadata("getter.kt") - public void testGetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/getter.kt"); - } - - @Test - @TestMetadata("implicitReceiver.kt") - public void testImplicitReceiver() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/implicitReceiver.kt"); - } - - @Test - @TestMetadata("overrideOnlyGetter.kt") - public void testOverrideOnlyGetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/overrideOnlyGetter.kt"); - } - - @Test - @TestMetadata("plusPlus.kt") - public void testPlusPlus() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/plusPlus.kt"); - } - - @Test - @TestMetadata("protected.kt") - public void testProtected() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protected.kt"); - } - - @Test - @TestMetadata("protectedSetter.kt") - public void testProtectedSetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/protectedSetter.kt"); - } - - @Test - @TestMetadata("setter.kt") - public void testSetter() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setter.kt"); - } - - @Test - @TestMetadata("setterNonVoid1.kt") - public void testSetterNonVoid1() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid1.kt"); - } - - @Test - @TestMetadata("setterNonVoid2.kt") - public void testSetterNonVoid2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/syntheticExtensions/setterNonVoid2.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/throws") - @TestDataPath("$PROJECT_ROOT") - public class Throws extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInThrows() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/throws"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("delegationAndThrows.kt") - public void testDelegationAndThrows() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/throws/delegationAndThrows.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/typealias") - @TestDataPath("$PROJECT_ROOT") - public class Typealias extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInTypealias() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("javaStaticMembersViaTypeAlias.kt") - public void testJavaStaticMembersViaTypeAlias() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/typealias/javaStaticMembersViaTypeAlias.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/varargs") - @TestDataPath("$PROJECT_ROOT") - public class Varargs extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInVarargs() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("varargsOverride.kt") - public void testVarargsOverride() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride.kt"); - } - - @Test - @TestMetadata("varargsOverride2.kt") - public void testVarargsOverride2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride2.kt"); - } - - @Test - @TestMetadata("varargsOverride3.kt") - public void testVarargsOverride3() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/varargs/varargsOverride3.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility") - @TestDataPath("$PROJECT_ROOT") - public class Visibility extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInVisibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/package") - @TestDataPath("$PROJECT_ROOT") - public class Package extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInPackage() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt2781.kt") - public void testKt2781() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/kt2781.kt"); - } - - @Test - @TestMetadata("packageClass.kt") - public void testPackageClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageClass.kt"); - } - - @Test - @TestMetadata("packageFun.kt") - public void testPackageFun() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageFun.kt"); - } - - @Test - @TestMetadata("packageProperty.kt") - public void testPackageProperty() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/package/packageProperty.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage") - @TestDataPath("$PROJECT_ROOT") - public class ProtectedAndPackage extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProtectedAndPackage() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("overrideProtectedFunInPackage.kt") - public void testOverrideProtectedFunInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt"); - } - - @Test - @TestMetadata("protectedAccessor.kt") - public void testProtectedAccessor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedAccessor.kt"); - } - - @Test - @TestMetadata("protectedFunInPackage.kt") - public void testProtectedFunInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedFunInPackage.kt"); - } - - @Test - @TestMetadata("protectedPropertyInPackage.kt") - public void testProtectedPropertyInPackage() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackage.kt"); - } - - @Test - @TestMetadata("protectedPropertyInPackageFromCrossinline.kt") - public void testProtectedPropertyInPackageFromCrossinline() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt"); - } - - @Test - @TestMetadata("protectedStaticClass.kt") - public void testProtectedStaticClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedStaticClass.kt"); - } - - @Test - @TestMetadata("protectedSuperField.kt") - public void testProtectedSuperField() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperField.kt"); - } - - @Test - @TestMetadata("protectedSuperMethod.kt") - public void testProtectedSuperMethod() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperMethod.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic") - @TestDataPath("$PROJECT_ROOT") - public class ProtectedStatic extends AbstractIrBlackBoxCodegenTest { - @Test - public void testAllFilesPresentInProtectedStatic() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("funCallInConstructor.kt") - public void testFunCallInConstructor() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funCallInConstructor.kt"); - } - - @Test - @TestMetadata("funClassObject.kt") - public void testFunClassObject() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funClassObject.kt"); - } - - @Test - @TestMetadata("funGenericClass.kt") - public void testFunGenericClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funGenericClass.kt"); - } - - @Test - @TestMetadata("funNestedStaticClass.kt") - public void testFunNestedStaticClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass.kt"); - } - - @Test - @TestMetadata("funNestedStaticClass2.kt") - public void testFunNestedStaticClass2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticClass2.kt"); - } - - @Test - @TestMetadata("funNestedStaticGenericClass.kt") - public void testFunNestedStaticGenericClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNestedStaticGenericClass.kt"); - } - - @Test - @TestMetadata("funNotDirectSuperClass.kt") - public void testFunNotDirectSuperClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funNotDirectSuperClass.kt"); - } - - @Test - @TestMetadata("funObject.kt") - public void testFunObject() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/funObject.kt"); - } - - @Test - @TestMetadata("simpleClass.kt") - public void testSimpleClass() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass.kt"); - } - - @Test - @TestMetadata("simpleClass2.kt") - public void testSimpleClass2() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass2.kt"); - } - - @Test - @TestMetadata("simpleFun.kt") - public void testSimpleFun() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleFun.kt"); - } - - @Test - @TestMetadata("simpleProperty.kt") - public void testSimpleProperty() throws Exception { - runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleProperty.kt"); - } - } - } - } }