Test step into for Java constructor with SAM conversion
Additional test for KT-21538 #KT-21538 Fixed
This commit is contained in:
@@ -54,4 +54,9 @@ public class MyJavaClass {
|
|||||||
public void other(Runnable runnable) {
|
public void other(Runnable runnable) {
|
||||||
runnable.run();
|
runnable.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MyJavaClass() {}
|
||||||
|
|
||||||
|
// Constructor with sam conversion for step into test
|
||||||
|
public MyJavaClass(Runnable runnable) {}
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
package javaSamConstructor
|
||||||
|
|
||||||
|
import forTests.MyJavaClass
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
//Breakpoint!
|
||||||
|
MyJavaClass { /* do nothing*/ }
|
||||||
|
}
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
LineBreakpoint created at javaSamConstructor.kt:7
|
||||||
|
Run Java
|
||||||
|
Connected to the target VM
|
||||||
|
javaSamConstructor.kt:7
|
||||||
|
MyJavaClass.java:61
|
||||||
|
Disconnected from the target VM
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
@@ -62,6 +62,12 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
|
|||||||
doStepIntoTest(fileName);
|
doStepIntoTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaSamConstructor.kt")
|
||||||
|
public void testJavaSamConstructor() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamConstructor.kt");
|
||||||
|
doStepIntoTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("javaSamFunction.kt")
|
@TestMetadata("javaSamFunction.kt")
|
||||||
public void testJavaSamFunction() throws Exception {
|
public void testJavaSamFunction() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
|
||||||
@@ -155,6 +161,12 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
|
|||||||
doSmartStepIntoTest(fileName);
|
doSmartStepIntoTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaSamConstructor.kt")
|
||||||
|
public void testJavaSamConstructor() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamConstructor.kt");
|
||||||
|
doSmartStepIntoTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("javaSamFunction.kt")
|
@TestMetadata("javaSamFunction.kt")
|
||||||
public void testJavaSamFunction() throws Exception {
|
public void testJavaSamFunction() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user