[JVM_IR] Enable KotlinAgainstJava and remaining JavaAgainstKotlin test.

This commit is contained in:
Mads Ager
2020-11-02 12:05:58 +01:00
committed by Alexander Udalov
parent 24345bb6b3
commit 2c8c47399a
8 changed files with 1860 additions and 547 deletions
@@ -1,3 +1,5 @@
// IGNORE_BACKEND: JVM, JVM_IR
package test
interface KotlinInterface
@@ -22,6 +22,7 @@ import org.jetbrains.kotlin.cli.common.modules.ModuleBuilder
import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
import org.jetbrains.kotlin.codegen.GenerationUtils
import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.config.JVMConfigurationKeys
import org.jetbrains.kotlin.javac.JavacWrapper
import org.jetbrains.kotlin.load.kotlin.ModuleVisibilityManager
@@ -90,6 +91,7 @@ abstract class AbstractCompileKotlinAgainstJavaTest : TestCaseWithTmpdir() {
aptMode: Boolean
): Boolean {
val environment = createEnvironmentWithMockJdkAndIdeaAnnotations(disposable)
updateConfiguration(environment.configuration)
environment.configuration.put(JVMConfigurationKeys.USE_JAVAC, true)
environment.configuration.put(JVMConfigurationKeys.COMPILE_JAVA, true)
val ktFiles = kotlinFiles.map { kotlinFile: File ->
@@ -115,6 +117,8 @@ abstract class AbstractCompileKotlinAgainstJavaTest : TestCaseWithTmpdir() {
return JavacWrapper.getInstance(environment.project).use { it.compile(outDir) }
}
open fun updateConfiguration(configuration: CompilerConfiguration) {}
companion object {
// Do not render parameter names because there are test cases where classes inherit from JDK collections,
// and some versions of JDK have debug information in the class files (including parameter names), and some don't
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.jvm.compiler.ir
import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.config.JVMConfigurationKeys
import org.jetbrains.kotlin.jvm.compiler.AbstractCompileKotlinAgainstJavaTest
abstract class AbstractIrCompileKotlinAgainstJavaTest : AbstractCompileKotlinAgainstJavaTest() {
override fun updateConfiguration(configuration: CompilerConfiguration) = configuration.put(JVMConfigurationKeys.IR, true)
}
@@ -40,6 +40,7 @@ import org.jetbrains.kotlin.ir.AbstractIrSourceRangesTestCase
import org.jetbrains.kotlin.ir.AbstractIrTextTestCase
import org.jetbrains.kotlin.jvm.compiler.*
import org.jetbrains.kotlin.jvm.compiler.ir.AbstractIrCompileJavaAgainstKotlinTest
import org.jetbrains.kotlin.jvm.compiler.ir.AbstractIrCompileKotlinAgainstJavaTest
import org.jetbrains.kotlin.jvm.compiler.ir.AbstractIrLoadJavaTest
import org.jetbrains.kotlin.jvm.compiler.javac.AbstractLoadJavaUsingJavacTest
import org.jetbrains.kotlin.lexer.kdoc.AbstractKDocLexerTest
@@ -329,8 +330,18 @@ fun main(args: Array<String>) {
}
testClass<AbstractCompileKotlinAgainstJavaTest> {
model("compileKotlinAgainstJava", testClassName = "WithAPT", testMethod = "doTestWithAPT")
model("compileKotlinAgainstJava", testClassName = "WithoutAPT", testMethod = "doTestWithoutAPT")
model(
"compileKotlinAgainstJava",
testClassName = "WithAPT",
testMethod = "doTestWithAPT",
targetBackend = TargetBackend.JVM
)
model(
"compileKotlinAgainstJava",
testClassName = "WithoutAPT",
testMethod = "doTestWithoutAPT",
targetBackend = TargetBackend.JVM
)
}
testClass<AbstractCompileKotlinAgainstKotlinTest> {
@@ -438,7 +449,27 @@ fun main(args: Array<String>) {
testMethod = "doTestWithoutJavac",
targetBackend = TargetBackend.JVM_IR
)
//model("compileJavaAgainstKotlin", testClassName = "WithJavac", testMethod = "doTestWithJavac", targetBackend = TargetBackend.JVM_IR)
model(
"compileJavaAgainstKotlin",
testClassName = "WithJavac",
testMethod = "doTestWithJavac",
targetBackend = TargetBackend.JVM_IR
)
}
testClass<AbstractIrCompileKotlinAgainstJavaTest> {
model(
"compileKotlinAgainstJava",
testClassName = "WithAPT",
testMethod = "doTestWithAPT",
targetBackend = TargetBackend.JVM_IR
)
model(
"compileKotlinAgainstJava",
testClassName = "WithoutAPT",
testMethod = "doTestWithoutAPT",
targetBackend = TargetBackend.JVM_IR
)
}
testClass<AbstractIrCompileKotlinAgainstKotlinTest> {
@@ -8,6 +8,7 @@ package org.jetbrains.kotlin.jvm.compiler;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -23,7 +24,7 @@ public class CompileKotlinAgainstJavaTestGenerated extends AbstractCompileKotlin
@RunWith(JUnit3RunnerWithInners.class)
public static class WithAPT extends AbstractCompileKotlinAgainstJavaTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTestWithAPT, this, testDataFilePath);
KotlinTestUtils.runTest(this::doTestWithAPT, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("AbstractClass.kt")
@@ -37,7 +38,7 @@ public class CompileKotlinAgainstJavaTestGenerated extends AbstractCompileKotlin
}
public void testAllFilesPresentInWithAPT() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, true);
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("AnnotationWithArguments.kt")
@@ -311,7 +312,7 @@ public class CompileKotlinAgainstJavaTestGenerated extends AbstractCompileKotlin
@RunWith(JUnit3RunnerWithInners.class)
public static class WithoutAPT extends AbstractCompileKotlinAgainstJavaTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTestWithoutAPT, this, testDataFilePath);
KotlinTestUtils.runTest(this::doTestWithoutAPT, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("AbstractClass.kt")
@@ -325,7 +326,7 @@ public class CompileKotlinAgainstJavaTestGenerated extends AbstractCompileKotlin
}
public void testAllFilesPresentInWithoutAPT() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, true);
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("AnnotationWithArguments.kt")
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,597 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.jvm.compiler.ir;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class IrCompileKotlinAgainstJavaTestGenerated extends AbstractIrCompileKotlinAgainstJavaTest {
@TestMetadata("compiler/testData/compileKotlinAgainstJava")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class WithAPT extends AbstractIrCompileKotlinAgainstJavaTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTestWithAPT, TargetBackend.JVM_IR, testDataFilePath);
}
@TestMetadata("AbstractClass.kt")
public void testAbstractClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AbstractClass.kt");
}
@TestMetadata("AbstractEnum.kt")
public void testAbstractEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AbstractEnum.kt");
}
public void testAllFilesPresentInWithAPT() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@TestMetadata("AnnotationWithArguments.kt")
public void testAnnotationWithArguments() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithArguments.kt");
}
@TestMetadata("AnnotationWithField.kt")
public void testAnnotationWithField() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithField.kt");
}
@TestMetadata("AsteriskInImport.kt")
public void testAsteriskInImport() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AsteriskInImport.kt");
}
@TestMetadata("CheckKotlinStub.kt")
public void testCheckKotlinStub() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/CheckKotlinStub.kt");
}
@TestMetadata("CheckNotNull.kt")
public void testCheckNotNull() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/CheckNotNull.kt");
}
@TestMetadata("Class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Class.kt");
}
@TestMetadata("ClassDefaultConstructor.kt")
public void testClassDefaultConstructor() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ClassDefaultConstructor.kt");
}
@TestMetadata("ClassWithNestedEnum.kt")
public void testClassWithNestedEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithNestedEnum.kt");
}
@TestMetadata("ClassWithTypeParameter.kt")
public void testClassWithTypeParameter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithTypeParameter.kt");
}
@TestMetadata("CyclicDependencies.kt")
public void testCyclicDependencies() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/CyclicDependencies.kt");
}
@TestMetadata("DefaultModifier.kt")
public void testDefaultModifier() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/DefaultModifier.kt");
}
@TestMetadata("EnclosingClassInner.kt")
public void testEnclosingClassInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/EnclosingClassInner.kt");
}
@TestMetadata("Enum.kt")
public void testEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Enum.kt");
}
@TestMetadata("EnumName.kt")
public void testEnumName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/EnumName.kt");
}
@TestMetadata("EnumValues.kt")
public void testEnumValues() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/EnumValues.kt");
}
@TestMetadata("Inheritance.kt")
public void testInheritance() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Inheritance.kt");
}
@TestMetadata("InheritedInner.kt")
public void testInheritedInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InheritedInner.kt");
}
@TestMetadata("InnerCanonicalName.kt")
public void testInnerCanonicalName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerCanonicalName.kt");
}
@TestMetadata("InnerClass.kt")
public void testInnerClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerClass.kt");
}
@TestMetadata("InnerClassFromAsteriskImport.kt")
public void testInnerClassFromAsteriskImport() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromAsteriskImport.kt");
}
@TestMetadata("InnerClassFromImport.kt")
public void testInnerClassFromImport() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromImport.kt");
}
@TestMetadata("InnerWithGenericOuter.kt")
public void testInnerWithGenericOuter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerWithGenericOuter.kt");
}
@TestMetadata("Interface.kt")
public void testInterface() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Interface.kt");
}
@TestMetadata("InterfaceField.kt")
public void testInterfaceField() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceField.kt");
}
@TestMetadata("InterfaceMemberClass.kt")
public void testInterfaceMemberClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceMemberClass.kt");
}
@TestMetadata("InterfaceWithDefault.kt")
public void testInterfaceWithDefault() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceWithDefault.kt");
}
@TestMetadata("JavaLangClass.kt")
public void testJavaLangClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/JavaLangClass.kt");
}
@TestMetadata("ListImpl.kt")
public void testListImpl() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ListImpl.kt");
}
@TestMetadata("MapExample.kt")
public void testMapExample() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MapExample.kt");
}
@TestMetadata("Method.kt")
public void testMethod() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Method.kt");
}
@TestMetadata("MethodWithArgument.kt")
public void testMethodWithArgument() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithArgument.kt");
}
@TestMetadata("MethodWithSeveralTypeParameters.kt")
public void testMethodWithSeveralTypeParameters() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithSeveralTypeParameters.kt");
}
@TestMetadata("MethodWithTypeParameter.kt")
public void testMethodWithTypeParameter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithTypeParameter.kt");
}
@TestMetadata("MethodWithWildcard.kt")
public void testMethodWithWildcard() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithWildcard.kt");
}
@TestMetadata("Nesting.kt")
public void testNesting() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Nesting.kt");
}
@TestMetadata("RawReturnType.kt")
public void testRawReturnType() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/RawReturnType.kt");
}
@TestMetadata("ReturnEnum.kt")
public void testReturnEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnEnum.kt");
}
@TestMetadata("ReturnInnerClass.kt")
public void testReturnInnerClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerClass.kt");
}
@TestMetadata("ReturnInnerInInner.kt")
public void testReturnInnerInInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInInner.kt");
}
@TestMetadata("ReturnInnerInner.kt")
public void testReturnInnerInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInner.kt");
}
@TestMetadata("ReturnNested.kt")
public void testReturnNested() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNested.kt");
}
@TestMetadata("ReturnNestedFQ.kt")
public void testReturnNestedFQ() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNestedFQ.kt");
}
@TestMetadata("ReturnType.kt")
public void testReturnType() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnType.kt");
}
@TestMetadata("ReturnTypeResolution.kt")
public void testReturnTypeResolution() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnTypeResolution.kt");
}
@TestMetadata("SeveralInnerClasses.kt")
public void testSeveralInnerClasses() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/SeveralInnerClasses.kt");
}
@TestMetadata("SimpleAnnotation.kt")
public void testSimpleAnnotation() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/SimpleAnnotation.kt");
}
@TestMetadata("SimpleWildcard.kt")
public void testSimpleWildcard() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/SimpleWildcard.kt");
}
@TestMetadata("Singleton.kt")
public void testSingleton() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Singleton.kt");
}
@TestMetadata("StaticNestedClass.kt")
public void testStaticNestedClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/StaticNestedClass.kt");
}
@TestMetadata("TypeArgumentInSuperType.kt")
public void testTypeArgumentInSuperType() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/TypeArgumentInSuperType.kt");
}
@TestMetadata("TypeParameter.kt")
public void testTypeParameter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/TypeParameter.kt");
}
@TestMetadata("UseKtClass.kt")
public void testUseKtClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/UseKtClass.kt");
}
@TestMetadata("Vararg.kt")
public void testVararg() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Vararg.kt");
}
}
@TestMetadata("compiler/testData/compileKotlinAgainstJava")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class WithoutAPT extends AbstractIrCompileKotlinAgainstJavaTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTestWithoutAPT, TargetBackend.JVM_IR, testDataFilePath);
}
@TestMetadata("AbstractClass.kt")
public void testAbstractClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AbstractClass.kt");
}
@TestMetadata("AbstractEnum.kt")
public void testAbstractEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AbstractEnum.kt");
}
public void testAllFilesPresentInWithoutAPT() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@TestMetadata("AnnotationWithArguments.kt")
public void testAnnotationWithArguments() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithArguments.kt");
}
@TestMetadata("AnnotationWithField.kt")
public void testAnnotationWithField() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithField.kt");
}
@TestMetadata("AsteriskInImport.kt")
public void testAsteriskInImport() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/AsteriskInImport.kt");
}
@TestMetadata("CheckKotlinStub.kt")
public void testCheckKotlinStub() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/CheckKotlinStub.kt");
}
@TestMetadata("CheckNotNull.kt")
public void testCheckNotNull() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/CheckNotNull.kt");
}
@TestMetadata("Class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Class.kt");
}
@TestMetadata("ClassDefaultConstructor.kt")
public void testClassDefaultConstructor() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ClassDefaultConstructor.kt");
}
@TestMetadata("ClassWithNestedEnum.kt")
public void testClassWithNestedEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithNestedEnum.kt");
}
@TestMetadata("ClassWithTypeParameter.kt")
public void testClassWithTypeParameter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithTypeParameter.kt");
}
@TestMetadata("CyclicDependencies.kt")
public void testCyclicDependencies() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/CyclicDependencies.kt");
}
@TestMetadata("DefaultModifier.kt")
public void testDefaultModifier() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/DefaultModifier.kt");
}
@TestMetadata("EnclosingClassInner.kt")
public void testEnclosingClassInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/EnclosingClassInner.kt");
}
@TestMetadata("Enum.kt")
public void testEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Enum.kt");
}
@TestMetadata("EnumName.kt")
public void testEnumName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/EnumName.kt");
}
@TestMetadata("EnumValues.kt")
public void testEnumValues() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/EnumValues.kt");
}
@TestMetadata("Inheritance.kt")
public void testInheritance() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Inheritance.kt");
}
@TestMetadata("InheritedInner.kt")
public void testInheritedInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InheritedInner.kt");
}
@TestMetadata("InnerCanonicalName.kt")
public void testInnerCanonicalName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerCanonicalName.kt");
}
@TestMetadata("InnerClass.kt")
public void testInnerClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerClass.kt");
}
@TestMetadata("InnerClassFromAsteriskImport.kt")
public void testInnerClassFromAsteriskImport() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromAsteriskImport.kt");
}
@TestMetadata("InnerClassFromImport.kt")
public void testInnerClassFromImport() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromImport.kt");
}
@TestMetadata("InnerWithGenericOuter.kt")
public void testInnerWithGenericOuter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InnerWithGenericOuter.kt");
}
@TestMetadata("Interface.kt")
public void testInterface() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Interface.kt");
}
@TestMetadata("InterfaceField.kt")
public void testInterfaceField() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceField.kt");
}
@TestMetadata("InterfaceMemberClass.kt")
public void testInterfaceMemberClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceMemberClass.kt");
}
@TestMetadata("InterfaceWithDefault.kt")
public void testInterfaceWithDefault() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceWithDefault.kt");
}
@TestMetadata("JavaLangClass.kt")
public void testJavaLangClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/JavaLangClass.kt");
}
@TestMetadata("ListImpl.kt")
public void testListImpl() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ListImpl.kt");
}
@TestMetadata("MapExample.kt")
public void testMapExample() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MapExample.kt");
}
@TestMetadata("Method.kt")
public void testMethod() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Method.kt");
}
@TestMetadata("MethodWithArgument.kt")
public void testMethodWithArgument() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithArgument.kt");
}
@TestMetadata("MethodWithSeveralTypeParameters.kt")
public void testMethodWithSeveralTypeParameters() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithSeveralTypeParameters.kt");
}
@TestMetadata("MethodWithTypeParameter.kt")
public void testMethodWithTypeParameter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithTypeParameter.kt");
}
@TestMetadata("MethodWithWildcard.kt")
public void testMethodWithWildcard() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithWildcard.kt");
}
@TestMetadata("Nesting.kt")
public void testNesting() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Nesting.kt");
}
@TestMetadata("RawReturnType.kt")
public void testRawReturnType() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/RawReturnType.kt");
}
@TestMetadata("ReturnEnum.kt")
public void testReturnEnum() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnEnum.kt");
}
@TestMetadata("ReturnInnerClass.kt")
public void testReturnInnerClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerClass.kt");
}
@TestMetadata("ReturnInnerInInner.kt")
public void testReturnInnerInInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInInner.kt");
}
@TestMetadata("ReturnInnerInner.kt")
public void testReturnInnerInner() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInner.kt");
}
@TestMetadata("ReturnNested.kt")
public void testReturnNested() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNested.kt");
}
@TestMetadata("ReturnNestedFQ.kt")
public void testReturnNestedFQ() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNestedFQ.kt");
}
@TestMetadata("ReturnType.kt")
public void testReturnType() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnType.kt");
}
@TestMetadata("ReturnTypeResolution.kt")
public void testReturnTypeResolution() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/ReturnTypeResolution.kt");
}
@TestMetadata("SeveralInnerClasses.kt")
public void testSeveralInnerClasses() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/SeveralInnerClasses.kt");
}
@TestMetadata("SimpleAnnotation.kt")
public void testSimpleAnnotation() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/SimpleAnnotation.kt");
}
@TestMetadata("SimpleWildcard.kt")
public void testSimpleWildcard() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/SimpleWildcard.kt");
}
@TestMetadata("Singleton.kt")
public void testSingleton() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Singleton.kt");
}
@TestMetadata("StaticNestedClass.kt")
public void testStaticNestedClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/StaticNestedClass.kt");
}
@TestMetadata("TypeArgumentInSuperType.kt")
public void testTypeArgumentInSuperType() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/TypeArgumentInSuperType.kt");
}
@TestMetadata("TypeParameter.kt")
public void testTypeParameter() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/TypeParameter.kt");
}
@TestMetadata("UseKtClass.kt")
public void testUseKtClass() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/UseKtClass.kt");
}
@TestMetadata("Vararg.kt")
public void testVararg() throws Exception {
runTest("compiler/testData/compileKotlinAgainstJava/Vararg.kt");
}
}
}
-2
View File
@@ -45,8 +45,6 @@ org.jetbrains.kotlin.jps.build.IncrementalJvmJpsTestGenerated.WithJava.JavaUsedI
org.jetbrains.kotlin.psi.injection.StringInterpolationInjectionTest.testInterpolationSimpleName, Stable failure during run may work in debug,,
org.jetbrains.kotlin.shortenRefs.ShortenRefsTestGenerated.testExtensionForObject2, Always red,,
org.jetbrains.kotlin.util.KotlinVersionsTest.testVersionsAreConsistent, KT-35567,,
org.jetbrains.kotlin.jvm.compiler.CompileKotlinAgainstJavaTestGenerated.WithAPT.testClassWithTypeParameter, KT-36448,,
org.jetbrains.kotlin.jvm.compiler.CompileKotlinAgainstJavaTestGenerated.WithoutAPT.testClassWithTypeParameter, KT-36448,,
org.jetbrains.kotlin.idea.debugger.test.AsyncStackTraceTestGenerated.testAsyncLambdas, redesign test AsyncStackTraces,,
org.jetbrains.kotlin.incremental.IncrementalJsKlibCompilerRunnerTestGenerated.ClassHierarchyAffected.testMethodRemoved, full fledged FO in klib required,,
org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.ConvertToAnonymousObject.testHasConcreateMember2, Unprocessed,,
1 Test key Issue State (optional: MUTE or FAIL) Status (optional: FLAKY)
45 org.jetbrains.kotlin.psi.injection.StringInterpolationInjectionTest.testInterpolationSimpleName Stable failure during run may work in debug
46 org.jetbrains.kotlin.shortenRefs.ShortenRefsTestGenerated.testExtensionForObject2 Always red
47 org.jetbrains.kotlin.util.KotlinVersionsTest.testVersionsAreConsistent KT-35567
org.jetbrains.kotlin.jvm.compiler.CompileKotlinAgainstJavaTestGenerated.WithAPT.testClassWithTypeParameter KT-36448
org.jetbrains.kotlin.jvm.compiler.CompileKotlinAgainstJavaTestGenerated.WithoutAPT.testClassWithTypeParameter KT-36448
48 org.jetbrains.kotlin.idea.debugger.test.AsyncStackTraceTestGenerated.testAsyncLambdas redesign test AsyncStackTraces
49 org.jetbrains.kotlin.incremental.IncrementalJsKlibCompilerRunnerTestGenerated.ClassHierarchyAffected.testMethodRemoved full fledged FO in klib required
50 org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.ConvertToAnonymousObject.testHasConcreateMember2 Unprocessed