Light classes: test "JvmPackageName" and actual declarations
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
public final class B {
|
||||||
|
public B() { /* compiled code */ }
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// p.B
|
||||||
|
package p
|
||||||
|
|
||||||
|
actual class B
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
public final class ActualTypeAliasKt {
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// p.ActualTypeAliasKt
|
||||||
|
package p
|
||||||
|
|
||||||
|
actual typealias B = List<Int>
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
@kotlin.jvm.JvmPackageName(name = "a.b.c")
|
||||||
|
public final class ActualTypeAliasCustomJvmPackageNameKt {
|
||||||
|
}
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
// a.b.c.ActualTypeAliasCustomJvmPackageNameKt
|
||||||
|
@file:JvmPackageName("a.b.c")
|
||||||
|
package p
|
||||||
|
|
||||||
|
actual typealias B = List<Int>
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@kotlin.jvm.JvmPackageName(name = "a.b.c")
|
||||||
|
public final class JvmPackageNameKt {
|
||||||
|
public static final void f() { /* compiled code */ }
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// a.b.c.JvmPackageNameKt
|
||||||
|
@file:JvmPackageName("a.b.c")
|
||||||
|
package p
|
||||||
|
|
||||||
|
fun f() {
|
||||||
|
|
||||||
|
}
|
||||||
+24
@@ -149,6 +149,24 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
|||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
public static class CompilationErrors extends AbstractCompilerLightClassTest {
|
public static class CompilationErrors extends AbstractCompilerLightClassTest {
|
||||||
|
@TestMetadata("ActualClass.kt")
|
||||||
|
public void testActualClass() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ActualClass.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("ActualTypeAlias.kt")
|
||||||
|
public void testActualTypeAlias() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ActualTypeAlias.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("ActualTypeAliasCustomJvmPackageName.kt")
|
||||||
|
public void testActualTypeAliasCustomJvmPackageName() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ActualTypeAliasCustomJvmPackageName.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInCompilationErrors() throws Exception {
|
public void testAllFilesPresentInCompilationErrors() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/compilationErrors"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), TargetBackend.ANY, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/compilationErrors"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), TargetBackend.ANY, true);
|
||||||
}
|
}
|
||||||
@@ -165,6 +183,12 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("JvmPackageName.kt")
|
||||||
|
public void testJvmPackageName() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/JvmPackageName.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("ExpectClass.kt")
|
@TestMetadata("ExpectClass.kt")
|
||||||
public void testExpectClass() throws Exception {
|
public void testExpectClass() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ExpectClass.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ExpectClass.kt");
|
||||||
|
|||||||
+24
@@ -149,6 +149,24 @@ public class IdeLightClassTestGenerated extends AbstractIdeLightClassTest {
|
|||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
public static class CompilationErrors extends AbstractIdeLightClassTest {
|
public static class CompilationErrors extends AbstractIdeLightClassTest {
|
||||||
|
@TestMetadata("ActualClass.kt")
|
||||||
|
public void testActualClass() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ActualClass.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("ActualTypeAlias.kt")
|
||||||
|
public void testActualTypeAlias() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ActualTypeAlias.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("ActualTypeAliasCustomJvmPackageName.kt")
|
||||||
|
public void testActualTypeAliasCustomJvmPackageName() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ActualTypeAliasCustomJvmPackageName.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInCompilationErrors() throws Exception {
|
public void testAllFilesPresentInCompilationErrors() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/compilationErrors"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), TargetBackend.ANY, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/compilationErrors"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), TargetBackend.ANY, true);
|
||||||
}
|
}
|
||||||
@@ -165,6 +183,12 @@ public class IdeLightClassTestGenerated extends AbstractIdeLightClassTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("JvmPackageName.kt")
|
||||||
|
public void testJvmPackageName() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/JvmPackageName.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("ExpectClass.kt")
|
@TestMetadata("ExpectClass.kt")
|
||||||
public void testExpectClass() throws Exception {
|
public void testExpectClass() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ExpectClass.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/compilationErrors/ExpectClass.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user