Switch 'AbstractCompilerLightClassTest' to new scheme with configuration kind

This commit is contained in:
Mikhael Bogdanov
2020-02-27 14:36:48 +01:00
parent f84ac5e3f9
commit ae9a91e17d
11 changed files with 10 additions and 2 deletions
@@ -1,4 +1,5 @@
// C // C
// WITH_RUNTIME
class C { class C {
@JvmName("myFun") @JvmName("myFun")
fun g(c: C) { fun g(c: C) {
+1
View File
@@ -1,4 +1,5 @@
// A // A
// WITH_RUNTIME
class A { class A {
companion object { companion object {
@@ -1,4 +1,5 @@
// a.b.c.ActualTypeAliasCustomJvmPackageNameKt // a.b.c.ActualTypeAliasCustomJvmPackageNameKt
// WITH_RUNTIME
@file:JvmPackageName("a.b.c") @file:JvmPackageName("a.b.c")
package p package p
@@ -1,5 +1,5 @@
// A // A
// WITH_RUNTIME
class A { class A {
@Synchronized @Synchronized
@Strictfp @Strictfp
@@ -1,4 +1,5 @@
// a.b.c.JvmPackageNameKt // a.b.c.JvmPackageNameKt
// WITH_RUNTIME
@file:JvmPackageName("a.b.c") @file:JvmPackageName("a.b.c")
package p package p
@@ -1,4 +1,5 @@
// A // A
// WITH_RUNTIME
class A { class A {
companion object { companion object {
@@ -1,4 +1,5 @@
//NewName //NewName
// WITH_RUNTIME
@file:JvmName("NewName") @file:JvmName("NewName")
fun foo() { fun foo() {
@@ -1,4 +1,5 @@
// C // C
// WITH_RUNTIME
class C { class C {
@[kotlin.jvm.JvmOverloads] public fun foo(o: String = "O", o1: String, o3: String = "K", o4: String?): String { @[kotlin.jvm.JvmOverloads] public fun foo(o: String = "O", o1: String, o3: String = "K", o4: String?): String {
@@ -1,4 +1,5 @@
// C // C
// WITH_RUNTIME
class C { class C {
companion object { companion object {
@@ -1,4 +1,5 @@
// C // C
// WITH_RUNTIME
class C { class C {
@[kotlin.jvm.JvmField] public val foo: String = { "A" }() @[kotlin.jvm.JvmField] public val foo: String = { "A" }()
@@ -31,7 +31,6 @@ import org.junit.Assert
import java.io.File import java.io.File
abstract class AbstractCompilerLightClassTest : KotlinMultiFileTestWithJava<KotlinBaseTest.TestModule, KotlinBaseTest.TestFile>() { abstract class AbstractCompilerLightClassTest : KotlinMultiFileTestWithJava<KotlinBaseTest.TestModule, KotlinBaseTest.TestFile>() {
override fun getConfigurationKind(): ConfigurationKind = ConfigurationKind.ALL
override fun isKotlinSourceRootNeeded(): Boolean = true override fun isKotlinSourceRootNeeded(): Boolean = true