Added tests with SAM adapter overridden in Kotlin class.

This commit is contained in:
Evgeny Gerashchenko
2013-06-20 20:59:40 +04:00
parent f4c3a89408
commit fd7b29ad48
7 changed files with 62 additions and 0 deletions
@@ -160,6 +160,11 @@ public class BlackBoxWithJavaCodegenTestGenerated extends AbstractBlackBoxCodege
doTestWithJava("compiler/testData/codegen/boxWithJava/samAdapters/inheritedOverriddenAdapter.kt");
}
@TestMetadata("inheritedOverriddenAdapterInKotlin.kt")
public void testInheritedOverriddenAdapterInKotlin() throws Exception {
doTestWithJava("compiler/testData/codegen/boxWithJava/samAdapters/inheritedOverriddenAdapterInKotlin.kt");
}
@TestMetadata("inheritedSimple.kt")
public void testInheritedSimple() throws Exception {
doTestWithJava("compiler/testData/codegen/boxWithJava/samAdapters/inheritedSimple.kt");
@@ -1427,6 +1427,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
doTestJavaAgainstKotlin("compiler/testData/loadJava/javaAgainstKotlin/samAdapters/InheritSamAdapterInKotlin.txt");
}
@TestMetadata("OverrideSamAdapterInKotlin.txt")
public void testOverrideSamAdapterInKotlin() throws Exception {
doTestJavaAgainstKotlin("compiler/testData/loadJava/javaAgainstKotlin/samAdapters/OverrideSamAdapterInKotlin.txt");
}
public static Test innerSuite() {
TestSuite suite = new TestSuite("SamAdapters");
suite.addTestSuite(SamAdapters.class);