Refactor stepping tests

This commit is contained in:
Natalia Ukhorskaya
2015-05-22 12:54:08 +03:00
parent cf163181f1
commit 5d9daf3890
42 changed files with 90 additions and 94 deletions
@@ -612,11 +612,11 @@ fun main(args: Array<String>) {
}
testClass(javaClass<AbstractKotlinSteppingTest>()) {
model("debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto", testMethod = "doStepIntoTest", testClassName = "StepInto")
model("debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto", testMethod = "doSmartStepIntoTest", testClassName = "SmartStepInto")
model("debugger/tinyApp/src/stepInto/stepInto", testMethod = "doStepIntoTest", testClassName = "StepIntoOnly")
model("debugger/tinyApp/src/stepOut", testMethod = "doStepOutTest")
model("debugger/tinyApp/src/filters", testMethod = "doStepIntoTest")
model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", testMethod = "doStepIntoTest", testClassName = "StepInto")
model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", testMethod = "doSmartStepIntoTest", testClassName = "SmartStepInto")
model("debugger/tinyApp/src/stepping/stepInto", testMethod = "doStepIntoTest", testClassName = "StepIntoOnly")
model("debugger/tinyApp/src/stepping/stepOut", testMethod = "doStepOutTest")
model("debugger/tinyApp/src/stepping/filters", testMethod = "doStepIntoTest")
}
testClass(javaClass<AbstractKotlinEvaluateExpressionTest>()) {
@@ -3,7 +3,7 @@ LineBreakpoint created at classFromAnotherPackage.kt:7
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
classFromAnotherPackage.kt:7
Compile bytecode for MyJavaClass()
Compile bytecode for stepInto.MyJavaClass()
Compile bytecode for forTests.MyJavaClass()
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -1,6 +1,6 @@
package classFromAnotherPackage
import stepInto.MyJavaClass
import forTests.MyJavaClass
fun main(args: Array<String>) {
//Breakpoint!
@@ -8,7 +8,7 @@ fun main(args: Array<String>) {
}
// EXPRESSION: MyJavaClass()
// RESULT: instance of stepInto.MyJavaClass(id=ID): LstepInto/MyJavaClass;
// RESULT: instance of forTests.MyJavaClass(id=ID): LforTests/MyJavaClass;
// EXPRESSION: stepInto.MyJavaClass()
// RESULT: instance of stepInto.MyJavaClass(id=ID): LstepInto/MyJavaClass;
// EXPRESSION: forTests.MyJavaClass()
// RESULT: instance of forTests.MyJavaClass(id=ID): LforTests/MyJavaClass;
@@ -1,4 +1,4 @@
package stepInto;
package forTests;
import org.jetbrains.annotations.NotNull;
@@ -1,6 +1,6 @@
package checkNotNull
import stepInto.MyJavaClass
import forTests.MyJavaClass
fun main(args: Array<String>) {
val myClass = MyJavaClass()
@@ -1,6 +1,6 @@
package stepIntoSpecificKotlinClasses
import stepInto.MyJavaClass
import forTests.MyJavaClass
fun main(args: Array<String>) {
val myClass = MyJavaClass()
@@ -1,6 +1,6 @@
package javaFun
import stepInto.MyJavaClass
import forTests.MyJavaClass
fun main(args: Array<String>) {
val klass = MyJavaClass()
@@ -32,41 +32,37 @@ import com.intellij.debugger.settings.DebuggerSettings
public abstract class AbstractKotlinSteppingTest : KotlinDebuggerTestBase() {
protected fun doStepIntoTest(path: String) {
val fileText = FileUtil.loadFile(File(path))
configureSettings(fileText)
createDebugProcess(path)
val count = findStringWithPrefixes(fileText, "// STEP_INTO: ")?.toInt() ?: 1
for (i in 1..count) {
onBreakpoint { stepInto() }
}
finish()
doTest(path, "STEP_INTO")
}
protected fun doStepOutTest(path: String) {
doTest(path, "STEP_OUT")
}
protected fun doSmartStepIntoTest(path: String) {
doTest(path, "SMART_STEP_INTO")
}
private fun doTest(path: String, command: String) {
val fileText = FileUtil.loadFile(File(path))
configureSettings(fileText)
createDebugProcess(path)
val count = findStringWithPrefixes(fileText, "// STEP_OUT: ")?.toInt() ?: 1
for (i in 1..count) {
onBreakpoint { stepOut() }
for (i in 1..(getPrefixedInt(fileText, "// $command: ") ?: 1)) {
onBreakpoint {
when(command) {
"STEP_INTO" -> stepInto()
"STEP_OUT" -> stepOut()
"SMART_STEP_INTO" -> smartStepInto()
}
}
}
finish()
}
protected fun doSmartStepIntoTest(path: String) {
createDebugProcess(path)
onBreakpoint { smartStepInto() }
finish()
}
private fun SuspendContextImpl.smartStepInto() {
this.smartStepInto(false)
}
@@ -29,341 +29,341 @@ import java.util.regex.Pattern;
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
@TestMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto")
@TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepInto extends AbstractKotlinSteppingTest {
public void testAllFilesPresentInStepInto() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto"), Pattern.compile("^(.+)\\.kt$"), true);
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("classObjectFunFromClass.kt")
public void testClassObjectFunFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
doStepIntoTest(fileName);
}
@TestMetadata("classObjectFunFromTopLevel.kt")
public void testClassObjectFunFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
doStepIntoTest(fileName);
}
@TestMetadata("extFun.kt")
public void testExtFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/extFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/extFun.kt");
doStepIntoTest(fileName);
}
@TestMetadata("javaFun.kt")
public void testJavaFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/javaFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaFun.kt");
doStepIntoTest(fileName);
}
@TestMetadata("memberFunFromClass.kt")
public void testMemberFunFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberFunFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromClass.kt");
doStepIntoTest(fileName);
}
@TestMetadata("memberFunFromTopLevel.kt")
public void testMemberFunFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
doStepIntoTest(fileName);
}
@TestMetadata("memberGetterFromClass.kt")
public void testMemberGetterFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
doStepIntoTest(fileName);
}
@TestMetadata("memberGetterFromTopLevel.kt")
public void testMemberGetterFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
doStepIntoTest(fileName);
}
@TestMetadata("objectFun.kt")
public void testObjectFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/objectFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/objectFun.kt");
doStepIntoTest(fileName);
}
@TestMetadata("topLevelFunFromClass.kt")
public void testTopLevelFunFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
doStepIntoTest(fileName);
}
@TestMetadata("topLevelFunFromTopLevel.kt")
public void testTopLevelFunFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
doStepIntoTest(fileName);
}
@TestMetadata("topLevelGetterFromClass.kt")
public void testTopLevelGetterFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
doStepIntoTest(fileName);
}
@TestMetadata("topLevelGetterFromTopLevel.kt")
public void testTopLevelGetterFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
doStepIntoTest(fileName);
}
}
@TestMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto")
@TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SmartStepInto extends AbstractKotlinSteppingTest {
public void testAllFilesPresentInSmartStepInto() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto"), Pattern.compile("^(.+)\\.kt$"), true);
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("classObjectFunFromClass.kt")
public void testClassObjectFunFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("classObjectFunFromTopLevel.kt")
public void testClassObjectFunFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("extFun.kt")
public void testExtFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/extFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/extFun.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("javaFun.kt")
public void testJavaFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/javaFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaFun.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("memberFunFromClass.kt")
public void testMemberFunFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberFunFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromClass.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("memberFunFromTopLevel.kt")
public void testMemberFunFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("memberGetterFromClass.kt")
public void testMemberGetterFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("memberGetterFromTopLevel.kt")
public void testMemberGetterFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("objectFun.kt")
public void testObjectFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/objectFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/objectFun.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("topLevelFunFromClass.kt")
public void testTopLevelFunFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("topLevelFunFromTopLevel.kt")
public void testTopLevelFunFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("topLevelGetterFromClass.kt")
public void testTopLevelGetterFromClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
doSmartStepIntoTest(fileName);
}
@TestMetadata("topLevelGetterFromTopLevel.kt")
public void testTopLevelGetterFromTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
doSmartStepIntoTest(fileName);
}
}
@TestMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto")
@TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepIntoOnly extends AbstractKotlinSteppingTest {
@TestMetadata("accessors.kt")
public void testAccessors() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/accessors.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/accessors.kt");
doStepIntoTest(fileName);
}
public void testAllFilesPresentInStepIntoOnly() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepInto/stepInto"), Pattern.compile("^(.+)\\.kt$"), true);
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepInto"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("continueLabel.kt")
public void testContinueLabel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/continueLabel.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/continueLabel.kt");
doStepIntoTest(fileName);
}
@TestMetadata("defaultAccessors.kt")
public void testDefaultAccessors() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/defaultAccessors.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/defaultAccessors.kt");
doStepIntoTest(fileName);
}
@TestMetadata("forLoop.kt")
public void testForLoop() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/forLoop.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/forLoop.kt");
doStepIntoTest(fileName);
}
@TestMetadata("returnVoid.kt")
public void testReturnVoid() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/returnVoid.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/returnVoid.kt");
doStepIntoTest(fileName);
}
@TestMetadata("stepIntoFromInlineFun.kt")
public void testStepIntoFromInlineFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/stepIntoFromInlineFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/stepIntoFromInlineFun.kt");
doStepIntoTest(fileName);
}
@TestMetadata("stepIntoInlineFun.kt")
public void testStepIntoInlineFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/stepIntoInlineFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/stepIntoInlineFun.kt");
doStepIntoTest(fileName);
}
@TestMetadata("stepIntoStdLibInlineFun.kt")
public void testStepIntoStdLibInlineFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/stepIntoStdLibInlineFun.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/stepIntoStdLibInlineFun.kt");
doStepIntoTest(fileName);
}
@TestMetadata("syntheticMethods.kt")
public void testSyntheticMethods() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/syntheticMethods.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/syntheticMethods.kt");
doStepIntoTest(fileName);
}
@TestMetadata("whenExpr.kt")
public void testWhenExpr() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepInto/stepInto/whenExpr.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto/whenExpr.kt");
doStepIntoTest(fileName);
}
}
@TestMetadata("idea/testData/debugger/tinyApp/src/stepOut")
@TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOut")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepOut extends AbstractKotlinSteppingTest {
public void testAllFilesPresentInStepOut() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepOut"), Pattern.compile("^(.+)\\.kt$"), true);
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepOut"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("fieldWatchpoints.kt")
public void testFieldWatchpoints() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepOut/fieldWatchpoints.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOut/fieldWatchpoints.kt");
doStepOutTest(fileName);
}
@TestMetadata("inapplicableFieldWatchpoints.kt")
public void testInapplicableFieldWatchpoints() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepOut/inapplicableFieldWatchpoints.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOut/inapplicableFieldWatchpoints.kt");
doStepOutTest(fileName);
}
}
@TestMetadata("idea/testData/debugger/tinyApp/src/filters")
@TestMetadata("idea/testData/debugger/tinyApp/src/stepping/filters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Filters extends AbstractKotlinSteppingTest {
public void testAllFilesPresentInFilters() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/filters"), Pattern.compile("^(.+)\\.kt$"), true);
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/filters"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("checkNotNull.kt")
public void testCheckNotNull() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/checkNotNull.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/checkNotNull.kt");
doStepIntoTest(fileName);
}
@TestMetadata("doNotSkipClassloader.kt")
public void testDoNotSkipClassloader() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/doNotSkipClassloader.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/doNotSkipClassloader.kt");
doStepIntoTest(fileName);
}
@TestMetadata("doNotSkipConstructors.kt")
public void testDoNotSkipConstructors() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/doNotSkipConstructors.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/doNotSkipConstructors.kt");
doStepIntoTest(fileName);
}
@TestMetadata("npe.kt")
public void testNpe() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/npe.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/npe.kt");
doStepIntoTest(fileName);
}
@TestMetadata("reflectKClass.kt")
public void testReflectKClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/reflectKClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/reflectKClass.kt");
doStepIntoTest(fileName);
}
@TestMetadata("skipClassloader.kt")
public void testSkipClassloader() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/skipClassloader.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/skipClassloader.kt");
doStepIntoTest(fileName);
}
@TestMetadata("skipConstructors.kt")
public void testSkipConstructors() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/skipConstructors.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/skipConstructors.kt");
doStepIntoTest(fileName);
}
@TestMetadata("stdlibStep.kt")
public void testStdlibStep() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/stdlibStep.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/stdlibStep.kt");
doStepIntoTest(fileName);
}
@TestMetadata("stepIntoSpecificKotlinClasses.kt")
public void testStepIntoSpecificKotlinClasses() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/stepIntoSpecificKotlinClasses.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/stepIntoSpecificKotlinClasses.kt");
doStepIntoTest(fileName);
}
@TestMetadata("stepIntoStdlib.kt")
public void testStepIntoStdlib() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/stepIntoStdlib.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/stepIntoStdlib.kt");
doStepIntoTest(fileName);
}
@TestMetadata("stepIntoStdlibFacadeClass.kt")
public void testStepIntoStdlibFacadeClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/filters/stepIntoStdlibFacadeClass.kt");
String fileName = JetTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/filters/stepIntoStdlibFacadeClass.kt");
doStepIntoTest(fileName);
}
}