diff --git a/.idea/dictionaries/yan.xml b/.idea/dictionaries/yan.xml
index b6690edaf4b..6e6a8ec005f 100644
--- a/.idea/dictionaries/yan.xml
+++ b/.idea/dictionaries/yan.xml
@@ -8,8 +8,10 @@
impls
kapt
kotlinc
+ mutators
parceler
repl
+ testdata
uast
unbox
unboxed
diff --git a/build.gradle.kts b/build.gradle.kts
index e9c23532e27..95c9d69a826 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -634,7 +634,8 @@ tasks {
":plugins:uast-kotlin:test",
":kotlin-annotation-processing-gradle:test",
":kotlinx-serialization-compiler-plugin:test",
- ":kotlinx-serialization-ide-plugin:test"
+ ":kotlinx-serialization-ide-plugin:test",
+ ":idea:jvm-debugger:jvm-debugger-test:test"
)
}
diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.kt
index 609d145dff5..a4925059470 100644
--- a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.kt
+++ b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.kt
@@ -398,7 +398,7 @@ object KotlinToJVMBytecodeCompiler {
(File(path).takeIf(File::isAbsolute) ?: buildFile.resolveSibling(path)).absolutePath
}
- private class MainClassProvider(generationState: GenerationState, environment: KotlinCoreEnvironment) {
+ class MainClassProvider(generationState: GenerationState, environment: KotlinCoreEnvironment) {
val mainClassFqName: FqName? by lazy { findMainClass(generationState, environment.getSourceFiles()) }
private fun findMainClass(generationState: GenerationState, files: List): FqName? {
diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/findMainClass.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/findMainClass.kt
new file mode 100644
index 00000000000..bcd76de599f
--- /dev/null
+++ b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/findMainClass.kt
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.cli.jvm.compiler
+
+import org.jetbrains.kotlin.codegen.state.GenerationState
+import org.jetbrains.kotlin.fileClasses.JvmFileClassUtil
+import org.jetbrains.kotlin.idea.MainFunctionDetector
+import org.jetbrains.kotlin.name.FqName
+import org.jetbrains.kotlin.psi.KtFile
+
+fun findMainClass(generationState: GenerationState, files: List): FqName? {
+ val mainFunctionDetector = MainFunctionDetector(generationState.bindingContext, generationState.languageVersionSettings)
+ return files.asSequence()
+ .map { file ->
+ if (mainFunctionDetector.hasMain(file.declarations))
+ JvmFileClassUtil.getFileClassInfoNoResolve(file).facadeClassFqName
+ else
+ null
+ }
+ .singleOrNull { it != null }
+}
\ No newline at end of file
diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java
index d5c390c9ae9..4e589411c9f 100644
--- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java
+++ b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java
@@ -34,7 +34,7 @@ public abstract class AbstractBlackBoxCodegenTest extends CodegenTestCase {
) throws Exception {
boolean isIgnored = InTextDirectivesUtils.isIgnoredTarget(getBackend(), wholeFile);
- compile(files, !isIgnored);
+ compile(files, !isIgnored, false);
try {
blackBox(!isIgnored, unexpectedBehaviour);
diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/CodegenTestCase.java b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/CodegenTestCase.java
index c864c57f0a7..6960cbd9952 100644
--- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/CodegenTestCase.java
+++ b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/CodegenTestCase.java
@@ -641,10 +641,10 @@ public abstract class CodegenTestCase extends KtUsefulTestCase {
}
protected void compile(@NotNull List files) {
- compile(files, true);
+ compile(files, true, false);
}
- protected void compile(@NotNull List files, boolean reportProblems) {
+ protected void compile(@NotNull List files, boolean reportProblems, boolean dumpKotlinFiles) {
File javaSourceDir = writeJavaFiles(files);
configurationKind = extractConfigurationKind(files);
@@ -676,18 +676,16 @@ public abstract class CodegenTestCase extends KtUsefulTestCase {
generateClassesInFile(reportProblems);
- if (javaSourceDir != null && javaClassesOutputDirectory == null) {
- // If there are Java files, they should be compiled against the class files produced by Kotlin, so we dump them to the disk
- File kotlinOut;
- try {
- kotlinOut = KotlinTestUtils.tmpDir(toString());
- }
- catch (IOException e) {
- throw ExceptionUtilsKt.rethrow(e);
- }
+ boolean compileJavaFiles = javaSourceDir != null && javaClassesOutputDirectory == null;
+ File kotlinOut = null;
+ // If there are Java files, they should be compiled against the class files produced by Kotlin, so we dump them to the disk
+ if (dumpKotlinFiles || compileJavaFiles) {
+ kotlinOut = getKotlinClassesOutputDirectory();
OutputUtilsKt.writeAllTo(classFileFactory, kotlinOut);
+ }
+ if (compileJavaFiles) {
List javaClasspath = new ArrayList<>();
javaClasspath.add(kotlinOut.getPath());
@@ -695,9 +693,8 @@ public abstract class CodegenTestCase extends KtUsefulTestCase {
javaClasspath.add(ForTestCompileRuntime.androidAnnotationsForTests().getPath());
}
- javaClassesOutputDirectory = CodegenTestUtil.compileJava(
- findJavaSourcesInDirectory(javaSourceDir), javaClasspath, javacOptions
- );
+ javaClassesOutputDirectory = getJavaClassesOutputDirectory();
+ compileJava(findJavaSourcesInDirectory(javaSourceDir), javaClasspath, javacOptions, javaClassesOutputDirectory);
}
}
@@ -801,18 +798,35 @@ public abstract class CodegenTestCase extends KtUsefulTestCase {
}, coroutinesPackage);
}
+ @NotNull
+ protected File getJavaSourcesOutputDirectory() {
+ return createTempDirectory("java-files");
+ }
+
+ @NotNull
+ protected File getJavaClassesOutputDirectory() {
+ return createTempDirectory("java-classes");
+ }
+
+ protected File getKotlinClassesOutputDirectory() {
+ return createTempDirectory(toString());
+ }
+
+ @NotNull
+ private static File createTempDirectory(String prefix) {
+ try {
+ return KotlinTestUtils.tmpDir(prefix);
+ } catch (IOException e) {
+ throw ExceptionUtilsKt.rethrow(e);
+ }
+ }
+
@Nullable
- protected static File writeJavaFiles(@NotNull List files) {
+ protected File writeJavaFiles(@NotNull List files) {
List javaFiles = CollectionsKt.filter(files, file -> file.name.endsWith(".java"));
if (javaFiles.isEmpty()) return null;
- File dir;
- try {
- dir = KotlinTestUtils.tmpDir("java-files");
- }
- catch (IOException e) {
- throw ExceptionUtilsKt.rethrow(e);
- }
+ File dir = getJavaSourcesOutputDirectory();
for (TestFile testFile : javaFiles) {
File file = new File(dir, testFile.name);
diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/InTextDirectivesUtils.java b/compiler/tests-common/tests/org/jetbrains/kotlin/test/InTextDirectivesUtils.java
index 9bfab9b4f12..d045d1e2fb8 100644
--- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/InTextDirectivesUtils.java
+++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/InTextDirectivesUtils.java
@@ -100,11 +100,11 @@ public final class InTextDirectivesUtils {
@NotNull
public static List findLinesWithPrefixesRemoved(String fileText, String... prefixes) {
- return findLinesWithPrefixesRemoved(fileText, true, prefixes);
+ return findLinesWithPrefixesRemoved(fileText, true, true, prefixes);
}
@NotNull
- public static List findLinesWithPrefixesRemoved(String fileText, boolean trim, String... prefixes) {
+ public static List findLinesWithPrefixesRemoved(String fileText, boolean trim, boolean strict, String... prefixes) {
if (prefixes.length == 0) {
throw new IllegalArgumentException("Please specify the prefixes to check");
}
@@ -121,7 +121,7 @@ public final class InTextDirectivesUtils {
Character.isWhitespace(prefix.charAt(prefix.length() - 1))) {
result.add(trim ? noPrefixLine.trim() : StringUtil.trimTrailing(StringsKt.drop(noPrefixLine, 1)));
break;
- } else {
+ } else if (strict) {
throw new AssertionError(
"Line starts with prefix \"" + prefix + "\", but doesn't have space symbol after it: " + line);
}
diff --git a/generators/build.gradle.kts b/generators/build.gradle.kts
index b5da3a2ef0b..5bc8c1255e7 100644
--- a/generators/build.gradle.kts
+++ b/generators/build.gradle.kts
@@ -29,6 +29,7 @@ dependencies {
compile(projectTests(":kotlin-noarg-compiler-plugin"))
compile(projectTests(":kotlin-sam-with-receiver-compiler-plugin"))
compile(projectTests(":kotlinx-serialization-compiler-plugin"))
+ compile(projectTests(":idea:jvm-debugger:jvm-debugger-test"))
compile(projectTests(":generators:test-generator"))
compile(projectTests(":idea"))
builtinsCompile("org.jetbrains.kotlin:kotlin-stdlib:$bootstrapKotlinVersion")
diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt
index 6fef4c2ff9a..7edbf9697ec 100644
--- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt
+++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt
@@ -53,9 +53,10 @@ import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralKotlinToKotlinCo
import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralTextToKotlinCopyPasteTest
import org.jetbrains.kotlin.idea.conversion.copy.AbstractTextJavaToKotlinCopyPasteConversionTest
import org.jetbrains.kotlin.idea.coverage.AbstractKotlinCoverageOutputFilesTest
-import org.jetbrains.kotlin.idea.debugger.*
import org.jetbrains.kotlin.idea.debugger.evaluate.*
-import org.jetbrains.kotlin.idea.debugger.sequence.exec.AbstractSequenceTraceTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.exec.AbstractSequenceTraceTestCase
+import org.jetbrains.kotlin.idea.debugger.test.*
+import org.jetbrains.kotlin.idea.debugger.test.AbstractFileRankingTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToDecompiledLibraryTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTestWithJS
@@ -161,6 +162,70 @@ import org.jetbrains.kotlinx.serialization.AbstractSerializationPluginDiagnostic
fun main(args: Array) {
System.setProperty("java.awt.headless", "true")
+ testGroup("idea/jvm-debugger/jvm-debugger-test/test", "idea/jvm-debugger/jvm-debugger-test/testData") {
+ testClass {
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepInto"
+ )
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doSmartStepIntoTest",
+ testClassName = "SmartStepInto"
+ )
+ model(
+ "stepping/stepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepIntoOnly"
+ )
+ model("stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
+ model("stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
+ model("stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
+ model("stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
+ model("stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
+ }
+
+ testClass {
+ model("evaluation/singleBreakpoint", testMethod = "doSingleBreakpointTest")
+ model("evaluation/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
+ }
+
+ testClass {
+ model("selectExpression", recursive = false)
+ model("selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
+ }
+
+ testClass {
+ model("positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
+ model("positionManager", recursive = false, extension = null, testClassName = "MultiFile")
+ }
+
+ testClass {
+ model("smartStepInto")
+ }
+
+ testClass {
+ model("breakpointApplicability")
+ }
+
+ testClass {
+ model("fileRanking")
+ }
+
+ testClass {
+ model("asyncStackTrace")
+ }
+
+ testClass {
+ // TODO: implement mapping logic for terminal operations
+ model("sequence/streams/sequence", excludeDirs = listOf("terminal"))
+ }
+ }
+
testGroup("idea/tests", "idea/testData") {
testClass {
model("resolve/additionalLazyResolve")
@@ -636,63 +701,10 @@ fun main(args: Array) {
model("editor/optimizeImports/common", pattern = KT_WITHOUT_DOTS_IN_NAME)
}
- testClass {
- model("debugger/positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
- model("debugger/positionManager", recursive = false, extension = null, testClassName = "MultiFile")
- }
-
- testClass {
- model("debugger/breakpointApplicability")
- }
-
testClass {
model("debugger/exceptionFilter", pattern = """^([^\.]+)$""", recursive = false)
}
- testClass {
- model("debugger/smartStepInto")
- }
-
- testClass {
- model(
- "debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto",
- pattern = KT_WITHOUT_DOTS_IN_NAME,
- testMethod = "doStepIntoTest",
- testClassName = "StepInto"
- )
- model(
- "debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto",
- pattern = KT_WITHOUT_DOTS_IN_NAME,
- testMethod = "doSmartStepIntoTest",
- testClassName = "SmartStepInto"
- )
- model(
- "debugger/tinyApp/src/stepping/stepInto",
- pattern = KT_WITHOUT_DOTS_IN_NAME,
- testMethod = "doStepIntoTest",
- testClassName = "StepIntoOnly"
- )
- model("debugger/tinyApp/src/stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
- model("debugger/tinyApp/src/stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
- model("debugger/tinyApp/src/stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
- model("debugger/tinyApp/src/stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
- model("debugger/tinyApp/src/stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
- }
-
- testClass {
- model("debugger/tinyApp/src/evaluate/singleBreakpoint", testMethod = "doSingleBreakpointTest")
- model("debugger/tinyApp/src/evaluate/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
- }
-
- testClass {
- model("debugger/fileRanking")
- }
-
- testClass {
- // We need to implement mapping logic for terminal operations
- model("debugger/tinyApp/src/streams/sequence", excludeDirs = listOf("terminal"))
- }
-
testClass {
model("stubs", extension = "kt")
}
@@ -754,11 +766,6 @@ fun main(args: Array) {
model("refactoring/pushDown/j2k", extension = "java", singleClass = true, testClassName = "J2K", testMethod = "doJavaTest")
}
- testClass {
- model("debugger/selectExpression", recursive = false)
- model("debugger/selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
- }
-
testClass {
model("coverage/outputFiles")
}
diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.183 b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.183
index 7c62ecbaf3f..1fa949c939a 100644
--- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.183
+++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.183
@@ -65,9 +65,10 @@ import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralKotlinToKotlinCo
import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralTextToKotlinCopyPasteTest
import org.jetbrains.kotlin.idea.conversion.copy.AbstractTextJavaToKotlinCopyPasteConversionTest
import org.jetbrains.kotlin.idea.coverage.AbstractKotlinCoverageOutputFilesTest
-import org.jetbrains.kotlin.idea.debugger.*
import org.jetbrains.kotlin.idea.debugger.evaluate.*
-import org.jetbrains.kotlin.idea.debugger.sequence.exec.AbstractSequenceTraceTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.exec.AbstractSequenceTraceTestCase
+import org.jetbrains.kotlin.idea.debugger.test.*
+import org.jetbrains.kotlin.idea.debugger.test.AbstractFileRankingTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToDecompiledLibraryTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTestWithJS
@@ -171,6 +172,70 @@ import org.jetbrains.kotlinx.serialization.AbstractSerializationIrBytecodeListin
fun main(args: Array) {
System.setProperty("java.awt.headless", "true")
+ testGroup("idea/jvm-debugger/jvm-debugger-test/test", "idea/jvm-debugger/jvm-debugger-test/testData") {
+ testClass {
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepInto"
+ )
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doSmartStepIntoTest",
+ testClassName = "SmartStepInto"
+ )
+ model(
+ "stepping/stepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepIntoOnly"
+ )
+ model("stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
+ model("stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
+ model("stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
+ model("stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
+ model("stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
+ }
+
+ testClass {
+ model("evaluation/singleBreakpoint", testMethod = "doSingleBreakpointTest")
+ model("evaluation/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
+ }
+
+ testClass {
+ model("selectExpression", recursive = false)
+ model("selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
+ }
+
+ testClass {
+ model("positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
+ model("positionManager", recursive = false, extension = null, testClassName = "MultiFile")
+ }
+
+ testClass {
+ model("smartStepInto")
+ }
+
+ testClass {
+ model("breakpointApplicability")
+ }
+
+ testClass {
+ model("fileRanking")
+ }
+
+ testClass {
+ model("asyncStackTrace")
+ }
+
+ testClass {
+ // TODO: implement mapping logic for terminal operations
+ model("sequence/streams/sequence", excludeDirs = listOf("terminal"))
+ }
+ }
+
testGroup("idea/tests", "idea/testData") {
testClass {
model("resolve/additionalLazyResolve")
@@ -628,48 +693,10 @@ fun main(args: Array) {
model("editor/optimizeImports/common", pattern = KT_WITHOUT_DOTS_IN_NAME)
}
- testClass {
- model("debugger/positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
- model("debugger/positionManager", recursive = false, extension = null, testClassName = "MultiFile")
- }
-
testClass {
model("debugger/exceptionFilter", pattern = """^([^\.]+)$""", recursive = false)
}
- testClass {
- model("debugger/smartStepInto")
- }
-
- testClass {
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepInto")
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doSmartStepIntoTest", testClassName = "SmartStepInto")
- model("debugger/tinyApp/src/stepping/stepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepIntoOnly")
- model("debugger/tinyApp/src/stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
- model("debugger/tinyApp/src/stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
- model("debugger/tinyApp/src/stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
- model("debugger/tinyApp/src/stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
- model("debugger/tinyApp/src/stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
- }
-
- testClass {
- model("debugger/tinyApp/src/evaluate/singleBreakpoint", testMethod = "doSingleBreakpointTest")
- model("debugger/tinyApp/src/evaluate/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
- }
-
- testClass {
- model("debugger/tinyApp/src/asyncStackTrace")
- }
-
- testClass {
- model("debugger/fileRanking")
- }
-
- testClass {
- // We need to implement mapping logic for terminal operations
- model("debugger/tinyApp/src/streams/sequence", excludeDirs = listOf("terminal"))
- }
-
testClass {
model("stubs", extension = "kt")
}
@@ -727,11 +754,6 @@ fun main(args: Array) {
model("refactoring/pushDown/j2k", extension = "java", singleClass = true, testClassName = "J2K", testMethod = "doJavaTest")
}
- testClass {
- model("debugger/selectExpression", recursive = false)
- model("debugger/selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
- }
-
testClass {
model("coverage/outputFiles")
}
diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as34 b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as34
index 41e6d583905..c85a6d51493 100644
--- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as34
+++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as34
@@ -65,8 +65,10 @@ import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralKotlinToKotlinCo
import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralTextToKotlinCopyPasteTest
import org.jetbrains.kotlin.idea.conversion.copy.AbstractTextJavaToKotlinCopyPasteConversionTest
import org.jetbrains.kotlin.idea.coverage.AbstractKotlinCoverageOutputFilesTest
-import org.jetbrains.kotlin.idea.debugger.*
import org.jetbrains.kotlin.idea.debugger.evaluate.*
+import org.jetbrains.kotlin.idea.debugger.test.sequence.exec.AbstractSequenceTraceTestCase
+import org.jetbrains.kotlin.idea.debugger.test.*
+import org.jetbrains.kotlin.idea.debugger.test.AbstractFileRankingTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToDecompiledLibraryTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTestWithJS
@@ -163,6 +165,70 @@ import org.jetbrains.kotlinx.serialization.AbstractSerializationIrBytecodeListin
fun main(args: Array) {
System.setProperty("java.awt.headless", "true")
+ testGroup("idea/jvm-debugger/jvm-debugger-test/test", "idea/jvm-debugger/jvm-debugger-test/testData") {
+ testClass {
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepInto"
+ )
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doSmartStepIntoTest",
+ testClassName = "SmartStepInto"
+ )
+ model(
+ "stepping/stepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepIntoOnly"
+ )
+ model("stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
+ model("stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
+ model("stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
+ model("stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
+ model("stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
+ }
+
+ testClass {
+ model("evaluation/singleBreakpoint", testMethod = "doSingleBreakpointTest")
+ model("evaluation/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
+ }
+
+ testClass {
+ model("selectExpression", recursive = false)
+ model("selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
+ }
+
+ testClass {
+ model("positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
+ model("positionManager", recursive = false, extension = null, testClassName = "MultiFile")
+ }
+
+ testClass {
+ model("smartStepInto")
+ }
+
+ testClass {
+ model("breakpointApplicability")
+ }
+
+ testClass {
+ model("fileRanking")
+ }
+
+ testClass {
+ model("asyncStackTrace")
+ }
+
+ testClass {
+ // TODO: implement mapping logic for terminal operations
+ model("sequence/streams/sequence", excludeDirs = listOf("terminal"))
+ }
+ }
+
testGroup("idea/tests", "idea/testData") {
testClass {
model("resolve/additionalLazyResolve")
@@ -615,39 +681,10 @@ fun main(args: Array) {
model("editor/optimizeImports/common", pattern = KT_WITHOUT_DOTS_IN_NAME)
}
- testClass {
- model("debugger/positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
- model("debugger/positionManager", recursive = false, extension = null, testClassName = "MultiFile")
- }
-
testClass {
model("debugger/exceptionFilter", pattern = """^([^\.]+)$""", recursive = false)
}
- testClass {
- model("debugger/smartStepInto")
- }
-
- testClass {
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepInto")
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doSmartStepIntoTest", testClassName = "SmartStepInto")
- model("debugger/tinyApp/src/stepping/stepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepIntoOnly")
- model("debugger/tinyApp/src/stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
- model("debugger/tinyApp/src/stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
- model("debugger/tinyApp/src/stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
- model("debugger/tinyApp/src/stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
- model("debugger/tinyApp/src/stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
- }
-
- testClass {
- model("debugger/tinyApp/src/evaluate/singleBreakpoint", testMethod = "doSingleBreakpointTest")
- model("debugger/tinyApp/src/evaluate/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
- }
-
- testClass {
- model("debugger/tinyApp/src/asyncStackTrace")
- }
-
testClass {
model("stubs", extension = "kt")
}
@@ -705,11 +742,6 @@ fun main(args: Array) {
model("refactoring/pushDown/j2k", extension = "java", singleClass = true, testClassName = "J2K", testMethod = "doJavaTest")
}
- testClass {
- model("debugger/selectExpression", recursive = false)
- model("debugger/selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
- }
-
testClass {
model("coverage/outputFiles")
}
diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as35 b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as35
index 81297f2f5e2..c85a6d51493 100644
--- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as35
+++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as35
@@ -65,8 +65,10 @@ import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralKotlinToKotlinCo
import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralTextToKotlinCopyPasteTest
import org.jetbrains.kotlin.idea.conversion.copy.AbstractTextJavaToKotlinCopyPasteConversionTest
import org.jetbrains.kotlin.idea.coverage.AbstractKotlinCoverageOutputFilesTest
-import org.jetbrains.kotlin.idea.debugger.*
import org.jetbrains.kotlin.idea.debugger.evaluate.*
+import org.jetbrains.kotlin.idea.debugger.test.sequence.exec.AbstractSequenceTraceTestCase
+import org.jetbrains.kotlin.idea.debugger.test.*
+import org.jetbrains.kotlin.idea.debugger.test.AbstractFileRankingTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToDecompiledLibraryTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTestWithJS
@@ -163,6 +165,70 @@ import org.jetbrains.kotlinx.serialization.AbstractSerializationIrBytecodeListin
fun main(args: Array) {
System.setProperty("java.awt.headless", "true")
+ testGroup("idea/jvm-debugger/jvm-debugger-test/test", "idea/jvm-debugger/jvm-debugger-test/testData") {
+ testClass {
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepInto"
+ )
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doSmartStepIntoTest",
+ testClassName = "SmartStepInto"
+ )
+ model(
+ "stepping/stepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepIntoOnly"
+ )
+ model("stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
+ model("stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
+ model("stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
+ model("stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
+ model("stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
+ }
+
+ testClass {
+ model("evaluation/singleBreakpoint", testMethod = "doSingleBreakpointTest")
+ model("evaluation/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
+ }
+
+ testClass {
+ model("selectExpression", recursive = false)
+ model("selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
+ }
+
+ testClass {
+ model("positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
+ model("positionManager", recursive = false, extension = null, testClassName = "MultiFile")
+ }
+
+ testClass {
+ model("smartStepInto")
+ }
+
+ testClass {
+ model("breakpointApplicability")
+ }
+
+ testClass {
+ model("fileRanking")
+ }
+
+ testClass {
+ model("asyncStackTrace")
+ }
+
+ testClass {
+ // TODO: implement mapping logic for terminal operations
+ model("sequence/streams/sequence", excludeDirs = listOf("terminal"))
+ }
+ }
+
testGroup("idea/tests", "idea/testData") {
testClass {
model("resolve/additionalLazyResolve")
@@ -615,35 +681,10 @@ fun main(args: Array) {
model("editor/optimizeImports/common", pattern = KT_WITHOUT_DOTS_IN_NAME)
}
- testClass {
- model("debugger/positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
- model("debugger/positionManager", recursive = false, extension = null, testClassName = "MultiFile")
- }
-
testClass {
model("debugger/exceptionFilter", pattern = """^([^\.]+)$""", recursive = false)
}
- testClass {
- model("debugger/smartStepInto")
- }
-
- testClass {
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepInto")
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doSmartStepIntoTest", testClassName = "SmartStepInto")
- model("debugger/tinyApp/src/stepping/stepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepIntoOnly")
- model("debugger/tinyApp/src/stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
- model("debugger/tinyApp/src/stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
- model("debugger/tinyApp/src/stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
- model("debugger/tinyApp/src/stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
- model("debugger/tinyApp/src/stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
- }
-
- testClass {
- model("debugger/tinyApp/src/evaluate/singleBreakpoint", testMethod = "doSingleBreakpointTest")
- model("debugger/tinyApp/src/evaluate/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
- }
-
testClass {
model("stubs", extension = "kt")
}
@@ -701,11 +742,6 @@ fun main(args: Array) {
model("refactoring/pushDown/j2k", extension = "java", singleClass = true, testClassName = "J2K", testMethod = "doJavaTest")
}
- testClass {
- model("debugger/selectExpression", recursive = false)
- model("debugger/selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
- }
-
testClass {
model("coverage/outputFiles")
}
diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as36 b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as36
index 81297f2f5e2..c85a6d51493 100644
--- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as36
+++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt.as36
@@ -65,8 +65,10 @@ import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralKotlinToKotlinCo
import org.jetbrains.kotlin.idea.conversion.copy.AbstractLiteralTextToKotlinCopyPasteTest
import org.jetbrains.kotlin.idea.conversion.copy.AbstractTextJavaToKotlinCopyPasteConversionTest
import org.jetbrains.kotlin.idea.coverage.AbstractKotlinCoverageOutputFilesTest
-import org.jetbrains.kotlin.idea.debugger.*
import org.jetbrains.kotlin.idea.debugger.evaluate.*
+import org.jetbrains.kotlin.idea.debugger.test.sequence.exec.AbstractSequenceTraceTestCase
+import org.jetbrains.kotlin.idea.debugger.test.*
+import org.jetbrains.kotlin.idea.debugger.test.AbstractFileRankingTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToDecompiledLibraryTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTest
import org.jetbrains.kotlin.idea.decompiler.navigation.AbstractNavigateToLibrarySourceTestWithJS
@@ -163,6 +165,70 @@ import org.jetbrains.kotlinx.serialization.AbstractSerializationIrBytecodeListin
fun main(args: Array) {
System.setProperty("java.awt.headless", "true")
+ testGroup("idea/jvm-debugger/jvm-debugger-test/test", "idea/jvm-debugger/jvm-debugger-test/testData") {
+ testClass {
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepInto"
+ )
+ model(
+ "stepping/stepIntoAndSmartStepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doSmartStepIntoTest",
+ testClassName = "SmartStepInto"
+ )
+ model(
+ "stepping/stepInto",
+ pattern = KT_WITHOUT_DOTS_IN_NAME,
+ testMethod = "doStepIntoTest",
+ testClassName = "StepIntoOnly"
+ )
+ model("stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
+ model("stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
+ model("stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
+ model("stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
+ model("stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
+ }
+
+ testClass {
+ model("evaluation/singleBreakpoint", testMethod = "doSingleBreakpointTest")
+ model("evaluation/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
+ }
+
+ testClass {
+ model("selectExpression", recursive = false)
+ model("selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
+ }
+
+ testClass {
+ model("positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
+ model("positionManager", recursive = false, extension = null, testClassName = "MultiFile")
+ }
+
+ testClass {
+ model("smartStepInto")
+ }
+
+ testClass {
+ model("breakpointApplicability")
+ }
+
+ testClass {
+ model("fileRanking")
+ }
+
+ testClass {
+ model("asyncStackTrace")
+ }
+
+ testClass {
+ // TODO: implement mapping logic for terminal operations
+ model("sequence/streams/sequence", excludeDirs = listOf("terminal"))
+ }
+ }
+
testGroup("idea/tests", "idea/testData") {
testClass {
model("resolve/additionalLazyResolve")
@@ -615,35 +681,10 @@ fun main(args: Array) {
model("editor/optimizeImports/common", pattern = KT_WITHOUT_DOTS_IN_NAME)
}
- testClass {
- model("debugger/positionManager", recursive = false, extension = "kt", testClassName = "SingleFile")
- model("debugger/positionManager", recursive = false, extension = null, testClassName = "MultiFile")
- }
-
testClass {
model("debugger/exceptionFilter", pattern = """^([^\.]+)$""", recursive = false)
}
- testClass {
- model("debugger/smartStepInto")
- }
-
- testClass {
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepInto")
- model("debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doSmartStepIntoTest", testClassName = "SmartStepInto")
- model("debugger/tinyApp/src/stepping/stepInto", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest", testClassName = "StepIntoOnly")
- model("debugger/tinyApp/src/stepping/stepOut", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOutTest")
- model("debugger/tinyApp/src/stepping/stepOver", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverTest")
- model("debugger/tinyApp/src/stepping/stepOverForce", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepOverForceTest")
- model("debugger/tinyApp/src/stepping/filters", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doStepIntoTest")
- model("debugger/tinyApp/src/stepping/custom", pattern = KT_WITHOUT_DOTS_IN_NAME, testMethod = "doCustomTest")
- }
-
- testClass {
- model("debugger/tinyApp/src/evaluate/singleBreakpoint", testMethod = "doSingleBreakpointTest")
- model("debugger/tinyApp/src/evaluate/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest")
- }
-
testClass {
model("stubs", extension = "kt")
}
@@ -701,11 +742,6 @@ fun main(args: Array) {
model("refactoring/pushDown/j2k", extension = "java", singleClass = true, testClassName = "J2K", testMethod = "doJavaTest")
}
- testClass {
- model("debugger/selectExpression", recursive = false)
- model("debugger/selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls")
- }
-
testClass {
model("coverage/outputFiles")
}
diff --git a/idea/build.gradle.kts b/idea/build.gradle.kts
index debc12d7d11..2191620e862 100644
--- a/idea/build.gradle.kts
+++ b/idea/build.gradle.kts
@@ -157,7 +157,6 @@ dependencies {
testCompile(intellijPluginDep("copyright"))
testCompile(intellijPluginDep("properties"))
testCompile(intellijPluginDep("java-i18n"))
- testCompile(intellijPluginDep("stream-debugger"))
testCompileOnly(intellijDep())
testCompileOnly(commonDep("com.google.code.findbugs", "jsr305"))
testCompileOnly(intellijPluginDep("gradle"))
diff --git a/idea/jvm-debugger/jvm-debugger-test/build.gradle.kts b/idea/jvm-debugger/jvm-debugger-test/build.gradle.kts
new file mode 100644
index 00000000000..d996042a04c
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/build.gradle.kts
@@ -0,0 +1,58 @@
+plugins {
+ kotlin("jvm")
+ id("jps-compatible")
+}
+
+dependencies {
+ testCompileOnly(intellijDep())
+
+ testCompile(project(":idea:jvm-debugger:jvm-debugger-core"))
+ testCompile(project(":idea:jvm-debugger:jvm-debugger-evaluation"))
+ testCompile(project(":idea:jvm-debugger:jvm-debugger-sequence"))
+ testCompile(project(":compiler:backend"))
+ testCompile(files("${System.getProperty("java.home")}/../lib/tools.jar"))
+ testCompile(project(":kotlin-test:kotlin-test-junit"))
+ testCompile(projectTests(":compiler:tests-common"))
+ testCompile(projectTests(":idea:idea-test-framework")) { isTransitive = false }
+ testCompile(commonDep("junit:junit"))
+
+ testCompile(intellijPluginDep("stream-debugger"))
+
+ Platform[191].orLower {
+ testCompileOnly(intellijDep()) { includeJars("java-api", "java-impl") }
+ }
+
+ Platform[192].orHigher {
+ testCompileOnly(intellijPluginDep("java")) { includeJars("java-api", "java-impl") }
+ testRuntime(intellijPluginDep("java"))
+ }
+
+ testRuntime(project(":nj2k:nj2k-services")) { isTransitive = false }
+ testRuntime(project(":idea:idea-jvm"))
+ testRuntime(project(":idea:idea-native")) { isTransitive = false }
+ testRuntime(project(":idea:idea-gradle-native")) { isTransitive = false }
+ testRuntime(project(":kotlin-native:kotlin-native-library-reader")) { isTransitive = false }
+ testRuntime(project(":kotlin-native:kotlin-native-utils")) { isTransitive = false }
+
+ testRuntime(project(":kotlin-reflect"))
+ testRuntime(project(":sam-with-receiver-ide-plugin"))
+ testRuntime(project(":allopen-ide-plugin"))
+ testRuntime(project(":noarg-ide-plugin"))
+ testRuntime(project(":kotlin-scripting-idea"))
+ testRuntime(project(":kotlinx-serialization-ide-plugin"))
+
+ testRuntime(intellijDep())
+ testRuntime(intellijRuntimeAnnotations())
+}
+
+sourceSets {
+ "main" { none() }
+ "test" { projectDefault() }
+}
+
+projectTest(parallel = true) {
+ dependsOn(":dist")
+ workingDir = rootDir
+}
+
+testsJar()
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractAsyncStackTraceTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractAsyncStackTraceTest.kt
similarity index 64%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractAsyncStackTraceTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractAsyncStackTraceTest.kt
index c90bde6c367..b4d891793a7 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractAsyncStackTraceTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractAsyncStackTraceTest.kt
@@ -1,62 +1,36 @@
/*
- * Copyright 2010-2015 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test
import com.intellij.debugger.engine.AsyncStackTraceProvider
import com.intellij.debugger.engine.JavaValue
import com.intellij.debugger.memory.utils.StackFrameItem
import com.intellij.execution.process.ProcessOutputTypes
import com.intellij.openapi.extensions.Extensions
-import com.intellij.openapi.util.io.FileUtil
+import org.jetbrains.kotlin.idea.debugger.KotlinCoroutinesAsyncStackTraceProvider
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferences
import org.jetbrains.kotlin.utils.addToStdlib.firstIsInstanceOrNull
import org.jetbrains.kotlin.utils.getSafe
-import java.io.File
import java.io.PrintWriter
import java.io.StringWriter
import java.lang.reflect.Modifier
-abstract class AbstractAsyncStackTraceTest : KotlinDebuggerTestBase() {
+abstract class AbstractAsyncStackTraceTest : KotlinDescriptorTestCaseWithStepping() {
private companion object {
const val MARGIN = " "
val ASYNC_STACKTRACE_EP_NAME = AsyncStackTraceProvider.EP.name
}
- protected fun doTest(path: String) {
- val fileText = FileUtil.loadFile(File(path))
-
- configureSettings(fileText)
- createAdditionalBreakpoints(fileText)
- createDebugProcess(path)
-
- val area = Extensions.getArea(null)
- if (!area.hasExtensionPoint(ASYNC_STACKTRACE_EP_NAME)) {
- System.err.println("$ASYNC_STACKTRACE_EP_NAME extension point is not found (probably old IDE version)")
+ override fun doMultiFileTest(files: TestFiles, preferences: DebuggerPreferences) {
+ val asyncStackTraceProvider = getAsyncStackTraceProvider()
+ if (asyncStackTraceProvider == null) {
finish()
return
}
- val extensionPoint = area.getExtensionPoint(ASYNC_STACKTRACE_EP_NAME)
- val asyncStackTraceProvider = extensionPoint.extensions.firstIsInstanceOrNull()
- ?: run {
- System.err.println("Kotlin coroutine async stack trace provider is not found")
- finish()
- return
- }
-
doOnBreakpoint {
val frameProxy = this.frameProxy
if (frameProxy != null) {
@@ -80,6 +54,23 @@ abstract class AbstractAsyncStackTraceTest : KotlinDebuggerTestBase() {
}
}
+ private fun getAsyncStackTraceProvider(): KotlinCoroutinesAsyncStackTraceProvider? {
+ val area = Extensions.getArea(null)
+ if (!area.hasExtensionPoint(ASYNC_STACKTRACE_EP_NAME)) {
+ System.err.println("$ASYNC_STACKTRACE_EP_NAME extension point is not found (probably old IDE version)")
+ return null
+ }
+
+ val extensionPoint = area.getExtensionPoint(ASYNC_STACKTRACE_EP_NAME)
+ val provider = extensionPoint.extensions.firstIsInstanceOrNull()
+
+ if (provider == null) {
+ System.err.println("Kotlin coroutine async stack trace provider is not found")
+ }
+
+ return provider
+ }
+
private fun Throwable.stackTraceAsString(): String {
val writer = StringWriter()
printStackTrace(PrintWriter(writer))
@@ -92,8 +83,12 @@ abstract class AbstractAsyncStackTraceTest : KotlinDebuggerTestBase() {
append(MARGIN).appendln(item.toString())
@Suppress("UNCHECKED_CAST")
- val variablesField = item.javaClass.declaredFields.first { !Modifier.isStatic(it.modifiers) && it.type == List::class.java }
- @Suppress("UNCHECKED_CAST") val variables = variablesField.getSafe(item) as? List
+ val variablesField = item.javaClass.declaredFields
+ .first { !Modifier.isStatic(it.modifiers) && it.type == List::class.java }
+
+ @Suppress("UNCHECKED_CAST")
+ val variables = variablesField.getSafe(item) as? List
+
if (variables != null) {
for (variable in variables) {
val descriptor = variable.descriptor
@@ -105,4 +100,4 @@ abstract class AbstractAsyncStackTraceTest : KotlinDebuggerTestBase() {
}
}
}
-}
+}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractBreakpointApplicabilityTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractBreakpointApplicabilityTest.kt
similarity index 98%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractBreakpointApplicabilityTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractBreakpointApplicabilityTest.kt
index 9d47189c537..334cec8983f 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractBreakpointApplicabilityTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractBreakpointApplicabilityTest.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test
import com.intellij.psi.PsiFile
import com.intellij.testFramework.LightProjectDescriptor
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractFileRankingTest.kt
similarity index 98%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractFileRankingTest.kt
index 085dfe5f1b2..675dd1a695f 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractFileRankingTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractFileRankingTest.kt
@@ -3,13 +3,14 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test
import com.sun.jdi.ThreadReference
import org.jetbrains.kotlin.codegen.ClassFileFactory
import org.jetbrains.kotlin.codegen.OriginCollectingClassBuilderFactory
import org.jetbrains.kotlin.codegen.getClassFiles
import org.jetbrains.kotlin.codegen.state.GenerationState
+import org.jetbrains.kotlin.idea.debugger.FileRankingCalculator
import org.jetbrains.kotlin.psi.KtElement
import org.jetbrains.kotlin.psi.KtFile
import org.jetbrains.org.objectweb.asm.tree.ClassNode
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinEvaluateExpressionTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinEvaluateExpressionTest.kt
new file mode 100644
index 00000000000..6394760f521
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinEvaluateExpressionTest.kt
@@ -0,0 +1,308 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test
+
+import com.intellij.debugger.engine.ContextUtil
+import com.intellij.debugger.engine.SuspendContextImpl
+import com.intellij.debugger.engine.evaluation.CodeFragmentKind
+import com.intellij.debugger.engine.evaluation.EvaluateException
+import com.intellij.debugger.engine.evaluation.TextWithImportsImpl
+import com.intellij.debugger.engine.evaluation.expression.EvaluatorBuilderImpl
+import com.intellij.debugger.engine.events.SuspendContextCommandImpl
+import com.intellij.debugger.impl.DebuggerContextImpl
+import com.intellij.debugger.impl.DebuggerContextImpl.createDebuggerContext
+import com.intellij.debugger.ui.impl.watch.NodeDescriptorImpl
+import com.intellij.openapi.util.io.FileUtil
+import com.intellij.ui.treeStructure.Tree
+import com.intellij.xdebugger.impl.ui.tree.ValueMarkup
+import com.sun.jdi.ObjectReference
+import org.jetbrains.eval4j.ObjectValue
+import org.jetbrains.eval4j.Value
+import org.jetbrains.eval4j.jdi.asValue
+import org.jetbrains.kotlin.codegen.CodegenTestCase.TestFile
+import org.jetbrains.kotlin.idea.KotlinFileType
+import org.jetbrains.kotlin.idea.debugger.evaluate.KotlinCodeFragmentFactory
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferences
+import org.jetbrains.kotlin.idea.debugger.test.util.FramePrinter
+import org.jetbrains.kotlin.idea.debugger.test.util.FramePrinterDelegate
+import org.jetbrains.kotlin.idea.debugger.test.util.SteppingInstruction
+import org.jetbrains.kotlin.idea.util.application.runReadAction
+import org.jetbrains.kotlin.test.InTextDirectivesUtils.findLinesWithPrefixesRemoved
+import org.jetbrains.kotlin.test.InTextDirectivesUtils.findStringWithPrefixes
+import java.io.File
+import javax.swing.tree.TreeNode
+
+private data class CodeFragment(val text: String, val result: String, val kind: CodeFragmentKind)
+
+private data class DebugLabel(val name: String, val localName: String)
+
+private class EvaluationTestData(
+ val instructions: List,
+ val fragments: List,
+ val debugLabels: List
+)
+
+abstract class AbstractKotlinEvaluateExpressionTest : KotlinDescriptorTestCaseWithStepping(), FramePrinterDelegate {
+ private companion object {
+ private val ID_PART_REGEX = "id=[0-9]*".toRegex()
+ }
+
+ override val debuggerContext: DebuggerContextImpl
+ get() = super.debuggerContext
+
+ private var isMultipleBreakpointsTest = false
+
+ private var framePrinter: FramePrinter? = null
+
+ fun doSingleBreakpointTest(path: String) {
+ isMultipleBreakpointsTest = false
+ doTest(path)
+ }
+
+ fun doMultipleBreakpointsTest(path: String) {
+ isMultipleBreakpointsTest = true
+ doTest(path)
+ }
+
+ override fun doMultiFileTest(files: TestFiles, preferences: DebuggerPreferences) {
+ val wholeFile = files.wholeFile
+
+ val instructions = SteppingInstruction.parse(wholeFile)
+ val expressions = loadExpressions(wholeFile)
+ val blocks = loadCodeBlocks(files.originalFile)
+ val debugLabels = loadDebugLabels(wholeFile)
+
+ val data = EvaluationTestData(instructions, expressions + blocks, debugLabels)
+
+ framePrinter = FramePrinter(myDebuggerSession, this, preferences, testRootDisposable)
+
+ if (isMultipleBreakpointsTest) {
+ performMultipleBreakpointTest(data)
+ } else {
+ performSingleBreakpointTest(data)
+ }
+ }
+
+ override fun tearDown() {
+ framePrinter?.close()
+ framePrinter = null
+
+ super.tearDown()
+ }
+
+ private fun performSingleBreakpointTest(data: EvaluationTestData) {
+ process(data.instructions)
+
+ doOnBreakpoint {
+ createDebugLabels(data.debugLabels)
+
+ val exceptions = linkedMapOf()
+
+ for ((expression, expected, kind) in data.fragments) {
+ mayThrow(exceptions, expression) {
+ evaluate(this, expression, kind, expected)
+ }
+ }
+
+ val completion = { resume(this) }
+ framePrinter?.printFrame(completion) ?: completion()
+
+ checkExceptions(exceptions)
+ }
+
+ finish()
+ }
+
+ private fun performMultipleBreakpointTest(data: EvaluationTestData) {
+ val exceptions = linkedMapOf()
+
+ for ((expression, expected) in data.fragments) {
+ mayThrow(exceptions, expression) {
+ doOnBreakpoint {
+ try {
+ evaluate(this, expression, CodeFragmentKind.EXPRESSION, expected)
+ } finally {
+ val completion = { resume(this) }
+ framePrinter?.printFrame(completion) ?: completion()
+ }
+ }
+ }
+ }
+
+ checkExceptions(exceptions)
+ finish()
+ }
+
+ override fun evaluate(suspendContext: SuspendContextImpl, textWithImports: TextWithImportsImpl) {
+ evaluate(suspendContext, textWithImports, null)
+ }
+
+ private fun evaluate(suspendContext: SuspendContextImpl, text: String, codeFragmentKind: CodeFragmentKind, expectedResult: String?) {
+ val textWithImports = TextWithImportsImpl(codeFragmentKind, text, "", KotlinFileType.INSTANCE)
+ return evaluate(suspendContext, textWithImports, expectedResult)
+ }
+
+ private fun evaluate(suspendContext: SuspendContextImpl, item: TextWithImportsImpl, expectedResult: String?) {
+ val evaluationContext = this.evaluationContext
+ val sourcePosition = ContextUtil.getSourcePosition(suspendContext)
+
+ // Default test debuggerContext doesn't provide a valid stackFrame so we have to create one more for evaluation purposes.
+ val frameProxy = suspendContext.frameProxy
+ val threadProxy = frameProxy?.threadProxy()
+ val debuggerContext = createDebuggerContext(myDebuggerSession, suspendContext, threadProxy, frameProxy)
+ debuggerContext.initCaches()
+
+ val contextElement = ContextUtil.getContextElement(debuggerContext)!!
+
+ assert(KotlinCodeFragmentFactory().isContextAccepted(contextElement)) {
+ val text = runReadAction { contextElement.text }
+ "KotlinCodeFragmentFactory should be accepted for context element otherwise default evaluator will be called. " +
+ "ContextElement = $text"
+ }
+
+ contextElement.putCopyableUserData(KotlinCodeFragmentFactory.DEBUG_CONTEXT_FOR_TESTS, debuggerContext)
+
+ suspendContext.runActionInSuspendCommand {
+ try {
+ val evaluator = runReadAction {
+ EvaluatorBuilderImpl.build(
+ item,
+ contextElement,
+ sourcePosition,
+ this@AbstractKotlinEvaluateExpressionTest.project
+ )
+ }
+ ?: throw AssertionError("Cannot create an Evaluator for Evaluate Expression")
+
+ val value = evaluator.evaluate(evaluationContext)
+ val actualResult = value.asValue().asString()
+ if (expectedResult != null) {
+ assertEquals(
+ "Evaluate expression returns wrong result for ${item.text}:\n" +
+ "expected = $expectedResult\n" +
+ "actual = $actualResult\n",
+ expectedResult, actualResult
+ )
+ }
+ } catch (e: EvaluateException) {
+ val expectedMessage = e.message?.replaceFirst(
+ ID_PART_REGEX,
+ "id=ID"
+ )
+ assertEquals(
+ "Evaluate expression throws wrong exception for ${item.text}:\n" +
+ "expected = $expectedResult\n" +
+ "actual = $expectedMessage\n",
+ expectedResult,
+ expectedMessage
+ )
+ }
+ }
+ }
+
+ override fun logDescriptor(descriptor: NodeDescriptorImpl, text: String) {
+ super.logDescriptor(descriptor, text)
+ }
+
+ override fun expandAll(tree: Tree, runnable: () -> Unit, filter: (TreeNode) -> Boolean, suspendContext: SuspendContextImpl) {
+ super.expandAll(tree, runnable, HashSet(), filter, suspendContext)
+ }
+
+ private fun SuspendContextImpl.runActionInSuspendCommand(action: SuspendContextImpl.() -> Unit) {
+ if (myInProgress) {
+ action()
+ } else {
+ val command = object : SuspendContextCommandImpl(this) {
+ override fun contextAction(suspendContext: SuspendContextImpl) {
+ action(suspendContext)
+ }
+ }
+
+ // Try to execute the action inside a command if we aren't already inside it.
+ debuggerSession.process.managerThread?.invoke(command) ?: command.contextAction(this)
+ }
+ }
+
+ private fun mayThrow(collector: MutableMap, expression: String, f: () -> Unit) {
+ try {
+ f()
+ } catch (e: Throwable) {
+ collector[expression] = e
+ }
+ }
+
+ private fun checkExceptions(exceptions: MutableMap) {
+ if (exceptions.isNotEmpty()) {
+ for (exc in exceptions.values) {
+ exc.printStackTrace()
+ }
+
+ val expressionsText = exceptions.entries.joinToString("\n") { (k, v) -> "expression: $k, exception: ${v.message}" }
+
+ @Suppress("ConvertToStringTemplate")
+ throw AssertionError("Test failed:\n" + expressionsText)
+ }
+ }
+
+ private fun Value.asString(): String {
+ if (this is ObjectValue && this.value is ObjectReference) {
+ return this.toString().replaceFirst(ID_PART_REGEX, "id=ID")
+ }
+ return this.toString()
+ }
+
+ private fun loadExpressions(testFile: TestFile): List {
+ val directives = findLinesWithPrefixesRemoved(testFile.content, "// EXPRESSION: ")
+ val expected = findLinesWithPrefixesRemoved(testFile.content, "// RESULT: ")
+ assert(directives.size == expected.size) { "Sizes of test directives are different" }
+ return directives.zip(expected).map { (text, result) -> CodeFragment(text, result, CodeFragmentKind.EXPRESSION) }
+ }
+
+ private fun loadCodeBlocks(wholeFile: File): List {
+ val regexp = (Regex.escape(wholeFile.name) + ".fragment\\d*").toRegex()
+ val fragmentFiles = wholeFile.parentFile.listFiles { _, name -> regexp.matches(name) } ?: emptyArray()
+
+ val codeFragments = mutableListOf()
+
+ for (fragmentFile in fragmentFiles) {
+ val contents = FileUtil.loadFile(fragmentFile, true)
+ val value = findStringWithPrefixes(contents, "// RESULT: ") ?: error("'RESULT' directive is missing in $fragmentFile")
+ codeFragments += CodeFragment(contents, value, CodeFragmentKind.CODE_BLOCK)
+ }
+
+ return codeFragments
+ }
+
+ private fun loadDebugLabels(testFile: TestFile): List {
+ return findLinesWithPrefixesRemoved(testFile.content, "// DEBUG_LABEL: ")
+ .map { text ->
+ val labelParts = text.split("=")
+ assert(labelParts.size == 2) { "Wrong format for DEBUG_LABEL directive: // DEBUG_LABEL: {localVariableName} = {labelText}" }
+
+ val localName = labelParts[0].trim()
+ val name = labelParts[1].trim()
+ DebugLabel(name, localName)
+ }
+ }
+
+ private fun createDebugLabels(labels: List) {
+ if (labels.isEmpty()) {
+ return
+ }
+
+ val markupMap = NodeDescriptorImpl.getMarkupMap(debugProcess) ?: return
+
+ for ((name, localName) in labels) {
+ val localVariable = evaluationContext.frameProxy!!.visibleVariableByName(localName)
+ assert(localVariable != null) { "Cannot find localVariable for label: name = $localName" }
+
+ val localVariableValue = evaluationContext.frameProxy!!.getValue(localVariable) as? ObjectReference
+ assert(localVariableValue != null) { "Local variable $localName should be an ObjectReference" }
+
+ markupMap[localVariableValue] = ValueMarkup(name, null, name)
+ }
+ }
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinSteppingTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinSteppingTest.kt
new file mode 100644
index 00000000000..93e704ba8ef
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinSteppingTest.kt
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test
+
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferences
+import org.jetbrains.kotlin.idea.debugger.test.util.SteppingInstruction
+import org.jetbrains.kotlin.idea.debugger.test.util.SteppingInstructionKind
+
+abstract class AbstractKotlinSteppingTest : KotlinDescriptorTestCaseWithStepping() {
+ private enum class Category(val instruction: SteppingInstructionKind?) {
+ StepInto(SteppingInstructionKind.StepInto),
+ StepOut(SteppingInstructionKind.StepOut),
+ StepOver(SteppingInstructionKind.StepOver),
+ ForceStepOver(SteppingInstructionKind.ForceStepOver),
+ SmartStepInto(SteppingInstructionKind.SmartStepInto),
+ Custom(null)
+ }
+
+ private var category: Category? = null
+
+ protected fun doStepIntoTest(path: String) = doTest(path, Category.StepInto)
+ protected fun doStepOutTest(path: String) = doTest(path, Category.StepOut)
+ protected fun doStepOverTest(path: String) = doTest(path, Category.StepOver)
+ protected fun doStepOverForceTest(path: String) = doTest(path, Category.ForceStepOver)
+ protected fun doSmartStepIntoTest(path: String) = doTest(path, Category.SmartStepInto)
+ protected fun doCustomTest(path: String) = doTest(path, Category.Custom)
+
+ override fun tearDown() {
+ category = null
+ super.tearDown()
+ }
+
+ private fun doTest(path: String, category: Category) {
+ this.category = category
+ super.doTest(path)
+ }
+
+ override fun doMultiFileTest(files: TestFiles, preferences: DebuggerPreferences) {
+ val category = this.category ?: error("Category is not specified")
+ val specificKind = category.instruction
+
+ if (specificKind != null) {
+ val instruction = SteppingInstruction.parseSingle(files.wholeFile, specificKind)
+ ?: SteppingInstruction(specificKind, 1)
+
+ process(listOf(instruction))
+ } else {
+ val instructions = SteppingInstruction.parse(files.wholeFile)
+ process(instructions)
+ }
+
+ finish()
+ }
+}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractPositionManagerTest.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractPositionManagerTest.java
similarity index 89%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractPositionManagerTest.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractPositionManagerTest.java
index 9a9a77adf12..800089f3fbc 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractPositionManagerTest.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractPositionManagerTest.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.google.common.collect.Lists;
import com.intellij.debugger.NoDataException;
@@ -20,10 +20,8 @@ import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.testFramework.LightProjectDescriptor;
import com.sun.jdi.Location;
import com.sun.jdi.ReferenceType;
-import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.io.FilesKt;
-import kotlin.jvm.functions.Function1;
import kotlin.sequences.SequencesKt;
import kotlin.text.StringsKt;
import org.jetbrains.annotations.NotNull;
@@ -33,7 +31,12 @@ import org.jetbrains.kotlin.codegen.ClassBuilderFactories;
import org.jetbrains.kotlin.codegen.GenerationUtils;
import org.jetbrains.kotlin.codegen.state.GenerationState;
import org.jetbrains.kotlin.config.*;
+import org.jetbrains.kotlin.idea.debugger.KotlinPositionManager;
+import org.jetbrains.kotlin.idea.debugger.KotlinPositionManagerFactory;
import org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches;
+import org.jetbrains.kotlin.idea.debugger.test.mock.MockLocation;
+import org.jetbrains.kotlin.idea.debugger.test.mock.MockVirtualMachine;
+import org.jetbrains.kotlin.idea.debugger.test.mock.SmartMockReferenceTypeContext;
import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCase;
import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCaseKt;
import org.jetbrains.kotlin.idea.test.KotlinWithJdkAndRuntimeLightProjectDescriptor;
@@ -51,6 +54,9 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
+import static org.jetbrains.kotlin.idea.debugger.test.DebuggerTestUtils.DEBUGGER_TESTDATA_PATH_BASE;
+import static org.jetbrains.kotlin.idea.debugger.test.DebuggerTestUtils.DEBUGGER_TESTDATA_PATH_RELATIVE;
+
public abstract class AbstractPositionManagerTest extends KotlinLightCodeInsightFixtureTestCase {
// Breakpoint is given as a line comment on a specific line, containing the regexp to match the name of the class where that line
// can be found. This pattern matches against these line comments and saves the class name in the first group
@@ -59,13 +65,13 @@ public abstract class AbstractPositionManagerTest extends KotlinLightCodeInsight
@NotNull
@Override
protected String getTestDataPath() {
- return PluginTestCaseBase.getTestDataPathBase() + "/debugger/positionManager/";
+ return DEBUGGER_TESTDATA_PATH_BASE + "/positionManager";
}
@Override
public void setUp() {
super.setUp();
- myFixture.setTestDataPath(PluginTestCaseBase.getTestDataPathBase());
+ myFixture.setTestDataPath(DEBUGGER_TESTDATA_PATH_BASE);
}
private DebugProcessImpl debugProcess;
@@ -92,21 +98,17 @@ public abstract class AbstractPositionManagerTest extends KotlinLightCodeInsight
return positionManager;
}
- protected void doTest(@NotNull String fileName) throws Exception {
+ protected void doTest(@NotNull String fileName) {
+ String path = getPath(fileName);
+
if (fileName.endsWith(".kt")) {
- String path = getPath(fileName);
myFixture.configureByFile(path);
- }
- else {
- String path = getPath(fileName);
- SequencesKt.forEach(FilesKt.walkTopDown(new File(path)), new Function1() {
- @Override
- public Unit invoke(File file) {
- String fileName = file.getName();
- String path = getPath(fileName);
- myFixture.configureByFile(path);
- return null;
- }
+ } else {
+ SequencesKt.forEach(FilesKt.walkTopDown(new File(path)), file -> {
+ String fileName1 = file.getName();
+ String path1 = getPath(fileName1);
+ myFixture.configureByFile(path1);
+ return null;
});
}
@@ -115,7 +117,7 @@ public abstract class AbstractPositionManagerTest extends KotlinLightCodeInsight
@NotNull
private static String getPath(@NotNull String fileName) {
- return StringsKt.substringAfter(fileName, PluginTestCaseBase.TEST_DATA_PROJECT_RELATIVE.substring(1), fileName);
+ return StringsKt.substringAfter(fileName, DEBUGGER_TESTDATA_PATH_RELATIVE, fileName);
}
private void performTest() {
@@ -256,7 +258,7 @@ public abstract class AbstractPositionManagerTest extends KotlinLightCodeInsight
}
@Override
- public List classesByName(String name) {
+ public List classesByName(@NotNull String name) {
return CollectionsKt.listOfNotNull(referencesByName.get(name));
}
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/AbstractSelectExpressionForDebuggerTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractSelectExpressionForDebuggerTest.kt
similarity index 87%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/AbstractSelectExpressionForDebuggerTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractSelectExpressionForDebuggerTest.kt
index d9744bacd54..720bbaef8a9 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/AbstractSelectExpressionForDebuggerTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractSelectExpressionForDebuggerTest.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.evaluate
+package org.jetbrains.kotlin.idea.debugger.test
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
import org.jetbrains.kotlin.idea.debugger.KotlinEditorTextProvider
@@ -14,7 +14,6 @@ import org.jetbrains.kotlin.test.InTextDirectivesUtils
import org.junit.Assert
abstract class AbstractSelectExpressionForDebuggerTest : LightCodeInsightFixtureTestCase() {
-
override fun setUp() {
super.setUp()
invalidateLibraryCache(project)
@@ -35,15 +34,17 @@ abstract class AbstractSelectExpressionForDebuggerTest : LightCodeInsightFixture
val selectedExpression = KotlinEditorTextProvider.findExpressionInner(elementAt, allowMethodCalls)
val expected = InTextDirectivesUtils.findStringWithPrefixes(myFixture.file?.text!!, "// EXPECTED: ")
- val actualResult = if (selectedExpression != null)
+
+ val actualResult = if (selectedExpression != null) {
KotlinEditorTextProvider.getElementInfo(selectedExpression) { it.text }
- else
+ } else {
"null"
+ }
Assert.assertEquals("Another expression should be selected", expected, actualResult)
}
- override fun getProjectDescriptor() = KotlinLightProjectDescriptor.INSTANCE
+ override fun getProjectDescriptor(): KotlinLightProjectDescriptor = KotlinLightProjectDescriptor.INSTANCE
override fun getTestDataPath() = PluginTestCaseBase.getTestDataPathBase() + "/debugger/selectExpression"
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractSmartStepIntoTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractSmartStepIntoTest.kt
similarity index 80%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractSmartStepIntoTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractSmartStepIntoTest.kt
index 0734d4b4a98..faf8068ec29 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/AbstractSmartStepIntoTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractSmartStepIntoTest.kt
@@ -3,11 +3,12 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test
import com.intellij.testFramework.fixtures.JavaCodeInsightTestFixture
import org.jetbrains.kotlin.idea.core.util.CodeInsightUtils
import org.jetbrains.kotlin.idea.debugger.stepping.KotlinSmartStepIntoHandler
+import org.jetbrains.kotlin.idea.debugger.test.mock.MockSourcePosition
import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCase
import org.jetbrains.kotlin.idea.test.KotlinWithJdkAndRuntimeLightProjectDescriptor
import org.jetbrains.kotlin.idea.test.PluginTestCaseBase
@@ -26,27 +27,30 @@ abstract class AbstractSmartStepIntoTest : KotlinLightCodeInsightFixtureTestCase
val lineStart = CodeInsightUtils.getStartLineOffset(file, line)!!
val elementAtOffset = file.findElementAt(lineStart)
- val position = MockSourcePosition(_file = fixture.file,
- _line = line,
- _offset = offset,
- _editor = fixture.editor,
- _elementAt = elementAtOffset)
+ val position = MockSourcePosition(
+ myFile = fixture.file,
+ myLine = line,
+ myOffset = offset,
+ myEditor = fixture.editor,
+ myElementAt = elementAtOffset
+ )
val actual = KotlinSmartStepIntoHandler().findSmartStepTargets(position).map { it.presentation }
- val expected = InTextDirectivesUtils.findListWithPrefixes(fixture.file?.text!!.replace("\\,", "+++"), "// EXISTS: ").map { it.replace("+++", ",") }
+ val expected = InTextDirectivesUtils.findListWithPrefixes(fixture.file?.text!!.replace("\\,", "+++"), "// EXISTS: ")
+ .map { it.replace("+++", ",") }
for (actualTargetName in actual) {
assert(actualTargetName in expected) {
"Unexpected step into target was found: $actualTargetName\n${renderTableWithResults(expected, actual)}" +
- "\n // EXISTS: ${actual.joinToString()}"
+ "\n // EXISTS: ${actual.joinToString()}"
}
}
for (expectedTargetName in expected) {
assert(expectedTargetName in actual) {
"Missed step into target: $expectedTargetName\n${renderTableWithResults(expected, actual)}" +
- "\n // EXISTS: ${actual.joinToString()}"
+ "\n // EXISTS: ${actual.joinToString()}"
}
}
}
@@ -68,7 +72,7 @@ abstract class AbstractSmartStepIntoTest : KotlinLightCodeInsightFixtureTestCase
}
override fun getTestDataPath(): String {
- return PluginTestCaseBase.getTestDataPathBase() + "/debugger/smartStepInto"
+ return "$DEBUGGER_TESTDATA_PATH_BASE/smartStepInto"
}
override fun getProjectDescriptor() = KotlinWithJdkAndRuntimeLightProjectDescriptor.INSTANCE
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/AsyncStackTraceTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AsyncStackTraceTestGenerated.java
similarity index 72%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/AsyncStackTraceTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AsyncStackTraceTestGenerated.java
index 1e0e00f1fc3..ed55c131bbe 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/AsyncStackTraceTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AsyncStackTraceTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -17,7 +17,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
-@TestMetadata("idea/testData/debugger/tinyApp/src/asyncStackTrace")
+@TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/asyncStackTrace")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class AsyncStackTraceTestGenerated extends AbstractAsyncStackTraceTest {
@@ -26,21 +26,21 @@ public class AsyncStackTraceTestGenerated extends AbstractAsyncStackTraceTest {
}
public void testAllFilesPresentInAsyncStackTrace() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/asyncStackTrace"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/asyncStackTrace"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("asyncFunctions.kt")
public void testAsyncFunctions() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/asyncStackTrace/asyncFunctions.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/asyncStackTrace/asyncFunctions.kt");
}
@TestMetadata("asyncLambdas.kt")
public void testAsyncLambdas() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/asyncStackTrace/asyncLambdas.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/asyncStackTrace/asyncLambdas.kt");
}
@TestMetadata("asyncSimple.kt")
public void testAsyncSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/asyncStackTrace/asyncSimple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/asyncStackTrace/asyncSimple.kt");
}
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/BreakpointApplicabilityTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/BreakpointApplicabilityTestGenerated.java
similarity index 65%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/BreakpointApplicabilityTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/BreakpointApplicabilityTestGenerated.java
index acdebad5022..d434c3eb3af 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/BreakpointApplicabilityTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/BreakpointApplicabilityTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -17,7 +17,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
-@TestMetadata("idea/testData/debugger/breakpointApplicability")
+@TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class BreakpointApplicabilityTestGenerated extends AbstractBreakpointApplicabilityTest {
@@ -26,36 +26,36 @@ public class BreakpointApplicabilityTestGenerated extends AbstractBreakpointAppl
}
public void testAllFilesPresentInBreakpointApplicability() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/breakpointApplicability"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
- runTest("idea/testData/debugger/breakpointApplicability/constructors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability/constructors.kt");
}
@TestMetadata("functions.kt")
public void testFunctions() throws Exception {
- runTest("idea/testData/debugger/breakpointApplicability/functions.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability/functions.kt");
}
@TestMetadata("inlineOnly.kt")
public void testInlineOnly() throws Exception {
- runTest("idea/testData/debugger/breakpointApplicability/inlineOnly.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability/inlineOnly.kt");
}
@TestMetadata("locals.kt")
public void testLocals() throws Exception {
- runTest("idea/testData/debugger/breakpointApplicability/locals.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability/locals.kt");
}
@TestMetadata("properties.kt")
public void testProperties() throws Exception {
- runTest("idea/testData/debugger/breakpointApplicability/properties.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability/properties.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
- runTest("idea/testData/debugger/breakpointApplicability/simple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/breakpointApplicability/simple.kt");
}
}
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/DebuggerTestCompilerFacility.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/DebuggerTestCompilerFacility.kt
new file mode 100644
index 00000000000..c02fb17c9f9
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/DebuggerTestCompilerFacility.kt
@@ -0,0 +1,241 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test
+
+import com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.doWriteAction
+import com.intellij.openapi.module.Module
+import com.intellij.openapi.roots.LibraryOrderEntry
+import com.intellij.openapi.roots.ModuleRootManager
+import com.intellij.openapi.roots.OrderRootType
+import com.intellij.openapi.util.io.FileUtil
+import com.intellij.openapi.vfs.LocalFileSystem
+import com.intellij.openapi.vfs.VirtualFile
+import com.intellij.openapi.vfs.newvfs.ArchiveFileSystem
+import com.intellij.psi.PsiManager
+import org.jetbrains.kotlin.caches.resolve.KotlinCacheService
+import org.jetbrains.kotlin.cli.common.output.writeAllTo
+import org.jetbrains.kotlin.cli.jvm.compiler.findMainClass
+import org.jetbrains.kotlin.codegen.*
+import org.jetbrains.kotlin.codegen.CodegenTestCase.TestFile
+import org.jetbrains.kotlin.codegen.forTestCompile.ForTestCompileRuntime
+import org.jetbrains.kotlin.codegen.state.GenerationState
+import org.jetbrains.kotlin.config.CompilerConfiguration
+import org.jetbrains.kotlin.config.JVMConfigurationKeys
+import org.jetbrains.kotlin.config.JvmTarget
+import org.jetbrains.kotlin.diagnostics.rendering.DefaultErrorMessages
+import org.jetbrains.kotlin.idea.debugger.test.util.patchDexTests
+import org.jetbrains.kotlin.psi.KtFile
+import org.jetbrains.kotlin.test.MockLibraryUtil
+import org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase
+import java.io.File
+
+class DebuggerTestCompilerFacility(files: List, private val jvmTarget: JvmTarget, private val applyDexPatch: Boolean) {
+ private val kotlinStdlibPath = ForTestCompileRuntime.runtimeJarForTests().absolutePath
+
+ private val mainFiles: TestFilesByLanguage
+ private val libraryFiles: TestFilesByLanguage
+
+ init {
+ val splitFiles = splitByTarget(files)
+ mainFiles = splitByLanguage(splitFiles.main)
+ libraryFiles = splitByLanguage(splitFiles.library)
+ }
+
+ fun compileExternalLibrary(name: String, srcDir: File, classesDir: File) {
+ val libSrcPath = File(DEBUGGER_TESTDATA_PATH_BASE, "lib/$name")
+ if (!libSrcPath.exists()) {
+ error("Library $name does not exist")
+ }
+
+ val testFiles = libSrcPath.walk().filter { it.isFile }.toList().map {
+ val path = it.toRelativeString(libSrcPath)
+ TestFile(path, FileUtil.loadFile(it, true))
+ }
+
+ val libraryFiles = splitByLanguage(testFiles)
+ compileLibrary(libraryFiles, srcDir, classesDir)
+ }
+
+ fun compileLibrary(srcDir: File, classesDir: File) {
+ compileLibrary(this.libraryFiles, srcDir, classesDir)
+
+ srcDir.refreshAndToVirtualFile()?.let { KtUsefulTestCase.refreshRecursively(it) }
+ classesDir.refreshAndToVirtualFile()?.let { KtUsefulTestCase.refreshRecursively(it) }
+ }
+
+ private fun compileLibrary(libraryFiles: TestFilesByLanguage, srcDir: File, classesDir: File) = with(libraryFiles) {
+ resources.copy(classesDir)
+ (kotlin + java).copy(srcDir)
+
+ if (kotlin.isNotEmpty()) {
+ MockLibraryUtil.compileKotlin(
+ srcDir.absolutePath,
+ classesDir,
+ listOf("-jvm-target", jvmTarget.description),
+ kotlinStdlibPath
+ )
+ }
+
+ if (java.isNotEmpty()) {
+ CodegenTestUtil.compileJava(
+ java.map { File(srcDir, it.name).absolutePath },
+ listOf(kotlinStdlibPath, classesDir.absolutePath),
+ listOf("-g"),
+ classesDir
+ )
+ }
+
+ if (applyDexPatch) {
+ patchDexTests(classesDir)
+ }
+ }
+
+ // Returns the qualified name of the main test class.
+ fun compileTestSources(module: Module, srcDir: File, classesDir: File, libClassesDir: File): String = with(mainFiles) {
+ resources.copy(srcDir)
+ resources.copy(classesDir) // sic!
+ (kotlin + java).copy(srcDir)
+
+ val ktFiles = mutableListOf()
+
+ doWriteAction {
+ for (file in kotlin + java) {
+ val ioFile = File(srcDir, file.name)
+ val virtualFile = ioFile.refreshAndToVirtualFile() ?: error("Cannot find a VirtualFile instance for file $file")
+ val psiFile = PsiManager.getInstance(module.project).findFile(virtualFile) ?: continue
+
+ if (psiFile is KtFile) {
+ ktFiles += psiFile
+ }
+ }
+ }
+
+ if (ktFiles.isEmpty()) {
+ error("No Kotlin files found")
+ }
+
+ LocalFileSystem.getInstance().refreshAndFindFileByIoFile(classesDir)
+ LocalFileSystem.getInstance().refreshAndFindFileByIoFile(libClassesDir)
+
+ lateinit var mainClassName: String
+
+ doWriteAction {
+ mainClassName = compileKotlinFilesInIde(module, ktFiles, classesDir)
+ }
+
+ if (java.isNotEmpty()) {
+ CodegenTestUtil.compileJava(
+ java.map { File(srcDir, it.name).absolutePath },
+ getClasspath(module) + listOf(classesDir.absolutePath),
+ listOf("-g"),
+ classesDir
+ )
+ }
+
+ if (applyDexPatch) {
+ patchDexTests(classesDir)
+ }
+
+ return mainClassName
+ }
+
+ private fun compileKotlinFilesInIde(module: Module, files: List, classesDir: File): String {
+ val project = module.project
+ val resolutionFacade = KotlinCacheService.getInstance(project).getResolutionFacade(files)
+
+ val analysisResult = resolutionFacade.analyzeWithAllCompilerChecks(files)
+ analysisResult.throwIfError()
+
+ val moduleDescriptor = resolutionFacade.moduleDescriptor
+ val bindingContext = analysisResult.bindingContext
+
+ val configuration = CompilerConfiguration()
+ configuration.put(JVMConfigurationKeys.JVM_TARGET, jvmTarget)
+
+ val state = GenerationState.Builder(project, ClassBuilderFactories.BINARIES, moduleDescriptor, bindingContext, files, configuration)
+ .generateDeclaredClassFilter(GenerationState.GenerateClassFilter.GENERATE_ALL)
+ .codegenFactory(DefaultCodegenFactory)
+ .build()
+
+ KotlinCodegenFacade.compileCorrectFiles(state, CompilationErrorHandler.THROW_EXCEPTION)
+
+ val extraDiagnostics = state.collectedExtraJvmDiagnostics
+ if (!extraDiagnostics.isEmpty()) {
+ val compoundMessage = extraDiagnostics.joinToString("\n") { DefaultErrorMessages.render(it) }
+ error("One or more errors occurred during code generation: \n$compoundMessage")
+ }
+
+ state.factory.writeAllTo(classesDir)
+
+ return findMainClass(state, files)?.asString() ?: error("Cannot find main class name")
+ }
+
+ private fun getClasspath(module: Module): List {
+ val moduleRootManager = ModuleRootManager.getInstance(module)
+ val classpath = moduleRootManager.orderEntries.filterIsInstance()
+ .flatMap { it.library?.rootProvider?.getFiles(OrderRootType.CLASSES)?.asList().orEmpty() }
+
+ val paths = mutableListOf()
+ for (entry in classpath) {
+ val fileSystem = entry.fileSystem
+ if (fileSystem is ArchiveFileSystem) {
+ val localFile = fileSystem.getLocalByEntry(entry) ?: continue
+ paths += localFile.path
+ } else if (fileSystem is LocalFileSystem) {
+ paths += entry.path
+ }
+ }
+
+ return paths
+ }
+}
+
+private fun File.refreshAndToVirtualFile(): VirtualFile? = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(this)
+
+private fun List.copy(destination: File) {
+ for (file in this) {
+ val target = File(destination, file.name)
+ target.parentFile.mkdirs()
+ target.writeText(file.content)
+ }
+}
+
+class TestFilesByTarget(val main: List, val library: List)
+
+class TestFilesByLanguage(val kotlin: List, val java: List, val resources: List)
+
+private fun splitByTarget(files: List): TestFilesByTarget {
+ val main = mutableListOf()
+ val lib = mutableListOf()
+
+ for (file in files) {
+ val container = if (file.name.startsWith("lib/") || file.name.startsWith("customLib/")) lib else main
+ container += file
+ }
+
+ return TestFilesByTarget(main = main, library = lib)
+}
+
+private fun splitByLanguage(files: List): TestFilesByLanguage {
+ val kotlin = mutableListOf()
+ val java = mutableListOf()
+ val resources = mutableListOf()
+
+ for (file in files) {
+ @Suppress("MoveVariableDeclarationIntoWhen")
+ val extension = file.name.substringAfterLast(".", missingDelimiterValue = "")
+
+ val container = when (extension) {
+ "kt", "kts" -> kotlin
+ "java" -> java
+ else -> resources
+ }
+
+ container += file
+ }
+
+ return TestFilesByLanguage(kotlin = kotlin, java = java, resources = resources)
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/DebuggerTestUtils.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/DebuggerTestUtils.kt
new file mode 100644
index 00000000000..815508a31a7
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/DebuggerTestUtils.kt
@@ -0,0 +1,14 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+@file:JvmName("DebuggerTestUtils")
+package org.jetbrains.kotlin.idea.debugger.test
+
+import org.jetbrains.kotlin.test.KotlinTestUtils
+
+const val DEBUGGER_TESTDATA_PATH_RELATIVE = "idea/jvm-debugger/jvm-debugger-test/testData"
+
+@JvmField
+val DEBUGGER_TESTDATA_PATH_BASE = KotlinTestUtils.getHomeDirectory() + "/" + DEBUGGER_TESTDATA_PATH_RELATIVE
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/FileRankingTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/FileRankingTestGenerated.java
similarity index 62%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/FileRankingTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/FileRankingTestGenerated.java
index 868ac7f91ad..002fd84ff1f 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/FileRankingTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/FileRankingTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -17,7 +17,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
-@TestMetadata("idea/testData/debugger/fileRanking")
+@TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class FileRankingTestGenerated extends AbstractFileRankingTest {
@@ -26,66 +26,66 @@ public class FileRankingTestGenerated extends AbstractFileRankingTest {
}
public void testAllFilesPresentInFileRanking() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/fileRanking"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("anonymousClasses.kt")
public void testAnonymousClasses() throws Exception {
- runTest("idea/testData/debugger/fileRanking/anonymousClasses.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/anonymousClasses.kt");
}
@TestMetadata("differentFlags.kt")
public void testDifferentFlags() throws Exception {
- runTest("idea/testData/debugger/fileRanking/differentFlags.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/differentFlags.kt");
}
@TestMetadata("init.kt")
public void testInit() throws Exception {
- runTest("idea/testData/debugger/fileRanking/init.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/init.kt");
}
@TestMetadata("lambdas.kt")
public void testLambdas() throws Exception {
- runTest("idea/testData/debugger/fileRanking/lambdas.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/lambdas.kt");
}
@TestMetadata("multilinePrimaryConstructor.kt")
public void testMultilinePrimaryConstructor() throws Exception {
- runTest("idea/testData/debugger/fileRanking/multilinePrimaryConstructor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/multilinePrimaryConstructor.kt");
}
@TestMetadata("multilinePrimaryConstructorWithBody.kt")
public void testMultilinePrimaryConstructorWithBody() throws Exception {
- runTest("idea/testData/debugger/fileRanking/multilinePrimaryConstructorWithBody.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/multilinePrimaryConstructorWithBody.kt");
}
@TestMetadata("parametersWithUnloadedClass.kt")
public void testParametersWithUnloadedClass() throws Exception {
- runTest("idea/testData/debugger/fileRanking/parametersWithUnloadedClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/parametersWithUnloadedClass.kt");
}
@TestMetadata("propertyDelegates.kt")
public void testPropertyDelegates() throws Exception {
- runTest("idea/testData/debugger/fileRanking/propertyDelegates.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/propertyDelegates.kt");
}
@TestMetadata("sameClassName.kt")
public void testSameClassName() throws Exception {
- runTest("idea/testData/debugger/fileRanking/sameClassName.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/sameClassName.kt");
}
@TestMetadata("sameClassNameDifferentMethodNames.kt")
public void testSameClassNameDifferentMethodNames() throws Exception {
- runTest("idea/testData/debugger/fileRanking/sameClassNameDifferentMethodNames.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/sameClassNameDifferentMethodNames.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
- runTest("idea/testData/debugger/fileRanking/simple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/simple.kt");
}
@TestMetadata("topLevel.kt")
public void testTopLevel() throws Exception {
- runTest("idea/testData/debugger/fileRanking/topLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/fileRanking/topLevel.kt");
}
}
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCase.kt
new file mode 100644
index 00000000000..595ccea8aa1
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCase.kt
@@ -0,0 +1,224 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test
+
+import com.intellij.debugger.impl.DescriptorTestCase
+import com.intellij.debugger.impl.OutputChecker
+import com.intellij.execution.configurations.JavaParameters
+import com.intellij.execution.process.ProcessOutputTypes
+import com.intellij.openapi.roots.LibraryOrderEntry
+import com.intellij.openapi.roots.ModifiableRootModel
+import com.intellij.openapi.roots.ModuleRootManager
+import com.intellij.openapi.roots.OrderRootType
+import com.intellij.openapi.roots.ui.configuration.libraryEditor.NewLibraryEditor
+import com.intellij.openapi.util.ThrowableComputable
+import com.intellij.openapi.util.io.FileUtil
+import com.intellij.openapi.vfs.VfsUtil
+import com.intellij.psi.PsiFile
+import com.intellij.testFramework.EdtTestUtil
+import com.intellij.xdebugger.XDebugSession
+import org.jetbrains.kotlin.codegen.CodegenTestCase.TestFile
+import org.jetbrains.kotlin.codegen.forTestCompile.ForTestCompileRuntime
+import org.jetbrains.kotlin.config.JvmTarget
+import org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches
+import org.jetbrains.kotlin.idea.debugger.test.preference.*
+import org.jetbrains.kotlin.idea.debugger.test.util.BreakpointCreator
+import org.jetbrains.kotlin.idea.debugger.test.util.KotlinOutputChecker
+import org.jetbrains.kotlin.idea.debugger.test.util.LogPropagator
+import org.jetbrains.kotlin.idea.test.ConfigLibraryUtil
+import org.jetbrains.kotlin.idea.test.PluginTestCaseBase
+import org.jetbrains.kotlin.test.KotlinTestUtils
+import org.jetbrains.kotlin.test.TestMetadata
+import org.jetbrains.kotlin.test.testFramework.runWriteAction
+import org.junit.ComparisonFailure
+import java.io.File
+
+internal const val KOTLIN_LIBRARY_NAME = "KotlinLibrary"
+internal const val TEST_LIBRARY_NAME = "TestLibrary"
+
+class TestFiles(val originalFile: File, val wholeFile: TestFile, files: List) : List by files
+
+abstract class KotlinDescriptorTestCase : DescriptorTestCase() {
+ private lateinit var testAppDirectory: File
+ private lateinit var sourcesOutputDirectory: File
+
+ private lateinit var librarySrcDirectory: File
+ private lateinit var libraryOutputDirectory: File
+
+ private lateinit var mainClassName: String
+
+ override fun getTestAppPath(): String = testAppDirectory.absolutePath
+ override fun getTestProjectJdk() = PluginTestCaseBase.fullJdk()
+
+ private fun systemLogger(message: String) = println(message, ProcessOutputTypes.SYSTEM)
+
+ private var breakpointCreator: BreakpointCreator? = null
+ private var logPropagator: LogPropagator? = null
+
+ private var oldValues: OldValuesStorage? = null
+
+ override fun runBare() {
+ testAppDirectory = KotlinTestUtils.tmpDir("debuggerTestSources")
+ sourcesOutputDirectory = File(testAppDirectory, "src").apply { mkdirs() }
+
+ librarySrcDirectory = File(testAppDirectory, "libSrc").apply { mkdirs() }
+ libraryOutputDirectory = File(testAppDirectory, "lib").apply { mkdirs() }
+
+ super.runBare()
+ }
+
+ override fun setUp() {
+ super.setUp()
+
+ KotlinDebuggerCaches.LOG_COMPILATIONS = true
+ logPropagator = LogPropagator(::systemLogger).apply { attach() }
+ }
+
+ override fun tearDown() {
+ KotlinDebuggerCaches.LOG_COMPILATIONS = false
+
+ oldValues?.revertValues()
+ oldValues = null
+
+ detachLibraries()
+
+ logPropagator?.detach()
+ logPropagator = null
+
+ super.tearDown()
+ }
+
+ fun doTest(path: String) {
+ val wholeFile = File(path)
+ val wholeFileContents = FileUtil.loadFile(wholeFile, true)
+
+ val testFiles = createTestFiles(wholeFile, wholeFileContents)
+ val preferences = DebuggerPreferences(myProject, wholeFileContents)
+
+ oldValues = SettingsMutators.mutate(preferences)
+
+ val rawJvmTarget = preferences[DebuggerPreferenceKeys.JVM_TARGET]
+ val jvmTarget = JvmTarget.fromString(rawJvmTarget) ?: error("Invalid JVM target value: $rawJvmTarget")
+ val applyDexPatch = preferences[DebuggerPreferenceKeys.EMULATE_DEX]
+
+ val compilerFacility = DebuggerTestCompilerFacility(testFiles, jvmTarget, applyDexPatch)
+
+ for (library in preferences[DebuggerPreferenceKeys.ATTACH_LIBRARY]) {
+ compilerFacility.compileExternalLibrary(library, librarySrcDirectory, libraryOutputDirectory)
+ }
+
+ compilerFacility.compileLibrary(librarySrcDirectory, libraryOutputDirectory)
+ mainClassName = compilerFacility.compileTestSources(myModule, sourcesOutputDirectory, File(appOutputPath), libraryOutputDirectory)
+
+ breakpointCreator = BreakpointCreator(
+ project,
+ ::systemLogger,
+ preferences
+ ).apply { createAdditionalBreakpoints(wholeFileContents) }
+
+ createLocalProcess(mainClassName)
+ doMultiFileTest(testFiles, preferences)
+ }
+
+ private fun createTestFiles(wholeFile: File, wholeFileContents: String): TestFiles {
+ val testFiles = KotlinTestUtils.createTestFiles(
+ wholeFile.name,
+ wholeFileContents,
+ object : KotlinTestUtils.TestFileFactoryNoModules() {
+ override fun create(fileName: String, text: String, directives: Map): TestFile {
+ return TestFile(fileName, text)
+ }
+ }
+ )
+
+ val wholeTestFile = TestFile(wholeFile.name, wholeFileContents)
+ return TestFiles(wholeFile, wholeTestFile, testFiles)
+ }
+
+ abstract fun doMultiFileTest(files: TestFiles, preferences: DebuggerPreferences)
+
+ override fun initOutputChecker(): OutputChecker {
+ return KotlinOutputChecker(getTestDirectoryPath(), testAppPath, appOutputPath)
+ }
+
+ override fun setUpModule() {
+ super.setUpModule()
+ attachLibraries()
+ }
+
+ override fun setUpProject() {
+ super.setUpProject()
+ File(appOutputPath).mkdirs()
+ }
+
+ override fun createBreakpoints(file: PsiFile?) {
+ if (file != null) {
+ val breakpointCreator = this.breakpointCreator ?: error(BreakpointCreator::class.java.simpleName + " should be set")
+ breakpointCreator.createBreakpoints(file)
+ }
+ }
+
+ override fun createJavaParameters(mainClass: String?): JavaParameters {
+ return super.createJavaParameters(mainClass).apply {
+ ModuleRootManager.getInstance(myModule).orderEntries.asSequence().filterIsInstance()
+ classPath.add(ForTestCompileRuntime.runtimeJarForTests())
+ classPath.add(libraryOutputDirectory)
+ }
+ }
+
+ private fun attachLibraries() {
+ runWriteAction {
+ val kotlinStdlibJar = ForTestCompileRuntime.runtimeJarForTests()
+ val kotlinStdlibSourcesJar = ForTestCompileRuntime.runtimeSourcesJarForTests()
+
+ val model = ModuleRootManager.getInstance(myModule).modifiableModel
+ attachLibrary(model, KOTLIN_LIBRARY_NAME, kotlinStdlibJar, kotlinStdlibSourcesJar)
+ attachLibrary(model, TEST_LIBRARY_NAME, libraryOutputDirectory, librarySrcDirectory)
+ model.commit()
+ }
+ }
+
+ private fun detachLibraries() {
+ EdtTestUtil.runInEdtAndGet(ThrowableComputable {
+ ConfigLibraryUtil.removeLibrary(module, KOTLIN_LIBRARY_NAME)
+ ConfigLibraryUtil.removeLibrary(module, TEST_LIBRARY_NAME)
+ })
+ }
+
+ private fun attachLibrary(model: ModifiableRootModel, libraryName: String, classes: File, sources: File) {
+ val customLibEditor = NewLibraryEditor().apply {
+ name = libraryName
+
+ addRoot(VfsUtil.getUrlForLibraryRoot(classes), OrderRootType.CLASSES)
+ addRoot(VfsUtil.getUrlForLibraryRoot(sources), OrderRootType.SOURCES)
+ }
+
+ ConfigLibraryUtil.addLibrary(customLibEditor, model, null)
+ }
+
+ override fun checkTestOutput() {
+ if (KotlinTestUtils.isAllFilesPresentTest(getTestName(false))) {
+ return
+ }
+
+ try {
+ super.checkTestOutput()
+ } catch (e: ComparisonFailure) {
+ KotlinTestUtils.assertEqualsToFile(File(getTestDirectoryPath(), getTestName(true) + ".out"), e.actual)
+ }
+
+ }
+
+ override fun getData(dataId: String): Any? {
+ if (XDebugSession.DATA_KEY.`is`(dataId)) {
+ return myDebuggerSession?.xDebugSession
+ }
+
+ return super.getData(dataId)
+ }
+
+ private fun getTestDirectoryPath(): String = javaClass.getAnnotation(TestMetadata::class.java).value
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCaseWithStepping.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCaseWithStepping.kt
new file mode 100644
index 00000000000..eb8e8abfa72
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCaseWithStepping.kt
@@ -0,0 +1,165 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test
+
+import com.intellij.debugger.actions.MethodSmartStepTarget
+import com.intellij.debugger.engine.*
+import com.intellij.debugger.engine.evaluation.EvaluationContextImpl
+import com.intellij.debugger.impl.DebuggerContextImpl
+import com.intellij.debugger.impl.JvmSteppingCommandProvider
+import com.intellij.debugger.impl.PositionUtil
+import com.intellij.execution.process.ProcessOutputTypes
+import com.sun.jdi.request.StepRequest
+import org.jetbrains.kotlin.idea.debugger.stepping.*
+import org.jetbrains.kotlin.idea.debugger.test.util.SteppingInstruction
+import org.jetbrains.kotlin.idea.debugger.test.util.SteppingInstructionKind
+import org.jetbrains.kotlin.idea.debugger.test.util.renderSourcePosition
+import org.jetbrains.kotlin.idea.util.application.runReadAction
+import org.jetbrains.kotlin.psi.psiUtil.createSmartPointer
+import org.jetbrains.kotlin.psi.psiUtil.getElementTextWithContext
+import org.jetbrains.kotlin.utils.addToStdlib.firstIsInstance
+
+abstract class KotlinDescriptorTestCaseWithStepping : KotlinDescriptorTestCase() {
+ private val dp: DebugProcessImpl
+ get() = debugProcess ?: throw AssertionError("createLocalProcess() should be called before getDebugProcess()")
+
+ @Volatile
+ private var myEvaluationContext: EvaluationContextImpl? = null
+ val evaluationContext get() = myEvaluationContext!!
+
+ @Volatile
+ private var myDebuggerContext: DebuggerContextImpl? = null
+ protected open val debuggerContext get() = myDebuggerContext!!
+
+ @Volatile
+ private var myCommandProvider: KotlinSteppingCommandProvider? = null
+ private val commandProvider get() = myCommandProvider!!
+
+ private fun initContexts(suspendContext: SuspendContextImpl) {
+ myEvaluationContext = createEvaluationContext(suspendContext)
+ myDebuggerContext = createDebuggerContext(suspendContext)
+ myCommandProvider = JvmSteppingCommandProvider.EP_NAME.extensions.firstIsInstance()
+ }
+
+ internal fun process(instructions: List) {
+ instructions.forEach(this::process)
+ }
+
+ internal fun doOnBreakpoint(action: SuspendContextImpl.() -> Unit) {
+ super.onBreakpoint {
+ try {
+ initContexts(it)
+ it.printContext()
+ it.action()
+ } catch (e: AssertionError) {
+ throw e
+ } catch (e: Throwable) {
+ e.printStackTrace()
+ resume(it)
+ }
+ }
+ }
+
+ internal fun finish() {
+ doOnBreakpoint {
+ resume(this)
+ }
+ }
+
+ private fun SuspendContextImpl.doStepInto(ignoreFilters: Boolean, smartStepFilter: MethodFilter?) {
+ val stepIntoCommand =
+ runReadAction { commandProvider.getStepIntoCommand(this, ignoreFilters, smartStepFilter, StepRequest.STEP_LINE) }
+ ?: dp.createStepIntoCommand(this, ignoreFilters, smartStepFilter)
+
+ dp.managerThread.schedule(stepIntoCommand)
+ }
+
+ private fun SuspendContextImpl.doStepOut() {
+ val stepOutCommand = runReadAction { commandProvider.getStepOutCommand(this, debuggerContext) }
+ ?: dp.createStepOutCommand(this)
+
+ dp.managerThread.schedule(stepOutCommand)
+ }
+
+ private fun SuspendContextImpl.doStepOver(ignoreBreakpoints: Boolean = false) {
+ val stepOverCommand = runReadAction { commandProvider.getStepOverCommand(this, ignoreBreakpoints, debuggerContext) }
+ ?: dp.createStepOverCommand(this, ignoreBreakpoints)
+
+ dp.managerThread.schedule(stepOverCommand)
+ }
+
+ private fun process(instruction: SteppingInstruction) {
+ fun loop(count: Int, block: SuspendContextImpl.() -> Unit) {
+ repeat(count) {
+ doOnBreakpoint(block)
+ }
+ }
+
+ when (instruction.kind) {
+ SteppingInstructionKind.StepInto -> loop(instruction.arg) { doStepInto(false, null) }
+ SteppingInstructionKind.StepOut -> loop(instruction.arg) { doStepOut() }
+ SteppingInstructionKind.StepOver -> loop(instruction.arg) { doStepOver() }
+ SteppingInstructionKind.ForceStepOver -> loop(instruction.arg) { doStepOver(ignoreBreakpoints = true) }
+ SteppingInstructionKind.SmartStepInto -> loop(instruction.arg) { doSmartStepInto() }
+ SteppingInstructionKind.SmartStepIntoByIndex -> doOnBreakpoint { doSmartStepInto(instruction.arg) }
+ SteppingInstructionKind.Resume -> loop(instruction.arg) { resume(this) }
+ }
+ }
+
+ private fun SuspendContextImpl.doSmartStepInto(chooseFromList: Int = 0) {
+ this.doSmartStepInto(chooseFromList, false)
+ }
+
+ private fun SuspendContextImpl.printContext() {
+ runReadAction {
+ if (this.frameProxy == null) {
+ return@runReadAction println("Context thread is null", ProcessOutputTypes.SYSTEM)
+ }
+
+ val sourcePosition = PositionUtil.getSourcePosition(this)
+ println(renderSourcePosition(sourcePosition), ProcessOutputTypes.SYSTEM)
+ }
+ }
+
+ private fun SuspendContextImpl.doSmartStepInto(chooseFromList: Int, ignoreFilters: Boolean) {
+ val filters = createSmartStepIntoFilters()
+ if (chooseFromList == 0) {
+ filters.forEach {
+ dp.managerThread!!.schedule(dp.createStepIntoCommand(this, ignoreFilters, it))
+ }
+ } else {
+ try {
+ dp.managerThread!!.schedule(dp.createStepIntoCommand(this, ignoreFilters, filters[chooseFromList - 1]))
+ } catch (e: IndexOutOfBoundsException) {
+ val elementText = runReadAction { debuggerContext.sourcePosition.elementAt.getElementTextWithContext() }
+ throw AssertionError("Couldn't find smart step into command at: \n$elementText", e)
+ }
+ }
+ }
+
+ private fun createSmartStepIntoFilters() = runReadAction {
+ val position = debuggerContext.sourcePosition
+
+ val stepTargets = KotlinSmartStepIntoHandler().findSmartStepTargets(position)
+ stepTargets.mapNotNull { stepTarget ->
+ when (stepTarget) {
+ is KotlinLambdaSmartStepTarget ->
+ KotlinLambdaMethodFilter(
+ stepTarget.getLambda(), stepTarget.getCallingExpressionLines()!!, stepTarget.isInline, stepTarget.isSuspend
+ )
+ is KotlinMethodSmartStepTarget ->
+ KotlinBasicStepMethodFilter(
+ stepTarget.declaration?.createSmartPointer(),
+ stepTarget.isInvoke,
+ stepTarget.targetMethodName,
+ stepTarget.getCallingExpressionLines()!!
+ )
+ is MethodSmartStepTarget -> BasicStepMethodFilter(stepTarget.method, stepTarget.getCallingExpressionLines())
+ else -> null
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluateExpressionTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinEvaluateExpressionTestGenerated.java
similarity index 53%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluateExpressionTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinEvaluateExpressionTestGenerated.java
index 0505316e4a0..e401bbcb940 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluateExpressionTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinEvaluateExpressionTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.evaluate;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluateExpressionTest {
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SingleBreakpoint extends AbstractKotlinEvaluateExpressionTest {
@@ -29,454 +29,454 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
@TestMetadata("abstractFunCall.kt")
public void testAbstractFunCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/abstractFunCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/abstractFunCall.kt");
}
@TestMetadata("accessToOverridenPropertyWithBackingField.kt")
public void testAccessToOverridenPropertyWithBackingField() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/accessToOverridenPropertyWithBackingField.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/accessToOverridenPropertyWithBackingField.kt");
}
public void testAllFilesPresentInSingleBreakpoint() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("annotationValue.kt")
public void testAnnotationValue() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/annotationValue.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/annotationValue.kt");
}
@TestMetadata("anonymousObjects.kt")
public void testAnonymousObjects() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/anonymousObjects.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/anonymousObjects.kt");
}
@TestMetadata("arrayMethods.kt")
public void testArrayMethods() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/arrayMethods.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/arrayMethods.kt");
}
@TestMetadata("arrays.kt")
public void testArrays() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/arrays.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/arrays.kt");
}
@TestMetadata("boxParam.kt")
public void testBoxParam() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/boxParam.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/boxParam.kt");
}
@TestMetadata("boxReturnValue.kt")
public void testBoxReturnValue() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/boxReturnValue.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/boxReturnValue.kt");
}
@TestMetadata("breakpointInInlineFun.kt")
public void testBreakpointInInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/breakpointInInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.kt");
}
@TestMetadata("callableBug.kt")
public void testCallableBug() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/callableBug.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/callableBug.kt");
}
@TestMetadata("classFromAnotherPackage.kt")
public void testClassFromAnotherPackage() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/classFromAnotherPackage.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.kt");
}
@TestMetadata("classObjectVal.kt")
public void testClassObjectVal() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/classObjectVal.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classObjectVal.kt");
}
@TestMetadata("collections.kt")
public void testCollections() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/collections.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/collections.kt");
}
@TestMetadata("dataClassCopy.kt")
public void testDataClassCopy() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/dataClassCopy.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dataClassCopy.kt");
}
@TestMetadata("defaultParameterValues.kt")
public void testDefaultParameterValues() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/defaultParameterValues.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/defaultParameterValues.kt");
}
@TestMetadata("defaultParameterValues2.kt")
public void testDefaultParameterValues2() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/defaultParameterValues2.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/defaultParameterValues2.kt");
}
@TestMetadata("delegatedPropertyInOtherFile.kt")
public void testDelegatedPropertyInOtherFile() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/delegatedPropertyInOtherFile.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.kt");
}
@TestMetadata("delegatedVariables.kt")
public void testDelegatedVariables() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/delegatedVariables.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedVariables.kt");
}
@TestMetadata("dependentOnFile.kt")
public void testDependentOnFile() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/dependentOnFile.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dependentOnFile.kt");
}
@TestMetadata("doubles.kt")
public void testDoubles() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/doubles.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/doubles.kt");
}
@TestMetadata("enums.kt")
public void testEnums() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/enums.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/enums.kt");
}
@TestMetadata("errors.kt")
public void testErrors() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/errors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/errors.kt");
}
@TestMetadata("escapedNames.kt")
public void testEscapedNames() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/escapedNames.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/escapedNames.kt");
}
@TestMetadata("experimentalApi.kt")
public void testExperimentalApi() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/experimentalApi.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/experimentalApi.kt");
}
@TestMetadata("extractLocalVariables.kt")
public void testExtractLocalVariables() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extractLocalVariables.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractLocalVariables.kt");
}
@TestMetadata("extractThis.kt")
public void testExtractThis() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extractThis.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThis.kt");
}
@TestMetadata("extractThisInTrait.kt")
public void testExtractThisInTrait() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extractThisInTrait.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThisInTrait.kt");
}
@TestMetadata("extractVariablesFromCall.kt")
public void testExtractVariablesFromCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extractVariablesFromCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractVariablesFromCall.kt");
}
@TestMetadata("fieldGetters.kt")
public void testFieldGetters() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/fieldGetters.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.kt");
}
@TestMetadata("fileWithError.kt")
public void testFileWithError() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/fileWithError.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.kt");
}
@TestMetadata("funFromSuperClass.kt")
public void testFunFromSuperClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/funFromSuperClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/funFromSuperClass.kt");
}
@TestMetadata("genericCrossinlineArgument.kt")
public void testGenericCrossinlineArgument() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/genericCrossinlineArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/genericCrossinlineArgument.kt");
}
@TestMetadata("imports.kt")
public void testImports() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/imports.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/imports.kt");
}
@TestMetadata("importsLambdaContext.kt")
public void testImportsLambdaContext() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/importsLambdaContext.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/importsLambdaContext.kt");
}
@TestMetadata("inlineFunInMultiFilePackage.kt")
public void testInlineFunInMultiFilePackage() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/inlineFunInMultiFilePackage.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.kt");
}
@TestMetadata("inlineFunction.kt")
public void testInlineFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/inlineFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.kt");
}
@TestMetadata("inlineFunctionBreakpointAnotherFile.kt")
public void testInlineFunctionBreakpointAnotherFile() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/inlineFunctionBreakpointAnotherFile.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.kt");
}
@TestMetadata("inlineFunctionBreakpointVariants.kt")
public void testInlineFunctionBreakpointVariants() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/inlineFunctionBreakpointVariants.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointVariants.kt");
}
@TestMetadata("inlineMethodsInSignature.kt")
public void testInlineMethodsInSignature() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/inlineMethodsInSignature.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineMethodsInSignature.kt");
}
@TestMetadata("innerClass.kt")
public void testInnerClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/innerClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/innerClass.kt");
}
@TestMetadata("insertInBlock.kt")
public void testInsertInBlock() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/insertInBlock.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/insertInBlock.kt");
}
@TestMetadata("internalFunctionEvaluate.kt")
public void testInternalFunctionEvaluate() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/internalFunctionEvaluate.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/internalFunctionEvaluate.kt");
}
@TestMetadata("internalProperty.kt")
public void testInternalProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/internalProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/internalProperty.kt");
}
@TestMetadata("javaStaticMethods.kt")
public void testJavaStaticMethods() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaStaticMethods.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaStaticMethods.kt");
}
@TestMetadata("kt12206BasePropertyWithoutBackingField.kt")
public void testKt12206BasePropertyWithoutBackingField() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt12206BasePropertyWithoutBackingField.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt12206BasePropertyWithoutBackingField.kt");
}
@TestMetadata("kt15259.kt")
public void testKt15259() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt15259.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt15259.kt");
}
@TestMetadata("kt17514.kt")
public void testKt17514() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt17514.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt17514.kt");
}
@TestMetadata("kt22366.kt")
public void testKt22366() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt22366.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt22366.kt");
}
@TestMetadata("kt25220.kt")
public void testKt25220() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt25220.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt25220.kt");
}
@TestMetadata("kt25222.kt")
public void testKt25222() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt25222.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt25222.kt");
}
@TestMetadata("kt28087.kt")
public void testKt28087() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt28087.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt28087.kt");
}
@TestMetadata("kt29179.kt")
public void testKt29179() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt29179.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt29179.kt");
}
@TestMetadata("kt31709.kt")
public void testKt31709() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt31709.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt31709.kt");
}
@TestMetadata("kt5554OnlyIntsShouldBeCoerced.kt")
public void testKt5554OnlyIntsShouldBeCoerced() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt5554OnlyIntsShouldBeCoerced.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt5554OnlyIntsShouldBeCoerced.kt");
}
@TestMetadata("kt7046localVarInInline.kt")
public void testKt7046localVarInInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/kt7046localVarInInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt7046localVarInInline.kt");
}
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/localClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localClass.kt");
}
@TestMetadata("localFunctionsWithReceivers.kt")
public void testLocalFunctionsWithReceivers() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/localFunctionsWithReceivers.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localFunctionsWithReceivers.kt");
}
@TestMetadata("localVariables.kt")
public void testLocalVariables() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/localVariables.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localVariables.kt");
}
@TestMetadata("methodWithBreakpoint.kt")
public void testMethodWithBreakpoint() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/methodWithBreakpoint.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/methodWithBreakpoint.kt");
}
@TestMetadata("multilineExpressionAtBreakpoint.kt")
public void testMultilineExpressionAtBreakpoint() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/multilineExpressionAtBreakpoint.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/multilineExpressionAtBreakpoint.kt");
}
@TestMetadata("nestedInlineArguments.kt")
public void testNestedInlineArguments() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/nestedInlineArguments.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/nestedInlineArguments.kt");
}
@TestMetadata("onClassHeader.kt")
public void testOnClassHeader() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/onClassHeader.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onClassHeader.kt");
}
@TestMetadata("onGetter.kt")
public void testOnGetter() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/onGetter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onGetter.kt");
}
@TestMetadata("onObjectHeader.kt")
public void testOnObjectHeader() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/onObjectHeader.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onObjectHeader.kt");
}
@TestMetadata("package.kt")
public void testPackage() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/package.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/package.kt");
}
@TestMetadata("parametersOfInlineFun.kt")
public void testParametersOfInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/parametersOfInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/parametersOfInlineFun.kt");
}
@TestMetadata("parametersOfInlineFunSeveralOnLine.kt")
public void testParametersOfInlineFunSeveralOnLine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/parametersOfInlineFunSeveralOnLine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/parametersOfInlineFunSeveralOnLine.kt");
}
@TestMetadata("privateClass.kt")
public void testPrivateClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/privateClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privateClass.kt");
}
@TestMetadata("privateFieldInCompanion.kt")
public void testPrivateFieldInCompanion() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/privateFieldInCompanion.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privateFieldInCompanion.kt");
}
@TestMetadata("privateMember.kt")
public void testPrivateMember() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/privateMember.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privateMember.kt");
}
@TestMetadata("privatePropertyWithExplicitDefaultGetter.kt")
public void testPrivatePropertyWithExplicitDefaultGetter() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/privatePropertyWithExplicitDefaultGetter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privatePropertyWithExplicitDefaultGetter.kt");
}
@TestMetadata("protectedMember.kt")
public void testProtectedMember() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/protectedMember.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/protectedMember.kt");
}
@TestMetadata("rawTypeskt11831.kt")
public void testRawTypeskt11831() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/rawTypeskt11831.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/rawTypeskt11831.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/simple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/simple.kt");
}
@TestMetadata("staticField.kt")
public void testStaticField() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/staticField.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/staticField.kt");
}
@TestMetadata("stdlib.kt")
public void testStdlib() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/stdlib.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/stdlib.kt");
}
@TestMetadata("superCallsCaptured.kt")
public void testSuperCallsCaptured() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/superCallsCaptured.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/superCallsCaptured.kt");
}
@TestMetadata("superCallsSimple.kt")
public void testSuperCallsSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/superCallsSimple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/superCallsSimple.kt");
}
@TestMetadata("suspendCalls.kt")
public void testSuspendCalls() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/suspendCalls.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/suspendCalls.kt");
}
@TestMetadata("synchronizedBlock.kt")
public void testSynchronizedBlock() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/synchronizedBlock.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/synchronizedBlock.kt");
}
@TestMetadata("typeParameterRef.kt")
public void testTypeParameterRef() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/typeParameterRef.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/typeParameterRef.kt");
}
@TestMetadata("typedArray.kt")
public void testTypedArray() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/typedArray.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/typedArray.kt");
}
@TestMetadata("unboxParam.kt")
public void testUnboxParam() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/unboxParam.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/unboxParam.kt");
}
@TestMetadata("unsafeCall.kt")
public void testUnsafeCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/unsafeCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/unsafeCall.kt");
}
@TestMetadata("valueParameterName.kt")
public void testValueParameterName() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/valueParameterName.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/valueParameterName.kt");
}
@TestMetadata("variableAsFunction.kt")
public void testVariableAsFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/variableAsFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/variableAsFunction.kt");
}
@TestMetadata("vars.kt")
public void testVars() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/vars.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/vars.kt");
}
@TestMetadata("whenEvaluation.kt")
public void testWhenEvaluation() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/whenEvaluation.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/whenEvaluation.kt");
}
@TestMetadata(".kt.kt")
public void test_kt() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/.kt.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/.kt.kt");
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CompilingEvaluator extends AbstractKotlinEvaluateExpressionTest {
@@ -485,66 +485,66 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInCompilingEvaluator() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("ceAnonymousObject.kt")
public void testCeAnonymousObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceAnonymousObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceAnonymousObject.kt");
}
@TestMetadata("ceAnonymousObjectCapturedInClosure.kt")
public void testCeAnonymousObjectCapturedInClosure() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceAnonymousObjectCapturedInClosure.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceAnonymousObjectCapturedInClosure.kt");
}
@TestMetadata("ceAnonymousObjectThisAsReceiver.kt")
public void testCeAnonymousObjectThisAsReceiver() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceAnonymousObjectThisAsReceiver.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceAnonymousObjectThisAsReceiver.kt");
}
@TestMetadata("ceLambda.kt")
public void testCeLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLambda.kt");
}
@TestMetadata("ceLocalClass.kt")
public void testCeLocalClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceLocalClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLocalClass.kt");
}
@TestMetadata("ceLocalClassMembers.kt")
public void testCeLocalClassMembers() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceLocalClassMembers.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLocalClassMembers.kt");
}
@TestMetadata("ceLocalClassWithSuperClass.kt")
public void testCeLocalClassWithSuperClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceLocalClassWithSuperClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLocalClassWithSuperClass.kt");
}
@TestMetadata("ceMembers.kt")
public void testCeMembers() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceMembers.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceMembers.kt");
}
@TestMetadata("ceObject.kt")
public void testCeObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceObject.kt");
}
@TestMetadata("ceSeveralLambdas.kt")
public void testCeSeveralLambdas() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceSeveralLambdas.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceSeveralLambdas.kt");
}
@TestMetadata("ceSuperAccess.kt")
public void testCeSuperAccess() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/compilingEvaluator/ceSuperAccess.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceSuperAccess.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Coroutines extends AbstractKotlinEvaluateExpressionTest {
@@ -553,46 +553,46 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInCoroutines() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("anyUpdateInvokeStatic.kt")
public void testAnyUpdateInvokeStatic() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines/anyUpdateInvokeStatic.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/anyUpdateInvokeStatic.kt");
}
@TestMetadata("anyUpdateVariable.kt")
public void testAnyUpdateVariable() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines/anyUpdateVariable.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/anyUpdateVariable.kt");
}
@TestMetadata("primitivesCoertion.kt")
public void testPrimitivesCoertion() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines/primitivesCoertion.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/primitivesCoertion.kt");
}
@TestMetadata("stringUpdateInvokeStatic.kt")
public void testStringUpdateInvokeStatic() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines/stringUpdateInvokeStatic.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdateInvokeStatic.kt");
}
@TestMetadata("stringUpdateInvokeVirtual.kt")
public void testStringUpdateInvokeVirtual() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines/stringUpdateInvokeVirtual.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdateInvokeVirtual.kt");
}
@TestMetadata("stringUpdatePutField.kt")
public void testStringUpdatePutField() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines/stringUpdatePutField.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdatePutField.kt");
}
@TestMetadata("stringUpdateVariable.kt")
public void testStringUpdateVariable() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/coroutines/stringUpdateVariable.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdateVariable.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/createExpression")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateExpression extends AbstractKotlinEvaluateExpressionTest {
@@ -601,26 +601,26 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInCreateExpression() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/createExpression"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("createExpressionCastToBuiltIn.kt")
public void testCreateExpressionCastToBuiltIn() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/createExpression/createExpressionCastToBuiltIn.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionCastToBuiltIn.kt");
}
@TestMetadata("createExpressionSimple.kt")
public void testCreateExpressionSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/createExpression/createExpressionSimple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionSimple.kt");
}
@TestMetadata("createExpressionWithArray.kt")
public void testCreateExpressionWithArray() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/createExpression/createExpressionWithArray.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ExtraVariables extends AbstractKotlinEvaluateExpressionTest {
@@ -629,66 +629,66 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInExtraVariables() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("evBreakpointOnPropertyDeclaration.kt")
public void testEvBreakpointOnPropertyDeclaration() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evBreakpointOnPropertyDeclaration.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evBreakpointOnPropertyDeclaration.kt");
}
@TestMetadata("evDelegatedProperty.kt")
public void testEvDelegatedProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evDelegatedProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDelegatedProperty.kt");
}
@TestMetadata("evDuplicateItems.kt")
public void testEvDuplicateItems() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evDuplicateItems.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDuplicateItems.kt");
}
@TestMetadata("evFinalProperty.kt")
public void testEvFinalProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evFinalProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evFinalProperty.kt");
}
@TestMetadata("evFunctionDeclaration.kt")
public void testEvFunctionDeclaration() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evFunctionDeclaration.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evFunctionDeclaration.kt");
}
@TestMetadata("evLineRange.kt")
public void testEvLineRange() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evLineRange.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evLineRange.kt");
}
@TestMetadata("evProperty.kt")
public void testEvProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evProperty.kt");
}
@TestMetadata("evPropertyRefExpr.kt")
public void testEvPropertyRefExpr() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evPropertyRefExpr.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evPropertyRefExpr.kt");
}
@TestMetadata("evSkipAnonymousObject.kt")
public void testEvSkipAnonymousObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evSkipAnonymousObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evSkipAnonymousObject.kt");
}
@TestMetadata("evSkipLambda.kt")
public void testEvSkipLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evSkipLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evSkipLambda.kt");
}
@TestMetadata("evSkipLocalClass.kt")
public void testEvSkipLocalClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extraVariables/evSkipLocalClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evSkipLocalClass.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Frame extends AbstractKotlinEvaluateExpressionTest {
@@ -697,246 +697,246 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInFrame() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("capturedValues1.kt")
public void testCapturedValues1() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/capturedValues1.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues1.kt");
}
@TestMetadata("capturedValues2.kt")
public void testCapturedValues2() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/capturedValues2.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues2.kt");
}
@TestMetadata("catchVariable.kt")
public void testCatchVariable() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/catchVariable.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/catchVariable.kt");
}
@TestMetadata("coroutineContextFun.kt")
public void testCoroutineContextFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/coroutineContextFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/coroutineContextFun.kt");
}
@TestMetadata("coroutineContextLambda.kt")
public void testCoroutineContextLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/coroutineContextLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/coroutineContextLambda.kt");
}
@TestMetadata("coroutineContextWithoutSuspend.kt")
public void testCoroutineContextWithoutSuspend() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/coroutineContextWithoutSuspend.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/coroutineContextWithoutSuspend.kt");
}
@TestMetadata("defaultImplsMangling.kt")
public void testDefaultImplsMangling() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/defaultImplsMangling.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/defaultImplsMangling.kt");
}
@TestMetadata("delegatedPropertyInClass.kt")
public void testDelegatedPropertyInClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/delegatedPropertyInClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClass.kt");
}
@TestMetadata("delegatedPropertyInClassKotlinVariables.kt")
public void testDelegatedPropertyInClassKotlinVariables() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/delegatedPropertyInClassKotlinVariables.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClassKotlinVariables.kt");
}
@TestMetadata("delegatedPropertyInClassWithToString.kt")
public void testDelegatedPropertyInClassWithToString() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/delegatedPropertyInClassWithToString.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClassWithToString.kt");
}
@TestMetadata("delegatedPropertyInClassWoRenderer.kt")
public void testDelegatedPropertyInClassWoRenderer() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/delegatedPropertyInClassWoRenderer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClassWoRenderer.kt");
}
@TestMetadata("frameAnonymousObject.kt")
public void testFrameAnonymousObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameAnonymousObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameAnonymousObject.kt");
}
@TestMetadata("frameClassObject.kt")
public void testFrameClassObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameClassObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameClassObject.kt");
}
@TestMetadata("frameClosingBracket.kt")
public void testFrameClosingBracket() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameClosingBracket.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameClosingBracket.kt");
}
@TestMetadata("frameExtFunExtFun.kt")
public void testFrameExtFunExtFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameExtFunExtFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtFunExtFun.kt");
}
@TestMetadata("frameExtensionFun.kt")
public void testFrameExtensionFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameExtensionFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtensionFun.kt");
}
@TestMetadata("frameInlineArgument.kt")
public void testFrameInlineArgument() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameInlineArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineArgument.kt");
}
@TestMetadata("frameInlineArgumentInsideInlineFun.kt")
public void testFrameInlineArgumentInsideInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameInlineArgumentInsideInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineArgumentInsideInlineFun.kt");
}
@TestMetadata("frameInlineFun.kt")
public void testFrameInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineFun.kt");
}
@TestMetadata("frameInlineFunCallInsideInlineFun.kt")
public void testFrameInlineFunCallInsideInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameInlineFunCallInsideInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineFunCallInsideInlineFun.kt");
}
@TestMetadata("frameInlineFunCallInsideInlineFunKotlinVariables.kt")
public void testFrameInlineFunCallInsideInlineFunKotlinVariables() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameInlineFunCallInsideInlineFunKotlinVariables.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineFunCallInsideInlineFunKotlinVariables.kt");
}
@TestMetadata("frameInnerClass.kt")
public void testFrameInnerClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameInnerClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerClass.kt");
}
@TestMetadata("frameInnerLambda.kt")
public void testFrameInnerLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameInnerLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerLambda.kt");
}
@TestMetadata("frameLambda.kt")
public void testFrameLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameLambda.kt");
}
@TestMetadata("frameLambdaNotUsed.kt")
public void testFrameLambdaNotUsed() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameLambdaNotUsed.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameLambdaNotUsed.kt");
}
@TestMetadata("frameLocalVariable.kt")
public void testFrameLocalVariable() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameLocalVariable.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameLocalVariable.kt");
}
@TestMetadata("frameObject.kt")
public void testFrameObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameObject.kt");
}
@TestMetadata("frameSharedVar.kt")
public void testFrameSharedVar() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameSharedVar.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameSharedVar.kt");
}
@TestMetadata("frameSharedVarLocalVar.kt")
public void testFrameSharedVarLocalVar() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameSharedVarLocalVar.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameSharedVarLocalVar.kt");
}
@TestMetadata("frameSimple.kt")
public void testFrameSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameSimple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameSimple.kt");
}
@TestMetadata("frameThis0.kt")
public void testFrameThis0() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameThis0.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0.kt");
}
@TestMetadata("frameThis0Ext.kt")
public void testFrameThis0Ext() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameThis0Ext.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0Ext.kt");
}
@TestMetadata("frameThis0This0.kt")
public void testFrameThis0This0() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/frameThis0This0.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0This0.kt");
}
@TestMetadata("hideContinuationThis.kt")
public void testHideContinuationThis() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/hideContinuationThis.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideContinuationThis.kt");
}
@TestMetadata("hideSyntheticThis.kt")
public void testHideSyntheticThis() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/hideSyntheticThis.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideSyntheticThis.kt");
}
@TestMetadata("inlineFunThisKotlinVariables.kt")
public void testInlineFunThisKotlinVariables() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/inlineFunThisKotlinVariables.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/inlineFunThisKotlinVariables.kt");
}
@TestMetadata("lambdaFun1.kt")
public void testLambdaFun1() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/lambdaFun1.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun1.kt");
}
@TestMetadata("lambdaFun2.kt")
public void testLambdaFun2() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/lambdaFun2.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun2.kt");
}
@TestMetadata("lambdaFun3.kt")
public void testLambdaFun3() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/lambdaFun3.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun3.kt");
}
@TestMetadata("lambdaFun4.kt")
public void testLambdaFun4() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/lambdaFun4.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun4.kt");
}
@TestMetadata("lambdaParameterMangling.kt")
public void testLambdaParameterMangling() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/lambdaParameterMangling.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaParameterMangling.kt");
}
@TestMetadata("lambdaThisMangling.kt")
public void testLambdaThisMangling() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/lambdaThisMangling.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaThisMangling.kt");
}
@TestMetadata("localFunctionMangling.kt")
public void testLocalFunctionMangling() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/localFunctionMangling.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/localFunctionMangling.kt");
}
@TestMetadata("nestedInlineFun.kt")
public void testNestedInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/nestedInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/nestedInlineFun.kt");
}
@TestMetadata("nestedInlineFun2.kt")
public void testNestedInlineFun2() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/nestedInlineFun2.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/nestedInlineFun2.kt");
}
@TestMetadata("remapThis.kt")
public void testRemapThis() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/remapThis.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/remapThis.kt");
}
@TestMetadata("suspendContinuation.kt")
public void testSuspendContinuation() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/suspendContinuation.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/suspendContinuation.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaContext extends AbstractKotlinEvaluateExpressionTest {
@@ -945,41 +945,41 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInJavaContext() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("jcBlock.kt")
public void testJcBlock() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext/jcBlock.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcBlock.kt");
}
@TestMetadata("jcImports.kt")
public void testJcImports() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext/jcImports.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcImports.kt");
}
@TestMetadata("jcLocalVariable.kt")
public void testJcLocalVariable() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext/jcLocalVariable.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcLocalVariable.kt");
}
@TestMetadata("jcMarkedObject.kt")
public void testJcMarkedObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext/jcMarkedObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcMarkedObject.kt");
}
@TestMetadata("jcProperty.kt")
public void testJcProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext/jcProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcProperty.kt");
}
@TestMetadata("jcSimple.kt")
public void testJcSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/javaContext/jcSimple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcSimple.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/labels")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Labels extends AbstractKotlinEvaluateExpressionTest {
@@ -988,36 +988,36 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInLabels() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/labels"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("lCallOnLabeledObj.kt")
public void testLCallOnLabeledObj() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/labels/lCallOnLabeledObj.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lCallOnLabeledObj.kt");
}
@TestMetadata("lIdentifier.kt")
public void testLIdentifier() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/labels/lIdentifier.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lIdentifier.kt");
}
@TestMetadata("lSeveralLabels.kt")
public void testLSeveralLabels() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/labels/lSeveralLabels.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lSeveralLabels.kt");
}
@TestMetadata("lSimple.kt")
public void testLSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/labels/lSimple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lSimple.kt");
}
@TestMetadata("ldifferentTypes.kt")
public void testLdifferentTypes() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/labels/ldifferentTypes.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/ldifferentTypes.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Lambdas extends AbstractKotlinEvaluateExpressionTest {
@@ -1026,61 +1026,61 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInLambdas() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("destructuringParam.kt")
public void testDestructuringParam() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/destructuringParam.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/destructuringParam.kt");
}
@TestMetadata("inlineFunctionalExpression.kt")
public void testInlineFunctionalExpression() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/inlineFunctionalExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineFunctionalExpression.kt");
}
@TestMetadata("inlineLambda.kt")
public void testInlineLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/inlineLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineLambda.kt");
}
@TestMetadata("lambdaOnReturn.kt")
public void testLambdaOnReturn() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/lambdaOnReturn.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/lambdaOnReturn.kt");
}
@TestMetadata("lambdaOnSecondLine.kt")
public void testLambdaOnSecondLine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/lambdaOnSecondLine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/lambdaOnSecondLine.kt");
}
@TestMetadata("oneLineFunctionalExpression.kt")
public void testOneLineFunctionalExpression() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/oneLineFunctionalExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/oneLineFunctionalExpression.kt");
}
@TestMetadata("oneLineLambda.kt")
public void testOneLineLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/oneLineLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/oneLineLambda.kt");
}
@TestMetadata("twoLambdasOnOneLineFirst.kt")
public void testTwoLambdasOnOneLineFirst() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/twoLambdasOnOneLineFirst.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/twoLambdasOnOneLineFirst.kt");
}
@TestMetadata("twoLambdasOnOneLineSecond.kt")
public void testTwoLambdasOnOneLineSecond() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/twoLambdasOnOneLineSecond.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/twoLambdasOnOneLineSecond.kt");
}
@TestMetadata("underscoreNames.kt")
public void testUnderscoreNames() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/underscoreNames.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/underscoreNames.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/renderer")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/renderer")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Renderer extends AbstractKotlinEvaluateExpressionTest {
@@ -1089,17 +1089,17 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInRenderer() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/renderer"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/renderer"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("toStringRenderer.kt")
public void testToStringRenderer() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/renderer/toStringRenderer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/renderer/toStringRenderer.kt");
}
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MultipleBreakpoints extends AbstractKotlinEvaluateExpressionTest {
@@ -1108,135 +1108,135 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInMultipleBreakpoints() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("clearCache.kt")
public void testClearCache() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/clearCache.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/clearCache.kt");
}
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/constructors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/constructors.kt");
}
@TestMetadata("exceptions.kt")
public void testExceptions() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/exceptions.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/exceptions.kt");
}
@TestMetadata("extensionMemberFunction.kt")
public void testExtensionMemberFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/extensionMemberFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/extensionMemberFunction.kt");
}
@TestMetadata("extensionMemberFunctionInObject.kt")
public void testExtensionMemberFunctionInObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/extensionMemberFunctionInObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/extensionMemberFunctionInObject.kt");
}
@TestMetadata("extensionMemberProperty.kt")
public void testExtensionMemberProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/extensionMemberProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/extensionMemberProperty.kt");
}
@TestMetadata("fieldVariable.kt")
public void testFieldVariable() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/fieldVariable.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/fieldVariable.kt");
}
@TestMetadata("funFromOuterClassInLamdba.kt")
public void testFunFromOuterClassInLamdba() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/funFromOuterClassInLamdba.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/funFromOuterClassInLamdba.kt");
}
@TestMetadata("initializer.kt")
public void testInitializer() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/initializer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/initializer.kt");
}
@TestMetadata("invisibleDeclarations.kt")
public void testInvisibleDeclarations() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/invisibleDeclarations.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/invisibleDeclarations.kt");
}
@TestMetadata("isInsideInlineLambda.kt")
public void testIsInsideInlineLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/isInsideInlineLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.kt");
}
@TestMetadata("lambdaParameters.kt")
public void testLambdaParameters() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/lambdaParameters.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/lambdaParameters.kt");
}
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/localFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/localFun.kt");
}
@TestMetadata("multipleBreakpointsAtLine.kt")
public void testMultipleBreakpointsAtLine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/multipleBreakpointsAtLine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/multipleBreakpointsAtLine.kt");
}
@TestMetadata("mutations.kt")
public void testMutations() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/mutations.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/mutations.kt");
}
@TestMetadata("nonCapturedVariables.kt")
public void testNonCapturedVariables() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/nonCapturedVariables.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/nonCapturedVariables.kt");
}
@TestMetadata("privateMembersPriority.kt")
public void testPrivateMembersPriority() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/privateMembersPriority.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/privateMembersPriority.kt");
}
@TestMetadata("remappedParameterInInline.kt")
public void testRemappedParameterInInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/remappedParameterInInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/remappedParameterInInline.kt");
}
@TestMetadata("smartcasts.kt")
public void testSmartcasts() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/smartcasts.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/smartcasts.kt");
}
@TestMetadata("thisLabels.kt")
public void testThisLabels() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/thisLabels.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/thisLabels.kt");
}
@TestMetadata("whenEntry.kt")
public void testWhenEntry() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/whenEntry.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/whenEntry.kt");
}
@TestMetadata("withoutBodyFunctions.kt")
public void testWithoutBodyFunctions() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/withoutBodyFunctions.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyFunctions.kt");
}
@TestMetadata("withoutBodyProperties.kt")
public void testWithoutBodyProperties() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/withoutBodyProperties.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyProperties.kt");
}
@TestMetadata("withoutBodyProperties2.kt")
public void testWithoutBodyProperties2() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/withoutBodyProperties2.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyProperties2.kt");
}
@TestMetadata("withoutBodyTypeParameters.kt")
public void testWithoutBodyTypeParameters() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/withoutBodyTypeParameters.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyTypeParameters.kt");
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/library")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Library extends AbstractKotlinEvaluateExpressionTest {
@@ -1245,17 +1245,17 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
}
public void testAllFilesPresentInLibrary() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/library"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("customLibClassName.kt")
public void testCustomLibClassName() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/library/customLibClassName.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.kt");
}
@TestMetadata("localFunInLibrary.kt")
public void testLocalFunInLibrary() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/evaluate/multipleBreakpoints/library/localFunInLibrary.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.kt");
}
}
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinSteppingTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinSteppingTestGenerated.java
similarity index 55%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinSteppingTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinSteppingTestGenerated.java
index 9396d3c1544..9a1771defd5 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinSteppingTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinSteppingTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepInto extends AbstractKotlinSteppingTest {
@@ -28,91 +28,91 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
}
public void testAllFilesPresentInStepInto() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classObjectFunFromClass.kt")
public void testClassObjectFunFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
}
@TestMetadata("classObjectFunFromTopLevel.kt")
public void testClassObjectFunFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
}
@TestMetadata("extFun.kt")
public void testExtFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/extFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/extFun.kt");
}
@TestMetadata("javaFun.kt")
public void testJavaFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/javaFun.kt");
}
@TestMetadata("javaSamConstructor.kt")
public void testJavaSamConstructor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamConstructor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/javaSamConstructor.kt");
}
@TestMetadata("javaSamFunction.kt")
public void testJavaSamFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
}
@TestMetadata("kotlinSamFunction.kt")
public void testKotlinSamFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/kotlinSamFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/kotlinSamFunction.kt");
}
@TestMetadata("memberFunFromClass.kt")
public void testMemberFunFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberFunFromClass.kt");
}
@TestMetadata("memberFunFromTopLevel.kt")
public void testMemberFunFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
}
@TestMetadata("memberGetterFromClass.kt")
public void testMemberGetterFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
}
@TestMetadata("memberGetterFromTopLevel.kt")
public void testMemberGetterFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
}
@TestMetadata("objectFun.kt")
public void testObjectFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/objectFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/objectFun.kt");
}
@TestMetadata("topLevelFunFromClass.kt")
public void testTopLevelFunFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
}
@TestMetadata("topLevelFunFromTopLevel.kt")
public void testTopLevelFunFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
}
@TestMetadata("topLevelGetterFromClass.kt")
public void testTopLevelGetterFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
}
@TestMetadata("topLevelGetterFromTopLevel.kt")
public void testTopLevelGetterFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SmartStepInto extends AbstractKotlinSteppingTest {
@@ -121,91 +121,91 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
}
public void testAllFilesPresentInSmartStepInto() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classObjectFunFromClass.kt")
public void testClassObjectFunFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/classObjectFunFromClass.kt");
}
@TestMetadata("classObjectFunFromTopLevel.kt")
public void testClassObjectFunFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/classObjectFunFromTopLevel.kt");
}
@TestMetadata("extFun.kt")
public void testExtFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/extFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/extFun.kt");
}
@TestMetadata("javaFun.kt")
public void testJavaFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/javaFun.kt");
}
@TestMetadata("javaSamConstructor.kt")
public void testJavaSamConstructor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamConstructor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/javaSamConstructor.kt");
}
@TestMetadata("javaSamFunction.kt")
public void testJavaSamFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/javaSamFunction.kt");
}
@TestMetadata("kotlinSamFunction.kt")
public void testKotlinSamFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/kotlinSamFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/kotlinSamFunction.kt");
}
@TestMetadata("memberFunFromClass.kt")
public void testMemberFunFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberFunFromClass.kt");
}
@TestMetadata("memberFunFromTopLevel.kt")
public void testMemberFunFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberFunFromTopLevel.kt");
}
@TestMetadata("memberGetterFromClass.kt")
public void testMemberGetterFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberGetterFromClass.kt");
}
@TestMetadata("memberGetterFromTopLevel.kt")
public void testMemberGetterFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/memberGetterFromTopLevel.kt");
}
@TestMetadata("objectFun.kt")
public void testObjectFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/objectFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/objectFun.kt");
}
@TestMetadata("topLevelFunFromClass.kt")
public void testTopLevelFunFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelFunFromClass.kt");
}
@TestMetadata("topLevelFunFromTopLevel.kt")
public void testTopLevelFunFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelFunFromTopLevel.kt");
}
@TestMetadata("topLevelGetterFromClass.kt")
public void testTopLevelGetterFromClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelGetterFromClass.kt");
}
@TestMetadata("topLevelGetterFromTopLevel.kt")
public void testTopLevelGetterFromTopLevel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepIntoAndSmartStepInto/topLevelGetterFromTopLevel.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepInto")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepIntoOnly extends AbstractKotlinSteppingTest {
@@ -215,130 +215,130 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
@TestMetadata("accessors.kt")
public void testAccessors() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/accessors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/accessors.kt");
}
public void testAllFilesPresentInStepIntoOnly() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepInto"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("continueLabel.kt")
public void testContinueLabel() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/continueLabel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/continueLabel.kt");
}
@TestMetadata("defaultAccessors.kt")
public void testDefaultAccessors() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/defaultAccessors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/defaultAccessors.kt");
}
@TestMetadata("forLoop.kt")
public void testForLoop() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/forLoop.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/forLoop.kt");
}
@TestMetadata("functionReference.kt")
public void testFunctionReference() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/functionReference.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/functionReference.kt");
}
@TestMetadata("inlineClass.kt")
public void testInlineClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/inlineClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/inlineClass.kt");
}
@TestMetadata("inlineDex.kt")
public void testInlineDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/inlineDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/inlineDex.kt");
}
@TestMetadata("inlineOnly.kt")
public void testInlineOnly() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/inlineOnly.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/inlineOnly.kt");
}
@TestMetadata("propertyReference.kt")
public void testPropertyReference() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/propertyReference.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/propertyReference.kt");
}
@TestMetadata("returnVoid.kt")
public void testReturnVoid() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/returnVoid.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/returnVoid.kt");
}
@TestMetadata("samAdapter.kt")
public void testSamAdapter() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/samAdapter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/samAdapter.kt");
}
@TestMetadata("sameFileNames.kt")
public void testSameFileNames() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/sameFileNames.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/sameFileNames.kt");
}
@TestMetadata("siSuspendFun.kt")
public void testSiSuspendFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/siSuspendFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/siSuspendFun.kt");
}
@TestMetadata("skipSimpleGetter.kt")
public void testSkipSimpleGetter() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/skipSimpleGetter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/skipSimpleGetter.kt");
}
@TestMetadata("skipSimpleGetterLocalVal.kt")
public void testSkipSimpleGetterLocalVal() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/skipSimpleGetterLocalVal.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/skipSimpleGetterLocalVal.kt");
}
@TestMetadata("skipSimpleGetterMethodWithProperty.kt")
public void testSkipSimpleGetterMethodWithProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/skipSimpleGetterMethodWithProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/skipSimpleGetterMethodWithProperty.kt");
}
@TestMetadata("stepIntoFromInlineFun.kt")
public void testStepIntoFromInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/stepIntoFromInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/stepIntoFromInlineFun.kt");
}
@TestMetadata("stepIntoInlineFun.kt")
public void testStepIntoInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/stepIntoInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/stepIntoInlineFun.kt");
}
@TestMetadata("stepIntoStdLibInlineFun.kt")
public void testStepIntoStdLibInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/stepIntoStdLibInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/stepIntoStdLibInlineFun.kt");
}
@TestMetadata("stepIntoSuspendFunctionSimple.kt")
public void testStepIntoSuspendFunctionSimple() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/stepIntoSuspendFunctionSimple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/stepIntoSuspendFunctionSimple.kt");
}
@TestMetadata("syntheticMethods.kt")
public void testSyntheticMethods() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/syntheticMethods.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/syntheticMethods.kt");
}
@TestMetadata("syntheticMethodsSkip.kt")
public void testSyntheticMethodsSkip() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/syntheticMethodsSkip.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/syntheticMethodsSkip.kt");
}
@TestMetadata("traits.kt")
public void testTraits() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/traits.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/traits.kt");
}
@TestMetadata("whenExpr.kt")
public void testWhenExpr() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/whenExpr.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/whenExpr.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOut")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepOut extends AbstractKotlinSteppingTest {
@@ -347,56 +347,56 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
}
public void testAllFilesPresentInStepOut() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepOut"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("fwBackingField.kt")
public void testFwBackingField() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/fwBackingField.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/fwBackingField.kt");
}
@TestMetadata("inapplicableFieldWatchpoints.kt")
public void testInapplicableFieldWatchpoints() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/inapplicableFieldWatchpoints.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/inapplicableFieldWatchpoints.kt");
}
@TestMetadata("souSuspendFun.kt")
public void testSouSuspendFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/souSuspendFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/souSuspendFun.kt");
}
@TestMetadata("stepOutInlineFunction.kt")
public void testStepOutInlineFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/stepOutInlineFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/stepOutInlineFunction.kt");
}
@TestMetadata("stepOutInlinedLambdaArgument.kt")
public void testStepOutInlinedLambdaArgument() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/stepOutInlinedLambdaArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/stepOutInlinedLambdaArgument.kt");
}
@TestMetadata("stepOutInlinedLambdaArgumentOneLine.kt")
public void testStepOutInlinedLambdaArgumentOneLine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/stepOutInlinedLambdaArgumentOneLine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/stepOutInlinedLambdaArgumentOneLine.kt");
}
@TestMetadata("stepOutSeveralInlineArgumentDeepest.kt")
public void testStepOutSeveralInlineArgumentDeepest() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/stepOutSeveralInlineArgumentDeepest.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/stepOutSeveralInlineArgumentDeepest.kt");
}
@TestMetadata("stepOutSeveralInlineFunctions.kt")
public void testStepOutSeveralInlineFunctions() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/stepOutSeveralInlineFunctions.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/stepOutSeveralInlineFunctions.kt");
}
@TestMetadata("stepOutSeveralInlineFunctionsDeepest.kt")
public void testStepOutSeveralInlineFunctionsDeepest() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOut/stepOutSeveralInlineFunctionsDeepest.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/stepOutSeveralInlineFunctionsDeepest.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOver")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepOver extends AbstractKotlinSteppingTest {
@@ -405,536 +405,536 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
}
public void testAllFilesPresentInStepOver() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepOver"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("asIterableInFor.kt")
public void testAsIterableInFor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/asIterableInFor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/asIterableInFor.kt");
}
@TestMetadata("ifCapturedVariableKt9118.kt")
public void testIfCapturedVariableKt9118() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/ifCapturedVariableKt9118.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/ifCapturedVariableKt9118.kt");
}
@TestMetadata("inlineCallInForRangeExpression.kt")
public void testInlineCallInForRangeExpression() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineCallInForRangeExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineCallInForRangeExpression.kt");
}
@TestMetadata("inlineFunctionSameLines.kt")
public void testInlineFunctionSameLines() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineFunctionSameLines.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineFunctionSameLines.kt");
}
@TestMetadata("inlineInClassDex.kt")
public void testInlineInClassDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineInClassDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineInClassDex.kt");
}
@TestMetadata("inlineInIfFalse.kt")
public void testInlineInIfFalse() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineInIfFalse.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineInIfFalse.kt");
}
@TestMetadata("inlineInIfFalseDex.kt")
public void testInlineInIfFalseDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineInIfFalseDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineInIfFalseDex.kt");
}
@TestMetadata("inlineInIfTrue.kt")
public void testInlineInIfTrue() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineInIfTrue.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineInIfTrue.kt");
}
@TestMetadata("inlineInIfTrueDex.kt")
public void testInlineInIfTrueDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineInIfTrueDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineInIfTrueDex.kt");
}
@TestMetadata("inlineInObjectDex.kt")
public void testInlineInObjectDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineInObjectDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineInObjectDex.kt");
}
@TestMetadata("kt24343.kt")
public void testKt24343() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/kt24343.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt24343.kt");
}
@TestMetadata("noParameterLambdaArgumentCallInInline.kt")
public void testNoParameterLambdaArgumentCallInInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/noParameterLambdaArgumentCallInInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/noParameterLambdaArgumentCallInInline.kt");
}
@TestMetadata("noParameterLambdaArgumentCallInLambda.kt")
public void testNoParameterLambdaArgumentCallInLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/noParameterLambdaArgumentCallInLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/noParameterLambdaArgumentCallInLambda.kt");
}
@TestMetadata("soBreakpointWithInline.kt")
public void testSoBreakpointWithInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soBreakpointWithInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soBreakpointWithInline.kt");
}
@TestMetadata("soBreakpointWithOrdinalOnInlineCallsInOneLine.kt")
public void testSoBreakpointWithOrdinalOnInlineCallsInOneLine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soBreakpointWithOrdinalOnInlineCallsInOneLine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soBreakpointWithOrdinalOnInlineCallsInOneLine.kt");
}
@TestMetadata("soInlineAnonymousFunctionArgument.kt")
public void testSoInlineAnonymousFunctionArgument() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineAnonymousFunctionArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineAnonymousFunctionArgument.kt");
}
@TestMetadata("soInlineAnonymousFunctionArgumentDex.kt")
public void testSoInlineAnonymousFunctionArgumentDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineAnonymousFunctionArgumentDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineAnonymousFunctionArgumentDex.kt");
}
@TestMetadata("soInlineCallInLastStatementInInline.kt")
public void testSoInlineCallInLastStatementInInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineCallInLastStatementInInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineCallInLastStatementInInline.kt");
}
@TestMetadata("soInlineCallInLastStatementInInlineDex.kt")
public void testSoInlineCallInLastStatementInInlineDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineCallInLastStatementInInlineDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineCallInLastStatementInInlineDex.kt");
}
@TestMetadata("soInlineCallInLastStatementInInlineFunctionArgument.kt")
public void testSoInlineCallInLastStatementInInlineFunctionArgument() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineCallInLastStatementInInlineFunctionArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineCallInLastStatementInInlineFunctionArgument.kt");
}
@TestMetadata("soInlineCallInLastStatementInInlineFunctionArgumentDex.kt")
public void testSoInlineCallInLastStatementInInlineFunctionArgumentDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineCallInLastStatementInInlineFunctionArgumentDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineCallInLastStatementInInlineFunctionArgumentDex.kt");
}
@TestMetadata("soInlineCallInLastStatementInInlineInInline.kt")
public void testSoInlineCallInLastStatementInInlineInInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineCallInLastStatementInInlineInInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineCallInLastStatementInInlineInInline.kt");
}
@TestMetadata("soInlineCallsInOneLine.kt")
public void testSoInlineCallsInOneLine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineCallsInOneLine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineCallsInOneLine.kt");
}
@TestMetadata("soInlineFunCallInLastStatementOfInlineWithArgumentFromCalleeAndOwn.kt")
public void testSoInlineFunCallInLastStatementOfInlineWithArgumentFromCalleeAndOwn() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineFunCallInLastStatementOfInlineWithArgumentFromCalleeAndOwn.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineFunCallInLastStatementOfInlineWithArgumentFromCalleeAndOwn.kt");
}
@TestMetadata("soInlineFunDex.kt")
public void testSoInlineFunDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineFunDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineFunDex.kt");
}
@TestMetadata("soInlineFunOnOneLineFor.kt")
public void testSoInlineFunOnOneLineFor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineFunOnOneLineFor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineFunOnOneLineFor.kt");
}
@TestMetadata("soInlineFunOnOneLineForDex.kt")
public void testSoInlineFunOnOneLineForDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineFunOnOneLineForDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineFunOnOneLineForDex.kt");
}
@TestMetadata("soInlineFunWithFor.kt")
public void testSoInlineFunWithFor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineFunWithFor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineFunWithFor.kt");
}
@TestMetadata("soInlineFunWithLastStatementMultilineArgumentCall.kt")
public void testSoInlineFunWithLastStatementMultilineArgumentCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineFunWithLastStatementMultilineArgumentCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineFunWithLastStatementMultilineArgumentCall.kt");
}
@TestMetadata("soInlineFunWithLastStatementOneLineArgumentCall.kt")
public void testSoInlineFunWithLastStatementOneLineArgumentCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineFunWithLastStatementOneLineArgumentCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineFunWithLastStatementOneLineArgumentCall.kt");
}
@TestMetadata("soInlineIfConditionLambdaFalse.kt")
public void testSoInlineIfConditionLambdaFalse() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineIfConditionLambdaFalse.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineIfConditionLambdaFalse.kt");
}
@TestMetadata("soInlineIfConditionLambdaTrue.kt")
public void testSoInlineIfConditionLambdaTrue() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineIfConditionLambdaTrue.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineIfConditionLambdaTrue.kt");
}
@TestMetadata("soInlineIterableFunDex.kt")
public void testSoInlineIterableFunDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineIterableFunDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineIterableFunDex.kt");
}
@TestMetadata("soInlineLibFunDex.kt")
public void testSoInlineLibFunDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineLibFunDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineLibFunDex.kt");
}
@TestMetadata("soInlineOperatorIterator.kt")
public void testSoInlineOperatorIterator() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineOperatorIterator.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineOperatorIterator.kt");
}
@TestMetadata("soInlineUnitFunDex.kt")
public void testSoInlineUnitFunDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineUnitFunDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineUnitFunDex.kt");
}
@TestMetadata("soInlineWhileCondition.kt")
public void testSoInlineWhileCondition() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineWhileCondition.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineWhileCondition.kt");
}
@TestMetadata("soInlineWhileConditionDex.kt")
public void testSoInlineWhileConditionDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soInlineWhileConditionDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soInlineWhileConditionDex.kt");
}
@TestMetadata("soLastStatementInInlineFunctionArgumenBeforeOtherArgument.kt")
public void testSoLastStatementInInlineFunctionArgumenBeforeOtherArgument() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soLastStatementInInlineFunctionArgumenBeforeOtherArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soLastStatementInInlineFunctionArgumenBeforeOtherArgument.kt");
}
@TestMetadata("soLastStatementInInlineFunctionArgumentAsAnonymous.kt")
public void testSoLastStatementInInlineFunctionArgumentAsAnonymous() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soLastStatementInInlineFunctionArgumentAsAnonymous.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soLastStatementInInlineFunctionArgumentAsAnonymous.kt");
}
@TestMetadata("soLastStatementInInlineFunctionArgumentAsAnonymousParNextLine.kt")
public void testSoLastStatementInInlineFunctionArgumentAsAnonymousParNextLine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soLastStatementInInlineFunctionArgumentAsAnonymousParNextLine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soLastStatementInInlineFunctionArgumentAsAnonymousParNextLine.kt");
}
@TestMetadata("soLastStatementInInlineFunctionArgumentInGetOperator.kt")
public void testSoLastStatementInInlineFunctionArgumentInGetOperator() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soLastStatementInInlineFunctionArgumentInGetOperator.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soLastStatementInInlineFunctionArgumentInGetOperator.kt");
}
@TestMetadata("soLastStatementInInlineFunctionArgumentInNonInlineCall.kt")
public void testSoLastStatementInInlineFunctionArgumentInNonInlineCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soLastStatementInInlineFunctionArgumentInNonInlineCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soLastStatementInInlineFunctionArgumentInNonInlineCall.kt");
}
@TestMetadata("soLastStatementInInlineFunctionArgumentInPars.kt")
public void testSoLastStatementInInlineFunctionArgumentInPars() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soLastStatementInInlineFunctionArgumentInPars.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soLastStatementInInlineFunctionArgumentInPars.kt");
}
@TestMetadata("soNonSuspendableSuspendCall.kt")
public void testSoNonSuspendableSuspendCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soNonSuspendableSuspendCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soNonSuspendableSuspendCall.kt");
}
@TestMetadata("soReifiedInlineIfConditionFalse.kt")
public void testSoReifiedInlineIfConditionFalse() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soReifiedInlineIfConditionFalse.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soReifiedInlineIfConditionFalse.kt");
}
@TestMetadata("soSimpleInlineIfCondition.kt")
public void testSoSimpleInlineIfCondition() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soSimpleInlineIfCondition.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soSimpleInlineIfCondition.kt");
}
@TestMetadata("soSuspendableCallInEndOfFun.kt")
public void testSoSuspendableCallInEndOfFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soSuspendableCallInEndOfFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soSuspendableCallInEndOfFun.kt");
}
@TestMetadata("soSuspendableCallInEndOfLambda.kt")
public void testSoSuspendableCallInEndOfLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soSuspendableCallInEndOfLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soSuspendableCallInEndOfLambda.kt");
}
@TestMetadata("soSuspendableCallInFun.kt")
public void testSoSuspendableCallInFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soSuspendableCallInFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soSuspendableCallInFun.kt");
}
@TestMetadata("soSuspendableCallInFunFromOtherStepping.kt")
public void testSoSuspendableCallInFunFromOtherStepping() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soSuspendableCallInFunFromOtherStepping.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soSuspendableCallInFunFromOtherStepping.kt");
}
@TestMetadata("soSuspendableCallInLambda.kt")
public void testSoSuspendableCallInLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/soSuspendableCallInLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soSuspendableCallInLambda.kt");
}
@TestMetadata("stepOverCatchClause.kt")
public void testStepOverCatchClause() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverCatchClause.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverCatchClause.kt");
}
@TestMetadata("stepOverDeclarationInInlineFun.kt")
public void testStepOverDeclarationInInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverDeclarationInInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverDeclarationInInlineFun.kt");
}
@TestMetadata("stepOverFalseConditionInLastIfInWhile.kt")
public void testStepOverFalseConditionInLastIfInWhile() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverFalseConditionInLastIfInWhile.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverFalseConditionInLastIfInWhile.kt");
}
@TestMetadata("stepOverForWithInline.kt")
public void testStepOverForWithInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverForWithInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverForWithInline.kt");
}
@TestMetadata("stepOverIfWithInline.kt")
public void testStepOverIfWithInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverIfWithInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverIfWithInline.kt");
}
@TestMetadata("stepOverInlineFunWithRecursionCall.kt")
public void testStepOverInlineFunWithRecursionCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverInlineFunWithRecursionCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverInlineFunWithRecursionCall.kt");
}
@TestMetadata("stepOverInlineFunctionInReturn.kt")
public void testStepOverInlineFunctionInReturn() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverInlineFunctionInReturn.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverInlineFunctionInReturn.kt");
}
@TestMetadata("stepOverInlinedLambda.kt")
public void testStepOverInlinedLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverInlinedLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverInlinedLambda.kt");
}
@TestMetadata("stepOverInlinedLambdaStdlib.kt")
public void testStepOverInlinedLambdaStdlib() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverInlinedLambdaStdlib.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverInlinedLambdaStdlib.kt");
}
@TestMetadata("stepOverInsideInlineFun.kt")
public void testStepOverInsideInlineFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverInsideInlineFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverInsideInlineFun.kt");
}
@TestMetadata("stepOverReifiedParam.kt")
public void testStepOverReifiedParam() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverReifiedParam.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverReifiedParam.kt");
}
@TestMetadata("stepOverSimpleFun.kt")
public void testStepOverSimpleFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverSimpleFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverSimpleFun.kt");
}
@TestMetadata("stepOverTryCatchWithInline.kt")
public void testStepOverTryCatchWithInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverTryCatchWithInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverTryCatchWithInline.kt");
}
@TestMetadata("stepOverWhenInReturn.kt")
public void testStepOverWhenInReturn() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverWhenInReturn.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverWhenInReturn.kt");
}
@TestMetadata("stepOverWhenWithInline.kt")
public void testStepOverWhenWithInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverWhenWithInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverWhenWithInline.kt");
}
@TestMetadata("stepOverWhileWithInline.kt")
public void testStepOverWhileWithInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverWhileWithInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverWhileWithInline.kt");
}
@TestMetadata("stopInAnonymousFunctionInInlinedCallWithCrossInline.kt")
public void testStopInAnonymousFunctionInInlinedCallWithCrossInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInAnonymousFunctionInInlinedCallWithCrossInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInAnonymousFunctionInInlinedCallWithCrossInline.kt");
}
@TestMetadata("stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt")
public void testStopInAnonymousFunctionInInlinedCallWithCrossInlineDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt");
}
@TestMetadata("stopInCrossinlineInSuspend.kt")
public void testStopInCrossinlineInSuspend() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInCrossinlineInSuspend.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInCrossinlineInSuspend.kt");
}
@TestMetadata("stopInExtensionInlineCall.kt")
public void testStopInExtensionInlineCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInExtensionInlineCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInExtensionInlineCall.kt");
}
@TestMetadata("stopInInlineCallInField.kt")
public void testStopInInlineCallInField() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineCallInField.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineCallInField.kt");
}
@TestMetadata("stopInInlineCallInFieldInClassWithNonDefaultPrimary.kt")
public void testStopInInlineCallInFieldInClassWithNonDefaultPrimary() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineCallInFieldInClassWithNonDefaultPrimary.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineCallInFieldInClassWithNonDefaultPrimary.kt");
}
@TestMetadata("stopInInlineCallInFieldInDelegate.kt")
public void testStopInInlineCallInFieldInDelegate() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineCallInFieldInDelegate.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineCallInFieldInDelegate.kt");
}
@TestMetadata("stopInInlineCallInFieldInLocalClass.kt")
public void testStopInInlineCallInFieldInLocalClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineCallInFieldInLocalClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineCallInFieldInLocalClass.kt");
}
@TestMetadata("stopInInlineCallLocalFunLambda.kt")
public void testStopInInlineCallLocalFunLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineCallLocalFunLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineCallLocalFunLambda.kt");
}
@TestMetadata("stopInInlineFunDex.kt")
public void testStopInInlineFunDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineFunDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineFunDex.kt");
}
@TestMetadata("stopInInlineInOtherFileDex.kt")
public void testStopInInlineInOtherFileDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineInOtherFileDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineInOtherFileDex.kt");
}
@TestMetadata("stopInInlineInOtherFileWithLambdaArgumentDex.kt")
public void testStopInInlineInOtherFileWithLambdaArgumentDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineInOtherFileWithLambdaArgumentDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineInOtherFileWithLambdaArgumentDex.kt");
}
@TestMetadata("stopInInlineUnderOtherCall.kt")
public void testStopInInlineUnderOtherCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineUnderOtherCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineUnderOtherCall.kt");
}
@TestMetadata("stopInInlineUnderSamConversion.kt")
public void testStopInInlineUnderSamConversion() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlineUnderSamConversion.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlineUnderSamConversion.kt");
}
@TestMetadata("stopInInlinedInSpecialNamedFun.kt")
public void testStopInInlinedInSpecialNamedFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlinedInSpecialNamedFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlinedInSpecialNamedFun.kt");
}
@TestMetadata("stopInInlinedInSpecialNamedFunWithGet.kt")
public void testStopInInlinedInSpecialNamedFunWithGet() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlinedInSpecialNamedFunWithGet.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlinedInSpecialNamedFunWithGet.kt");
}
@TestMetadata("stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt")
public void testStopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt");
}
@TestMetadata("stopInLabdaOfCrossinlineCalledInAnonymous.kt")
public void testStopInLabdaOfCrossinlineCalledInAnonymous() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInLabdaOfCrossinlineCalledInAnonymous.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInLabdaOfCrossinlineCalledInAnonymous.kt");
}
@TestMetadata("stopInLambdaInInlinedCallWithCrossInline.kt")
public void testStopInLambdaInInlinedCallWithCrossInline() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInLambdaInInlinedCallWithCrossInline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInLambdaInInlinedCallWithCrossInline.kt");
}
@TestMetadata("stopInLambdaInInlinedCallWithCrossInlineDex.kt")
public void testStopInLambdaInInlinedCallWithCrossInlineDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInLambdaInInlinedCallWithCrossInlineDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInLambdaInInlinedCallWithCrossInlineDex.kt");
}
@TestMetadata("stopInLambdaInlineCallLambda.kt")
public void testStopInLambdaInlineCallLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInLambdaInlineCallLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInLambdaInlineCallLambda.kt");
}
@TestMetadata("stopInLocalFunInSecondaryConstructor.kt")
public void testStopInLocalFunInSecondaryConstructor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInLocalFunInSecondaryConstructor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInLocalFunInSecondaryConstructor.kt");
}
@TestMetadata("stopInLocalFunInlineCallLambda.kt")
public void testStopInLocalFunInlineCallLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInLocalFunInlineCallLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInLocalFunInlineCallLambda.kt");
}
@TestMetadata("stopInNamelessFunInInlineCall.kt")
public void testStopInNamelessFunInInlineCall() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInNamelessFunInInlineCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInNamelessFunInInlineCall.kt");
}
@TestMetadata("stopInNonInlinedLambdaInInlineCallWithClosure.kt")
public void testStopInNonInlinedLambdaInInlineCallWithClosure() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInNonInlinedLambdaInInlineCallWithClosure.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInNonInlinedLambdaInInlineCallWithClosure.kt");
}
@TestMetadata("stopInNonInlinedLambdaInInlineCallWithoutClosure.kt")
public void testStopInNonInlinedLambdaInInlineCallWithoutClosure() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInNonInlinedLambdaInInlineCallWithoutClosure.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInNonInlinedLambdaInInlineCallWithoutClosure.kt");
}
@TestMetadata("stopInObjectLiteralInInlineCallNoClosure.kt")
public void testStopInObjectLiteralInInlineCallNoClosure() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInObjectLiteralInInlineCallNoClosure.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInObjectLiteralInInlineCallNoClosure.kt");
}
@TestMetadata("stopInObjectLiteralInInlineCallWithClosure.kt")
public void testStopInObjectLiteralInInlineCallWithClosure() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInObjectLiteralInInlineCallWithClosure.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInObjectLiteralInInlineCallWithClosure.kt");
}
@TestMetadata("stopInObjectLiteralInInlineCallWithClosureInAnonymous.kt")
public void testStopInObjectLiteralInInlineCallWithClosureInAnonymous() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInObjectLiteralInInlineCallWithClosureInAnonymous.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInObjectLiteralInInlineCallWithClosureInAnonymous.kt");
}
@TestMetadata("stopInSuspendFunctionWithSuspendPoints.kt")
public void testStopInSuspendFunctionWithSuspendPoints() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInSuspendFunctionWithSuspendPoints.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInSuspendFunctionWithSuspendPoints.kt");
}
@TestMetadata("stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt")
public void testStopInSuspendFunctionWithSuspendPointsInAnonymousObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt");
}
@TestMetadata("stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt")
public void testStopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt");
}
@TestMetadata("stopInSuspendFunctionWithoutSuspendPoints.kt")
public void testStopInSuspendFunctionWithoutSuspendPoints() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInSuspendFunctionWithoutSuspendPoints.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInSuspendFunctionWithoutSuspendPoints.kt");
}
@TestMetadata("stopInWrongClass.kt")
public void testStopInWrongClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInWrongClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInWrongClass.kt");
}
@TestMetadata("stopInlineCallInLocalFunInSecondaryConstructor.kt")
public void testStopInlineCallInLocalFunInSecondaryConstructor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/stopInlineCallInLocalFunInSecondaryConstructor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInlineCallInLocalFunInSecondaryConstructor.kt");
}
@TestMetadata("suspendImpl.kt")
public void testSuspendImpl() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/suspendImpl.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/suspendImpl.kt");
}
@TestMetadata("whenWithoutExpression.kt")
public void testWhenWithoutExpression() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/whenWithoutExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/whenWithoutExpression.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOverForce")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOverForce")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StepOverForce extends AbstractKotlinSteppingTest {
@@ -943,16 +943,16 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
}
public void testAllFilesPresentInStepOverForce() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/stepOverForce"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOverForce"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("sofSuspendableCallInFun.kt")
public void testSofSuspendableCallInFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/stepOverForce/sofSuspendableCallInFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOverForce/sofSuspendableCallInFun.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/filters")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Filters extends AbstractKotlinSteppingTest {
@@ -961,71 +961,71 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
}
public void testAllFilesPresentInFilters() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/filters"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("checkNotNull.kt")
public void testCheckNotNull() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/checkNotNull.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/checkNotNull.kt");
}
@TestMetadata("doNotSkipClassloader.kt")
public void testDoNotSkipClassloader() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/doNotSkipClassloader.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/doNotSkipClassloader.kt");
}
@TestMetadata("doNotSkipConstructors.kt")
public void testDoNotSkipConstructors() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/doNotSkipConstructors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/doNotSkipConstructors.kt");
}
@TestMetadata("npe.kt")
public void testNpe() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/npe.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/npe.kt");
}
@TestMetadata("reflectKClass.kt")
public void testReflectKClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/reflectKClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/reflectKClass.kt");
}
@TestMetadata("skipClassloader.kt")
public void testSkipClassloader() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/skipClassloader.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/skipClassloader.kt");
}
@TestMetadata("skipConstructors.kt")
public void testSkipConstructors() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/skipConstructors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/skipConstructors.kt");
}
@TestMetadata("stdlibStep.kt")
public void testStdlibStep() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/stdlibStep.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/stdlibStep.kt");
}
@TestMetadata("stepIntoMultiFileFacade.kt")
public void testStepIntoMultiFileFacade() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/stepIntoMultiFileFacade.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/stepIntoMultiFileFacade.kt");
}
@TestMetadata("stepIntoSpecificKotlinClasses.kt")
public void testStepIntoSpecificKotlinClasses() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/stepIntoSpecificKotlinClasses.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/stepIntoSpecificKotlinClasses.kt");
}
@TestMetadata("stepIntoStdlib.kt")
public void testStepIntoStdlib() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/stepIntoStdlib.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/stepIntoStdlib.kt");
}
@TestMetadata("stepIntoStdlibFacadeClass.kt")
public void testStepIntoStdlibFacadeClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/filters/stepIntoStdlibFacadeClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/filters/stepIntoStdlibFacadeClass.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/stepping/custom")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Custom extends AbstractKotlinSteppingTest {
@@ -1034,227 +1034,227 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
}
public void testAllFilesPresentInCustom() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/stepping/custom"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("anonymousFunAsParamDefaultValue.kt")
public void testAnonymousFunAsParamDefaultValue() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/anonymousFunAsParamDefaultValue.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/anonymousFunAsParamDefaultValue.kt");
}
@TestMetadata("constantConditions.kt")
public void testConstantConditions() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/constantConditions.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/constantConditions.kt");
}
@TestMetadata("coroutine.kt")
public void testCoroutine() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/coroutine.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/coroutine.kt");
}
@TestMetadata("coroutineUnitElimination.kt")
public void testCoroutineUnitElimination() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/coroutineUnitElimination.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/coroutineUnitElimination.kt");
}
@TestMetadata("crossinlineLiteral.kt")
public void testCrossinlineLiteral() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/crossinlineLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/crossinlineLiteral.kt");
}
@TestMetadata("finallyBlock.kt")
public void testFinallyBlock() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/finallyBlock.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/finallyBlock.kt");
}
@TestMetadata("funLiteral.kt")
public void testFunLiteral() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/funLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/funLiteral.kt");
}
@TestMetadata("functionBreakpoints.kt")
public void testFunctionBreakpoints() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/functionBreakpoints.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/functionBreakpoints.kt");
}
@TestMetadata("functionCallStoredToVariable.kt")
public void testFunctionCallStoredToVariable() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/functionCallStoredToVariable.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/functionCallStoredToVariable.kt");
}
@TestMetadata("fwAbstractProperty.kt")
public void testFwAbstractProperty() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/fwAbstractProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/fwAbstractProperty.kt");
}
@TestMetadata("fwInitializer.kt")
public void testFwInitializer() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/fwInitializer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/fwInitializer.kt");
}
@TestMetadata("fwPropertyInInterface.kt")
public void testFwPropertyInInterface() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/fwPropertyInInterface.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/fwPropertyInInterface.kt");
}
@TestMetadata("initBlocks.kt")
public void testInitBlocks() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/initBlocks.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/initBlocks.kt");
}
@TestMetadata("inlineInObject.kt")
public void testInlineInObject() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/inlineInObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/inlineInObject.kt");
}
@TestMetadata("inlineInObjectSameFileDex.kt")
public void testInlineInObjectSameFileDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/inlineInObjectSameFileDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/inlineInObjectSameFileDex.kt");
}
@TestMetadata("inlineProperties.kt")
public void testInlineProperties() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/inlineProperties.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/inlineProperties.kt");
}
@TestMetadata("inlinePropertyAccessors.kt")
public void testInlinePropertyAccessors() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/inlinePropertyAccessors.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/inlinePropertyAccessors.kt");
}
@TestMetadata("kt15823.kt")
public void testKt15823() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/kt15823.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/kt15823.kt");
}
@TestMetadata("kt17144.kt")
public void testKt17144() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/kt17144.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/kt17144.kt");
}
@TestMetadata("kt17295.kt")
public void testKt17295() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/kt17295.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/kt17295.kt");
}
@TestMetadata("manyFilesWithInlineCalls1Dex.kt")
public void testManyFilesWithInlineCalls1Dex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/manyFilesWithInlineCalls1Dex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/manyFilesWithInlineCalls1Dex.kt");
}
@TestMetadata("manyFilesWithInlineCalls2Dex.kt")
public void testManyFilesWithInlineCalls2Dex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/manyFilesWithInlineCalls2Dex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/manyFilesWithInlineCalls2Dex.kt");
}
@TestMetadata("severalFunLiterals.kt")
public void testSeveralFunLiterals() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/severalFunLiterals.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/severalFunLiterals.kt");
}
@TestMetadata("severalFunLiteralsInClass.kt")
public void testSeveralFunLiteralsInClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/severalFunLiteralsInClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/severalFunLiteralsInClass.kt");
}
@TestMetadata("severalInlineCallsFromOtherFileDex.kt")
public void testSeveralInlineCallsFromOtherFileDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/severalInlineCallsFromOtherFileDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/severalInlineCallsFromOtherFileDex.kt");
}
@TestMetadata("severalInlineFunctionsInOneFileDex.kt")
public void testSeveralInlineFunctionsInOneFileDex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/severalInlineFunctionsInOneFileDex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/severalInlineFunctionsInOneFileDex.kt");
}
@TestMetadata("simpleConditionalBreakpoint.kt")
public void testSimpleConditionalBreakpoint() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/simpleConditionalBreakpoint.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/simpleConditionalBreakpoint.kt");
}
@TestMetadata("smartStepIntoComponentFunction.kt")
public void testSmartStepIntoComponentFunction() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoComponentFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoComponentFunction.kt");
}
@TestMetadata("smartStepIntoConstructor.kt")
public void testSmartStepIntoConstructor() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoConstructor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoConstructor.kt");
}
@TestMetadata("smartStepIntoFunWithDefaultArgs.kt")
public void testSmartStepIntoFunWithDefaultArgs() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoFunWithDefaultArgs.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoFunWithDefaultArgs.kt");
}
@TestMetadata("smartStepIntoInlinedFunLiteral.kt")
public void testSmartStepIntoInlinedFunLiteral() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoInlinedFunLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoInlinedFunLiteral.kt");
}
@TestMetadata("smartStepIntoInlinedFunctionalExpression.kt")
public void testSmartStepIntoInlinedFunctionalExpression() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoInlinedFunctionalExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoInlinedFunctionalExpression.kt");
}
@TestMetadata("smartStepIntoInsideLambda.kt")
public void testSmartStepIntoInsideLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoInsideLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoInsideLambda.kt");
}
@TestMetadata("smartStepIntoInterfaceFun.kt")
public void testSmartStepIntoInterfaceFun() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoInterfaceFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoInterfaceFun.kt");
}
@TestMetadata("smartStepIntoInterfaceImpl.kt")
public void testSmartStepIntoInterfaceImpl() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoInterfaceImpl.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoInterfaceImpl.kt");
}
@TestMetadata("smartStepIntoStoredLambda.kt")
public void testSmartStepIntoStoredLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoStoredLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoStoredLambda.kt");
}
@TestMetadata("smartStepIntoSubClass.kt")
public void testSmartStepIntoSubClass() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoSubClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoSubClass.kt");
}
@TestMetadata("smartStepIntoToLambdaParameter.kt")
public void testSmartStepIntoToLambdaParameter() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoToLambdaParameter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoToLambdaParameter.kt");
}
@TestMetadata("smartStepIntoWithDelegates.kt")
public void testSmartStepIntoWithDelegates() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoWithDelegates.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoWithDelegates.kt");
}
@TestMetadata("smartStepIntoWithOverrides.kt")
public void testSmartStepIntoWithOverrides() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoWithOverrides.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/smartStepIntoWithOverrides.kt");
}
@TestMetadata("stepIntoStdlibInlineFun2step.kt")
public void testStepIntoStdlibInlineFun2step() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/stepIntoStdlibInlineFun2step.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/stepIntoStdlibInlineFun2step.kt");
}
@TestMetadata("stepOutInlineFunctionStdlib.kt")
public void testStepOutInlineFunctionStdlib() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/stepOutInlineFunctionStdlib.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/stepOutInlineFunctionStdlib.kt");
}
@TestMetadata("stepOverNonLocalReturnInLambda.kt")
public void testStepOverNonLocalReturnInLambda() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/stepOverNonLocalReturnInLambda.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/stepOverNonLocalReturnInLambda.kt");
}
@TestMetadata("syntheticProvider.kt")
public void testSyntheticProvider() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/stepping/custom/syntheticProvider.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/custom/syntheticProvider.kt");
}
}
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/LowLevelDebuggerTestBase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/LowLevelDebuggerTestBase.kt
similarity index 96%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/LowLevelDebuggerTestBase.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/LowLevelDebuggerTestBase.kt
index 05f37164ba8..d9eb91e4ece 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/LowLevelDebuggerTestBase.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/LowLevelDebuggerTestBase.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test
import com.intellij.util.PathUtil
import com.intellij.util.SystemProperties
@@ -148,7 +148,10 @@ abstract class LowLevelDebuggerTestBase : CodegenTestCase() {
private fun writeMainClass(classesDir: File) {
val mainClassResourceName = DebuggerMain::class.java.name.replace('.', '/') + ".class"
- val mainClassBytes = javaClass.classLoader.getResource(mainClassResourceName).readBytes()
+ val resource = javaClass.classLoader.getResource(mainClassResourceName)
+ ?: error("Resource not found: $mainClassResourceName")
+
+ val mainClassBytes = resource.readBytes()
File(classesDir, mainClassResourceName).mkdirAndWriteBytes(mainClassBytes)
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/PositionManagerTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/PositionManagerTestGenerated.java
similarity index 60%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/PositionManagerTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/PositionManagerTestGenerated.java
index e512b00e7ef..0f689122d00 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/PositionManagerTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/PositionManagerTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class PositionManagerTestGenerated extends AbstractPositionManagerTest {
- @TestMetadata("idea/testData/debugger/positionManager")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/positionManager")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SingleFile extends AbstractPositionManagerTest {
@@ -28,111 +28,111 @@ public class PositionManagerTestGenerated extends AbstractPositionManagerTest {
}
public void testAllFilesPresentInSingleFile() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/positionManager"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, false);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/positionManager"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, false);
}
@TestMetadata("anonymousFunction.kt")
public void testAnonymousFunction() throws Exception {
- runTest("idea/testData/debugger/positionManager/anonymousFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/anonymousFunction.kt");
}
@TestMetadata("anonymousNamedFunction.kt")
public void testAnonymousNamedFunction() throws Exception {
- runTest("idea/testData/debugger/positionManager/anonymousNamedFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/anonymousNamedFunction.kt");
}
@TestMetadata("class.kt")
public void testClass() throws Exception {
- runTest("idea/testData/debugger/positionManager/class.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/class.kt");
}
@TestMetadata("classObject.kt")
public void testClassObject() throws Exception {
- runTest("idea/testData/debugger/positionManager/classObject.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/classObject.kt");
}
@TestMetadata("enum.kt")
public void testEnum() throws Exception {
- runTest("idea/testData/debugger/positionManager/enum.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/enum.kt");
}
@TestMetadata("extensionFunction.kt")
public void testExtensionFunction() throws Exception {
- runTest("idea/testData/debugger/positionManager/extensionFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/extensionFunction.kt");
}
@TestMetadata("functionLiteral.kt")
public void testFunctionLiteral() throws Exception {
- runTest("idea/testData/debugger/positionManager/functionLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/functionLiteral.kt");
}
@TestMetadata("functionLiteralInVal.kt")
public void testFunctionLiteralInVal() throws Exception {
- runTest("idea/testData/debugger/positionManager/functionLiteralInVal.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/functionLiteralInVal.kt");
}
@TestMetadata("innerClass.kt")
public void testInnerClass() throws Exception {
- runTest("idea/testData/debugger/positionManager/innerClass.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/innerClass.kt");
}
@TestMetadata("JvmNameAnnotation.kt")
public void testJvmNameAnnotation() throws Exception {
- runTest("idea/testData/debugger/positionManager/JvmNameAnnotation.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/JvmNameAnnotation.kt");
}
@TestMetadata("localFunction.kt")
public void testLocalFunction() throws Exception {
- runTest("idea/testData/debugger/positionManager/localFunction.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/localFunction.kt");
}
@TestMetadata("objectDeclaration.kt")
public void testObjectDeclaration() throws Exception {
- runTest("idea/testData/debugger/positionManager/objectDeclaration.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/objectDeclaration.kt");
}
@TestMetadata("objectExpression.kt")
public void testObjectExpression() throws Exception {
- runTest("idea/testData/debugger/positionManager/objectExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/objectExpression.kt");
}
@TestMetadata("package.kt")
public void testPackage() throws Exception {
- runTest("idea/testData/debugger/positionManager/package.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/package.kt");
}
@TestMetadata("propertyAccessor.kt")
public void testPropertyAccessor() throws Exception {
- runTest("idea/testData/debugger/positionManager/propertyAccessor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/propertyAccessor.kt");
}
@TestMetadata("propertyInitializer.kt")
public void testPropertyInitializer() throws Exception {
- runTest("idea/testData/debugger/positionManager/propertyInitializer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/propertyInitializer.kt");
}
@TestMetadata("topLevelPropertyInitializer.kt")
public void testTopLevelPropertyInitializer() throws Exception {
- runTest("idea/testData/debugger/positionManager/topLevelPropertyInitializer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/topLevelPropertyInitializer.kt");
}
@TestMetadata("trait.kt")
public void testTrait() throws Exception {
- runTest("idea/testData/debugger/positionManager/trait.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/trait.kt");
}
@TestMetadata("twoClasses.kt")
public void testTwoClasses() throws Exception {
- runTest("idea/testData/debugger/positionManager/twoClasses.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/twoClasses.kt");
}
@TestMetadata("_DefaultPackage.kt")
public void test_DefaultPackage() throws Exception {
- runTest("idea/testData/debugger/positionManager/_DefaultPackage.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/_DefaultPackage.kt");
}
}
- @TestMetadata("idea/testData/debugger/positionManager")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/positionManager")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MultiFile extends AbstractPositionManagerTest {
@@ -141,17 +141,17 @@ public class PositionManagerTestGenerated extends AbstractPositionManagerTest {
}
public void testAllFilesPresentInMultiFile() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/positionManager"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/positionManager"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
}
@TestMetadata("multiFilePackage")
public void testMultiFilePackage() throws Exception {
- runTest("idea/testData/debugger/positionManager/multiFilePackage/");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/multiFilePackage/");
}
@TestMetadata("multiFileSameName")
public void testMultiFileSameName() throws Exception {
- runTest("idea/testData/debugger/positionManager/multiFileSameName/");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/positionManager/multiFileSameName/");
}
}
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/SelectExpressionForDebuggerTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/SelectExpressionForDebuggerTestGenerated.java
similarity index 54%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/SelectExpressionForDebuggerTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/SelectExpressionForDebuggerTestGenerated.java
index cef85c52c7c..21c2bec615a 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/evaluate/SelectExpressionForDebuggerTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/SelectExpressionForDebuggerTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.evaluate;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class SelectExpressionForDebuggerTestGenerated extends AbstractSelectExpressionForDebuggerTest {
- @TestMetadata("idea/testData/debugger/selectExpression")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SelectExpression extends AbstractSelectExpressionForDebuggerTest {
@@ -28,201 +28,201 @@ public class SelectExpressionForDebuggerTestGenerated extends AbstractSelectExpr
}
public void testAllFilesPresentInSelectExpression() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/selectExpression"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, false);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, false);
}
@TestMetadata("annotation.kt")
public void testAnnotation() throws Exception {
- runTest("idea/testData/debugger/selectExpression/annotation.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/annotation.kt");
}
@TestMetadata("arrayExpression.kt")
public void testArrayExpression() throws Exception {
- runTest("idea/testData/debugger/selectExpression/arrayExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/arrayExpression.kt");
}
@TestMetadata("binaryExpression.kt")
public void testBinaryExpression() throws Exception {
- runTest("idea/testData/debugger/selectExpression/binaryExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/binaryExpression.kt");
}
@TestMetadata("call.kt")
public void testCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/call.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/call.kt");
}
@TestMetadata("companionObjectCall.kt")
public void testCompanionObjectCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/companionObjectCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/companionObjectCall.kt");
}
@TestMetadata("companionObjectCall2.kt")
public void testCompanionObjectCall2() throws Exception {
- runTest("idea/testData/debugger/selectExpression/companionObjectCall2.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/companionObjectCall2.kt");
}
@TestMetadata("expressionInPropertyInitializer.kt")
public void testExpressionInPropertyInitializer() throws Exception {
- runTest("idea/testData/debugger/selectExpression/expressionInPropertyInitializer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/expressionInPropertyInitializer.kt");
}
@TestMetadata("extensionFun.kt")
public void testExtensionFun() throws Exception {
- runTest("idea/testData/debugger/selectExpression/extensionFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/extensionFun.kt");
}
@TestMetadata("firstCallInChain.kt")
public void testFirstCallInChain() throws Exception {
- runTest("idea/testData/debugger/selectExpression/firstCallInChain.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/firstCallInChain.kt");
}
@TestMetadata("fullyQualified.kt")
public void testFullyQualified() throws Exception {
- runTest("idea/testData/debugger/selectExpression/fullyQualified.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/fullyQualified.kt");
}
@TestMetadata("funArgument.kt")
public void testFunArgument() throws Exception {
- runTest("idea/testData/debugger/selectExpression/funArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/funArgument.kt");
}
@TestMetadata("functionLiteral.kt")
public void testFunctionLiteral() throws Exception {
- runTest("idea/testData/debugger/selectExpression/functionLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/functionLiteral.kt");
}
@TestMetadata("getConvention.kt")
public void testGetConvention() throws Exception {
- runTest("idea/testData/debugger/selectExpression/getConvention.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/getConvention.kt");
}
@TestMetadata("imports.kt")
public void testImports() throws Exception {
- runTest("idea/testData/debugger/selectExpression/imports.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/imports.kt");
}
@TestMetadata("infixCall.kt")
public void testInfixCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/infixCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/infixCall.kt");
}
@TestMetadata("infixCallArgument.kt")
public void testInfixCallArgument() throws Exception {
- runTest("idea/testData/debugger/selectExpression/infixCallArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/infixCallArgument.kt");
}
@TestMetadata("isExpression.kt")
public void testIsExpression() throws Exception {
- runTest("idea/testData/debugger/selectExpression/isExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/isExpression.kt");
}
@TestMetadata("javaStaticMehtodCall.kt")
public void testJavaStaticMehtodCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/javaStaticMehtodCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/javaStaticMehtodCall.kt");
}
@TestMetadata("keyword.kt")
public void testKeyword() throws Exception {
- runTest("idea/testData/debugger/selectExpression/keyword.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/keyword.kt");
}
@TestMetadata("modifier.kt")
public void testModifier() throws Exception {
- runTest("idea/testData/debugger/selectExpression/modifier.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/modifier.kt");
}
@TestMetadata("nameArgument.kt")
public void testNameArgument() throws Exception {
- runTest("idea/testData/debugger/selectExpression/nameArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/nameArgument.kt");
}
@TestMetadata("objectMethodCall.kt")
public void testObjectMethodCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/objectMethodCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/objectMethodCall.kt");
}
@TestMetadata("package.kt")
public void testPackage() throws Exception {
- runTest("idea/testData/debugger/selectExpression/package.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/package.kt");
}
@TestMetadata("param.kt")
public void testParam() throws Exception {
- runTest("idea/testData/debugger/selectExpression/param.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/param.kt");
}
@TestMetadata("propertyCall.kt")
public void testPropertyCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/propertyCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/propertyCall.kt");
}
@TestMetadata("propertyDeclaration.kt")
public void testPropertyDeclaration() throws Exception {
- runTest("idea/testData/debugger/selectExpression/propertyDeclaration.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/propertyDeclaration.kt");
}
@TestMetadata("qualifiedExpressionProperty.kt")
public void testQualifiedExpressionProperty() throws Exception {
- runTest("idea/testData/debugger/selectExpression/qualifiedExpressionProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/qualifiedExpressionProperty.kt");
}
@TestMetadata("qualifiedExpressionReceiver.kt")
public void testQualifiedExpressionReceiver() throws Exception {
- runTest("idea/testData/debugger/selectExpression/qualifiedExpressionReceiver.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/qualifiedExpressionReceiver.kt");
}
@TestMetadata("qualifiedExpressionSelector.kt")
public void testQualifiedExpressionSelector() throws Exception {
- runTest("idea/testData/debugger/selectExpression/qualifiedExpressionSelector.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/qualifiedExpressionSelector.kt");
}
@TestMetadata("super.kt")
public void testSuper() throws Exception {
- runTest("idea/testData/debugger/selectExpression/super.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/super.kt");
}
@TestMetadata("superSelector.kt")
public void testSuperSelector() throws Exception {
- runTest("idea/testData/debugger/selectExpression/superSelector.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/superSelector.kt");
}
@TestMetadata("this.kt")
public void testThis() throws Exception {
- runTest("idea/testData/debugger/selectExpression/this.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/this.kt");
}
@TestMetadata("thisSelector.kt")
public void testThisSelector() throws Exception {
- runTest("idea/testData/debugger/selectExpression/thisSelector.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/thisSelector.kt");
}
@TestMetadata("thisWithLabel.kt")
public void testThisWithLabel() throws Exception {
- runTest("idea/testData/debugger/selectExpression/thisWithLabel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/thisWithLabel.kt");
}
@TestMetadata("unaryExpression.kt")
public void testUnaryExpression() throws Exception {
- runTest("idea/testData/debugger/selectExpression/unaryExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/unaryExpression.kt");
}
@TestMetadata("userType.kt")
public void testUserType() throws Exception {
- runTest("idea/testData/debugger/selectExpression/userType.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/userType.kt");
}
@TestMetadata("userTypeGeneric.kt")
public void testUserTypeGeneric() throws Exception {
- runTest("idea/testData/debugger/selectExpression/userTypeGeneric.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/userTypeGeneric.kt");
}
@TestMetadata("userTypeQualified.kt")
public void testUserTypeQualified() throws Exception {
- runTest("idea/testData/debugger/selectExpression/userTypeQualified.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/userTypeQualified.kt");
}
}
- @TestMetadata("idea/testData/debugger/selectExpression/disallowMethodCalls")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DisallowMethodCalls extends AbstractSelectExpressionForDebuggerTest {
@@ -231,107 +231,107 @@ public class SelectExpressionForDebuggerTestGenerated extends AbstractSelectExpr
}
public void testAllFilesPresentInDisallowMethodCalls() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/selectExpression/disallowMethodCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("binaryExpression.kt")
public void testBinaryExpression() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/binaryExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/binaryExpression.kt");
}
@TestMetadata("call.kt")
public void testCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/call.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/call.kt");
}
@TestMetadata("expressionInPropertyInitializer.kt")
public void testExpressionInPropertyInitializer() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/expressionInPropertyInitializer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/expressionInPropertyInitializer.kt");
}
@TestMetadata("extensionFun.kt")
public void testExtensionFun() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/extensionFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/extensionFun.kt");
}
@TestMetadata("funArgument.kt")
public void testFunArgument() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/funArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/funArgument.kt");
}
@TestMetadata("functionLiteral.kt")
public void testFunctionLiteral() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/functionLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/functionLiteral.kt");
}
@TestMetadata("getConvention.kt")
public void testGetConvention() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/getConvention.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/getConvention.kt");
}
@TestMetadata("infixCall.kt")
public void testInfixCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/infixCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/infixCall.kt");
}
@TestMetadata("infixCallArgument.kt")
public void testInfixCallArgument() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/infixCallArgument.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/infixCallArgument.kt");
}
@TestMetadata("isExpression.kt")
public void testIsExpression() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/isExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/isExpression.kt");
}
@TestMetadata("propertyCall.kt")
public void testPropertyCall() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/propertyCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/propertyCall.kt");
}
@TestMetadata("qualifiedExpressionProperty.kt")
public void testQualifiedExpressionProperty() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/qualifiedExpressionProperty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/qualifiedExpressionProperty.kt");
}
@TestMetadata("qualifiedExpressionReceiver.kt")
public void testQualifiedExpressionReceiver() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/qualifiedExpressionReceiver.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/qualifiedExpressionReceiver.kt");
}
@TestMetadata("qualifiedExpressionSelector.kt")
public void testQualifiedExpressionSelector() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/qualifiedExpressionSelector.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/qualifiedExpressionSelector.kt");
}
@TestMetadata("super.kt")
public void testSuper() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/super.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/super.kt");
}
@TestMetadata("superSelector.kt")
public void testSuperSelector() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/superSelector.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/superSelector.kt");
}
@TestMetadata("this.kt")
public void testThis() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/this.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/this.kt");
}
@TestMetadata("thisSelector.kt")
public void testThisSelector() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/thisSelector.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/thisSelector.kt");
}
@TestMetadata("thisWithLabel.kt")
public void testThisWithLabel() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/thisWithLabel.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/thisWithLabel.kt");
}
@TestMetadata("unaryExpression.kt")
public void testUnaryExpression() throws Exception {
- runTest("idea/testData/debugger/selectExpression/disallowMethodCalls/unaryExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/selectExpression/disallowMethodCalls/unaryExpression.kt");
}
}
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/SmartStepIntoTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/SmartStepIntoTestGenerated.java
similarity index 56%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/SmartStepIntoTestGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/SmartStepIntoTestGenerated.java
index eae2a1f3f3d..d0efcdc8890 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/SmartStepIntoTestGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/SmartStepIntoTestGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -17,7 +17,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
-@TestMetadata("idea/testData/debugger/smartStepInto")
+@TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SmartStepIntoTestGenerated extends AbstractSmartStepIntoTest {
@@ -26,161 +26,161 @@ public class SmartStepIntoTestGenerated extends AbstractSmartStepIntoTest {
}
public void testAllFilesPresentInSmartStepInto() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/smartStepInto"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("annotation.kt")
public void testAnnotation() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/annotation.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/annotation.kt");
}
@TestMetadata("arrayAccess.kt")
public void testArrayAccess() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/arrayAccess.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/arrayAccess.kt");
}
@TestMetadata("callChain.kt")
public void testCallChain() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/callChain.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/callChain.kt");
}
@TestMetadata("constructor.kt")
public void testConstructor() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/constructor.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/constructor.kt");
}
@TestMetadata("conventionMethod.kt")
public void testConventionMethod() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/conventionMethod.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/conventionMethod.kt");
}
@TestMetadata("delegatedPropertyGetter.kt")
public void testDelegatedPropertyGetter() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/delegatedPropertyGetter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/delegatedPropertyGetter.kt");
}
@TestMetadata("doWhile.kt")
public void testDoWhile() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/doWhile.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/doWhile.kt");
}
@TestMetadata("dotQualified.kt")
public void testDotQualified() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/dotQualified.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/dotQualified.kt");
}
@TestMetadata("dotQualifiedInParam.kt")
public void testDotQualifiedInParam() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/dotQualifiedInParam.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/dotQualifiedInParam.kt");
}
@TestMetadata("empty.kt")
public void testEmpty() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/empty.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/empty.kt");
}
@TestMetadata("for.kt")
public void testFor() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/for.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/for.kt");
}
@TestMetadata("funLiteral.kt")
public void testFunLiteral() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/funLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/funLiteral.kt");
}
@TestMetadata("funWithExpressionBody.kt")
public void testFunWithExpressionBody() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/funWithExpressionBody.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/funWithExpressionBody.kt");
}
@TestMetadata("if.kt")
public void testIf() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/if.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/if.kt");
}
@TestMetadata("infixCall.kt")
public void testInfixCall() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/infixCall.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/infixCall.kt");
}
@TestMetadata("inlinedFunLiteral.kt")
public void testInlinedFunLiteral() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/inlinedFunLiteral.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/inlinedFunLiteral.kt");
}
@TestMetadata("inlinedFunctionalExpression.kt")
public void testInlinedFunctionalExpression() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/inlinedFunctionalExpression.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/inlinedFunctionalExpression.kt");
}
@TestMetadata("invoke.kt")
public void testInvoke() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/invoke.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/invoke.kt");
}
@TestMetadata("libraryFun.kt")
public void testLibraryFun() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/libraryFun.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/libraryFun.kt");
}
@TestMetadata("multiline.kt")
public void testMultiline() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/multiline.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/multiline.kt");
}
@TestMetadata("multilineCallChain.kt")
public void testMultilineCallChain() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/multilineCallChain.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/multilineCallChain.kt");
}
@TestMetadata("object.kt")
public void testObject() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/object.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/object.kt");
}
@TestMetadata("param.kt")
public void testParam() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/param.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/param.kt");
}
@TestMetadata("parantesized.kt")
public void testParantesized() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/parantesized.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/parantesized.kt");
}
@TestMetadata("propertyGetter.kt")
public void testPropertyGetter() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/propertyGetter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/propertyGetter.kt");
}
@TestMetadata("renderer.kt")
public void testRenderer() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/renderer.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/renderer.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/simple.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/simple.kt");
}
@TestMetadata("stringTemplate.kt")
public void testStringTemplate() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/stringTemplate.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/stringTemplate.kt");
}
@TestMetadata("unary.kt")
public void testUnary() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/unary.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/unary.kt");
}
@TestMetadata("when.kt")
public void testWhen() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/when.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/when.kt");
}
@TestMetadata("while.kt")
public void testWhile() throws Exception {
- runTest("idea/testData/debugger/smartStepInto/while.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/smartStepInto/while.kt");
}
}
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockLocation.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockLocation.kt
new file mode 100644
index 00000000000..6f10a9aa3a7
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockLocation.kt
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.mock
+
+import com.sun.jdi.*
+
+class MockLocation(private val declaringType: ReferenceType, private val sourceName: String, private val lineNumber: Int) : Location {
+ override fun declaringType() = declaringType
+ override fun sourceName() = sourceName
+ override fun lineNumber() = lineNumber
+ override fun method() = MockMethod()
+ override fun codeIndex() = throw UnsupportedOperationException()
+ override fun sourceName(s: String) = throw UnsupportedOperationException()
+ override fun sourcePath() = throw AbsentInformationException()
+ override fun sourcePath(s: String) = throw AbsentInformationException()
+ override fun lineNumber(s: String) = throw UnsupportedOperationException()
+ override fun compareTo(other: Location) = throw UnsupportedOperationException()
+ override fun virtualMachine() = throw UnsupportedOperationException()
+}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/MockMethod.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockMethod.kt
similarity index 98%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/MockMethod.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockMethod.kt
index 70f26bf157f..d67a8368a36 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/MockMethod.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockMethod.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test.mock
import com.sun.jdi.Location
import com.sun.jdi.Method
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockSourcePosition.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockSourcePosition.kt
new file mode 100644
index 00000000000..8a2e94dd804
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockSourcePosition.kt
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.mock
+
+import com.intellij.debugger.SourcePosition
+import com.intellij.openapi.editor.Editor
+import com.intellij.psi.PsiElement
+import com.intellij.psi.PsiFile
+
+class MockSourcePosition(
+ private val myFile: PsiFile? = null,
+ private val myElementAt: PsiElement? = null,
+ private val myLine: Int? = null,
+ private val myOffset: Int? = null,
+ private val myEditor: Editor? = null
+) : SourcePosition() {
+ override fun getFile(): PsiFile {
+ return myFile ?: throw UnsupportedOperationException("Parameter file isn't set for MockSourcePosition")
+ }
+
+ override fun getElementAt(): PsiElement {
+ return myElementAt ?: throw UnsupportedOperationException("Parameter elementAt isn't set for MockSourcePosition")
+ }
+
+ override fun getLine(): Int {
+ return myLine ?: throw UnsupportedOperationException("Parameter line isn't set for MockSourcePosition")
+ }
+
+ override fun getOffset(): Int {
+ return myOffset ?: throw UnsupportedOperationException("Parameter offset isn't set for MockSourcePosition")
+ }
+
+ override fun openEditor(requestFocus: Boolean): Editor {
+ return myEditor ?: throw UnsupportedOperationException("Parameter editor isn't set for MockSourcePosition")
+ }
+
+ override fun navigate(requestFocus: Boolean) {
+ throw UnsupportedOperationException("navigate() isn't supported for MockSourcePosition")
+ }
+
+ override fun canNavigate(): Boolean {
+ throw UnsupportedOperationException("canNavigate() isn't supported for MockSourcePosition")
+ }
+
+ override fun canNavigateToSource(): Boolean {
+ throw UnsupportedOperationException("canNavigateToSource() isn't supported for MockSourcePosition")
+ }
+}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/MockVirtualMachine.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockVirtualMachine.java
similarity index 99%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/MockVirtualMachine.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockVirtualMachine.java
index 0347db85f3d..571c8e3e767 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/MockVirtualMachine.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/MockVirtualMachine.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger;
+package org.jetbrains.kotlin.idea.debugger.test.mock;
import com.sun.jdi.*;
import com.sun.jdi.event.EventQueue;
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/SmartMockReferenceType.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/SmartMockReferenceType.kt
similarity index 85%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/SmartMockReferenceType.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/SmartMockReferenceType.kt
index 11052666956..aa768cdfc8d 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/SmartMockReferenceType.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/mock/SmartMockReferenceType.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test.mock
import com.sun.jdi.*
import org.jetbrains.kotlin.backend.common.output.OutputFile
@@ -19,118 +19,89 @@ class SmartMockReferenceTypeContext(outputFiles: List) {
val virtualMachine = MockVirtualMachine()
- val classes = outputFiles.filter { it.relativePath.endsWith(".class") }.map { file ->
- ClassNode().also { ClassReader(file.asByteArray()).accept(it, ClassReader.EXPAND_FRAMES) }
+ val classes = outputFiles
+ .filter { it.relativePath.endsWith(".class") }
+ .map { it.readClass() }
+
+ private val referenceTypes: List by lazy {
+ classes.map { SmartMockReferenceType(it, this) }
}
- val referenceTypes: List by lazy { classes.map { SmartMockReferenceType(it, this) } }
+ val referenceTypesByName by lazy {
+ referenceTypes.map { Pair(it.name(), it) }.toMap()
+ }
+}
- val referenceTypesByName by lazy { referenceTypes.map { Pair(it.name(), it) }.toMap() }
+private fun OutputFile.readClass(): ClassNode {
+ val classNode = ClassNode()
+ ClassReader(asByteArray()).accept(classNode, ClassReader.EXPAND_FRAMES)
+ return classNode
}
class SmartMockReferenceType(val classNode: ClassNode, private val context: SmartMockReferenceTypeContext) : ReferenceType {
override fun instances(maxInstances: Long) = emptyList()
-
override fun isPublic() = (classNode.access and Opcodes.ACC_PUBLIC) != 0
-
override fun classLoader() = null
-
override fun sourceName(): String? = classNode.sourceFile
-
- override fun fields() = TODO()
-
override fun defaultStratum() = "Java"
-
- override fun isVerified() = true
-
- override fun allFields() = TODO()
-
- override fun isPackagePrivate() = (classNode.access and Opcodes.ACC_PUBLIC) == 0
- && (classNode.access and Opcodes.ACC_PROTECTED) == 0
- && (classNode.access and Opcodes.ACC_PRIVATE) == 0
-
override fun isStatic() = (classNode.access and Opcodes.ACC_STATIC) != 0
-
- override fun fieldByName(fieldName: String) = TODO()
-
- override fun getValue(p0: Field?) = TODO()
+ override fun modifiers() = classNode.access
+ override fun isProtected() = (classNode.access and Opcodes.ACC_PROTECTED) != 0
+ override fun isFinal() = (classNode.access and Opcodes.ACC_FINAL) != 0
+ override fun allLineLocations() = methodsCached.flatMap { it.allLineLocations() }
+ override fun genericSignature(): String? = classNode.signature
+ override fun isAbstract() = (classNode.access and Opcodes.ACC_ABSTRACT) != 0
+ override fun isPrepared() = true
+ override fun name() = classNode.name.replace('/', '.')
+ override fun isInitialized() = true
+ override fun sourcePaths(stratum: String) = listOf(classNode.sourceFile)
+ override fun failedToInitialize() = false
+ override fun virtualMachine() = context.virtualMachine
+ override fun isPrivate() = (classNode.access and Opcodes.ACC_PRIVATE) != 0
+ override fun signature(): String? = classNode.signature
+ override fun sourceNames(stratum: String) = listOf(classNode.sourceFile)
+ override fun availableStrata() = emptyList()
private val methodsCached by lazy { classNode.methods.map { MockMethod(it, this) } }
-
override fun methods() = methodsCached
- override fun visibleFields() = TODO()
-
- override fun modifiers() = classNode.access
-
- override fun isProtected() = (classNode.access and Opcodes.ACC_PROTECTED) != 0
-
- override fun isFinal() = (classNode.access and Opcodes.ACC_FINAL) != 0
-
- override fun allLineLocations() = methodsCached.flatMap { it.allLineLocations() }
-
- override fun allLineLocations(stratum: String, sourceName: String) = TODO()
-
- override fun genericSignature(): String? = classNode.signature
-
- override fun majorVersion() = TODO()
-
- override fun constantPoolCount() = TODO()
-
- override fun constantPool() = TODO()
-
- override fun isAbstract() = (classNode.access and Opcodes.ACC_ABSTRACT) != 0
-
- override fun compareTo(other: ReferenceType?) = TODO()
-
- override fun sourceDebugExtension() = TODO()
-
- override fun visibleMethods() = TODO()
-
- override fun isPrepared() = true
-
- override fun name() = classNode.name.replace('/', '.')
-
- override fun isInitialized() = true
-
- override fun locationsOfLine(lineNumber: Int) = TODO()
-
- override fun locationsOfLine(stratum: String, sourceName: String, lineNumber: Int) = TODO()
-
- override fun getValues(p0: MutableList?) = TODO()
-
override fun nestedTypes(): List {
val fromInnerClasses = classNode.innerClasses
- .filter { it.outerName == classNode.name }
- .mapNotNull { context.classes.find { c -> it.name == c.name } }
+ .filter { it.outerName == classNode.name }
+ .mapNotNull { context.classes.find { c -> it.name == c.name } }
val fromOuterClasses = context.classes.filter { it.outerClass == classNode.name }
return (fromInnerClasses + fromOuterClasses).distinctBy { it.name }.map { SmartMockReferenceType(it, context) }
}
- override fun sourcePaths(stratum: String) = listOf(classNode.sourceFile)
+ override fun isPackagePrivate(): Boolean {
+ return ((classNode.access and Opcodes.ACC_PUBLIC) == 0
+ && (classNode.access and Opcodes.ACC_PROTECTED) == 0
+ && (classNode.access and Opcodes.ACC_PRIVATE) == 0)
+ }
- override fun failedToInitialize() = false
-
- override fun virtualMachine() = context.virtualMachine
+ override fun isVerified() = true
+ override fun fields() = TODO()
+ override fun allFields() = TODO()
+ override fun fieldByName(fieldName: String) = TODO()
+ override fun getValue(p0: Field?) = TODO()
+ override fun visibleFields() = TODO()
+ override fun allLineLocations(stratum: String, sourceName: String) = TODO()
+ override fun majorVersion() = TODO()
+ override fun constantPoolCount() = TODO()
+ override fun constantPool() = TODO()
+ override fun compareTo(other: ReferenceType?) = TODO()
+ override fun sourceDebugExtension() = TODO()
+ override fun visibleMethods() = TODO()
+ override fun locationsOfLine(lineNumber: Int) = TODO()
+ override fun locationsOfLine(stratum: String, sourceName: String, lineNumber: Int) = TODO()
+ override fun getValues(p0: MutableList?) = TODO()
override fun minorVersion() = TODO()
-
override fun classObject() = TODO()
-
- override fun isPrivate() = (classNode.access and Opcodes.ACC_PRIVATE) != 0
-
- override fun signature(): String? = classNode.signature
-
- override fun sourceNames(stratum: String) = listOf(classNode.sourceFile)
-
override fun methodsByName(p0: String?) = TODO()
-
override fun methodsByName(p0: String?, p1: String?) = TODO()
-
- override fun availableStrata() = emptyList()
-
override fun allMethods() = TODO()
override fun equals(other: Any?): Boolean {
@@ -140,23 +111,37 @@ class SmartMockReferenceType(val classNode: ClassNode, private val context: Smar
other as SmartMockReferenceType
return classNode.name == other.classNode.name
-
}
override fun hashCode(): Int {
return classNode.name.hashCode()
}
- class MockMethod(val methodNode: MethodNode, val containingClass: SmartMockReferenceType) : Method {
+ class MockMethod(private val methodNode: MethodNode, val containingClass: SmartMockReferenceType) : Method {
+ override fun virtualMachine() = containingClass.context.virtualMachine
+
+ override fun modifiers() = methodNode.access
override fun isStaticInitializer() = methodNode.name == ""
-
override fun isPublic() = (methodNode.access and Opcodes.ACC_PUBLIC) != 0
-
- override fun argumentTypeNames() = TODO()
-
override fun isNative() = (methodNode.access and Opcodes.ACC_NATIVE) != 0
+ override fun isStatic() = (methodNode.access and Opcodes.ACC_STATIC) != 0
+ override fun isBridge() = (methodNode.access and Opcodes.ACC_BRIDGE) != 0
+ override fun isProtected() = (methodNode.access and Opcodes.ACC_PROTECTED) != 0
+ override fun isFinal() = (methodNode.access and Opcodes.ACC_FINAL) != 0
+ override fun isAbstract() = (methodNode.access and Opcodes.ACC_ABSTRACT) != 0
+ override fun isSynthetic() = (methodNode.access and Opcodes.ACC_SYNTHETIC) != 0
+ override fun isConstructor() = methodNode.name == ""
+ override fun isPrivate() = (methodNode.access and Opcodes.ACC_PRIVATE) != 0
- override fun arguments() = TODO()
+ override fun isPackagePrivate(): Boolean {
+ return ((methodNode.access and Opcodes.ACC_PUBLIC) == 0
+ && (methodNode.access and Opcodes.ACC_PROTECTED) == 0
+ && (methodNode.access and Opcodes.ACC_PRIVATE) == 0)
+ }
+
+ override fun declaringType() = containingClass
+ override fun name(): String? = methodNode.name
+ override fun signature(): String? = methodNode.signature
override fun location(): Location? {
val instructionList = methodNode.instructions ?: return null
@@ -170,20 +155,6 @@ class SmartMockReferenceType(val classNode: ClassNode, private val context: Smar
return null
}
- override fun isPackagePrivate() = (methodNode.access and Opcodes.ACC_PUBLIC) == 0
- && (methodNode.access and Opcodes.ACC_PROTECTED) == 0
- && (methodNode.access and Opcodes.ACC_PRIVATE) == 0
-
- override fun isStatic() = (methodNode.access and Opcodes.ACC_STATIC) != 0
-
- override fun modifiers() = methodNode.access
-
- override fun isBridge() = (methodNode.access and Opcodes.ACC_BRIDGE) != 0
-
- override fun isProtected() = (methodNode.access and Opcodes.ACC_PROTECTED) != 0
-
- override fun isFinal() = (methodNode.access and Opcodes.ACC_FINAL) != 0
-
override fun allLineLocations(): List {
val instructionList = methodNode.instructions ?: return emptyList()
var current = instructionList.first
@@ -197,75 +168,39 @@ class SmartMockReferenceType(val classNode: ClassNode, private val context: Smar
return locations
}
+ override fun argumentTypeNames() = TODO()
+ override fun arguments() = TODO()
override fun allLineLocations(p0: String?, p1: String?) = TODO()
-
override fun genericSignature() = TODO()
-
- override fun isAbstract() = (methodNode.access and Opcodes.ACC_ABSTRACT) != 0
-
override fun returnType() = TODO()
-
override fun compareTo(other: Method?) = TODO()
-
override fun isObsolete() = false
-
override fun variablesByName(p0: String?) = TODO()
-
- override fun declaringType() = containingClass
-
override fun argumentTypes() = TODO()
-
override fun locationOfCodeIndex(p0: Long) = TODO()
-
override fun bytecodes() = TODO()
-
- override fun name(): String? = methodNode.name
-
override fun returnTypeName() = TODO()
-
override fun locationsOfLine(p0: Int) = TODO()
-
override fun locationsOfLine(p0: String?, p1: String?, p2: Int) = TODO()
-
override fun variables() = TODO()
-
override fun isVarArgs() = TODO()
-
- override fun isSynthetic() = (methodNode.access and Opcodes.ACC_SYNTHETIC) != 0
-
- override fun isConstructor() = methodNode.name == ""
-
- override fun virtualMachine() = containingClass.context.virtualMachine
-
override fun isSynchronized() = TODO()
-
- override fun isPrivate() = (methodNode.access and Opcodes.ACC_PRIVATE) != 0
-
- override fun signature(): String? = methodNode.signature
}
private class MockLocation(val method: MockMethod, val line: Int) : Location {
+ override fun virtualMachine() = method.containingClass.context.virtualMachine
override fun sourceName() = method.containingClass.sourceName()
+ override fun lineNumber() = line
+ override fun sourcePath() = sourceName()
+ override fun declaringType() = method.containingClass
+ override fun method() = method
override fun sourceName(stratum: String) = TODO()
-
override fun codeIndex() = TODO()
-
- override fun lineNumber() = line
-
override fun lineNumber(stratum: String) = TODO()
-
- override fun virtualMachine() = method.containingClass.context.virtualMachine
-
- override fun compareTo(other: Location?) = TODO()
-
- override fun sourcePath() = sourceName()
-
override fun sourcePath(stratum: String) = TODO()
- override fun declaringType() = method.containingClass
-
- override fun method() = method
+ override fun compareTo(other: Location?) = TODO()
}
}
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/DebuggerPreferenceKey.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/DebuggerPreferenceKey.kt
new file mode 100644
index 00000000000..13f332e7ed7
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/DebuggerPreferenceKey.kt
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+@file:Suppress("ClassName")
+
+package org.jetbrains.kotlin.idea.debugger.test.preference
+
+import java.lang.reflect.ParameterizedType
+import kotlin.properties.ReadOnlyProperty
+import kotlin.reflect.KProperty
+import kotlin.reflect.full.declaredMemberProperties
+import kotlin.reflect.jvm.javaType
+
+class DebuggerPreferenceKey(val name: String, val type: Class<*>, val defaultValue: T)
+
+private inline fun debuggerPreferenceKey(defaultValue: T): ReadOnlyProperty> {
+ val clazz = T::class.java
+
+ return object : ReadOnlyProperty> {
+ override fun getValue(thisRef: Any, property: KProperty<*>) = DebuggerPreferenceKey(property.name, clazz, defaultValue)
+ }
+}
+
+internal object DebuggerPreferenceKeys {
+ val SKIP_SYNTHETIC_METHODS by debuggerPreferenceKey(true)
+ val SKIP_CONSTRUCTORS: DebuggerPreferenceKey by debuggerPreferenceKey(false)
+ val SKIP_CLASSLOADERS by debuggerPreferenceKey(true)
+ val TRACING_FILTERS_ENABLED by debuggerPreferenceKey(true)
+ val SKIP_GETTERS by debuggerPreferenceKey(false)
+
+ val DISABLE_KOTLIN_INTERNAL_CLASSES by debuggerPreferenceKey(false)
+ val RENDER_DELEGATED_PROPERTIES by debuggerPreferenceKey(false)
+ val IS_FILTER_FOR_STDLIB_ALREADY_ADDED by debuggerPreferenceKey(false)
+
+ val FORCE_RANKING by debuggerPreferenceKey(false)
+ val EMULATE_DEX by debuggerPreferenceKey(false)
+
+ val PRINT_FRAME by debuggerPreferenceKey(false)
+ val SHOW_KOTLIN_VARIABLES by debuggerPreferenceKey(false)
+ val DESCRIPTOR_VIEW_OPTIONS by debuggerPreferenceKey("FULL")
+
+ val ATTACH_LIBRARY by debuggerPreferenceKey(emptyList())
+
+ val SKIP by debuggerPreferenceKey(emptyList())
+ val WATCH_FIELD_ACCESS by debuggerPreferenceKey(true)
+ val WATCH_FIELD_MODIFICATION by debuggerPreferenceKey(true)
+ val WATCH_FIELD_INITIALISATION by debuggerPreferenceKey(false)
+
+ val JVM_TARGET by debuggerPreferenceKey("1.8")
+
+ val values: List> by lazy {
+ DebuggerPreferenceKeys::class.declaredMemberProperties
+ .filter { (it.returnType.javaType as? ParameterizedType)?.rawType == DebuggerPreferenceKey::class.java }
+ .map { it.get(DebuggerPreferenceKeys) as DebuggerPreferenceKey<*> }
+ }
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/DebuggerPreferences.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/DebuggerPreferences.kt
new file mode 100644
index 00000000000..c91990f4061
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/DebuggerPreferences.kt
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.preference
+
+import com.intellij.openapi.project.Project
+import org.jetbrains.kotlin.test.InTextDirectivesUtils
+
+class DebuggerPreferences(val project: Project, fileContents: String) {
+ private val values: Map
+
+ init {
+ val values = HashMap()
+ for (key in DebuggerPreferenceKeys.values) {
+ val list = findValues(fileContents, key.name).takeIf { it.isNotEmpty() } ?: continue
+
+ fun errorValue(): Nothing = error("Error value for key ${key.name}")
+
+ val convertedValue: Any = when (key.type) {
+ java.lang.Boolean::class.java -> list.singleOrNull()?.toBoolean() ?: errorValue()
+ String::class.java -> list.singleOrNull() ?: errorValue()
+ java.lang.Integer::class.java -> list.singleOrNull()?.toIntOrNull() ?: errorValue()
+ List::class.java -> list
+ else -> error("Cannot find a converter for type ${key.type}")
+ }
+ values[key.name] = convertedValue
+ }
+ this.values = values
+ }
+
+ private fun findValues(fileContents: String, key: String): List {
+ val list: List = InTextDirectivesUtils.findLinesWithPrefixesRemoved(fileContents, "// $key: ")
+ if (list.isNotEmpty()) {
+ return list
+ }
+
+ if (InTextDirectivesUtils.findLinesWithPrefixesRemoved(fileContents, true, false, "// $key").isNotEmpty()) {
+ return listOf("true")
+ }
+
+ return emptyList()
+ }
+
+ operator fun get(key: DebuggerPreferenceKey): T {
+ @Suppress("UNCHECKED_CAST")
+ return values[key.name] as T? ?: key.defaultValue
+ }
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/SettingsMutator.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/SettingsMutator.kt
new file mode 100644
index 00000000000..9aea6b59599
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/SettingsMutator.kt
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.preference
+
+import com.intellij.openapi.project.Project
+
+internal abstract class SettingsMutator(val key: DebuggerPreferenceKey) {
+ abstract fun setValue(value: T, project: Project): T
+
+ open fun revertValue(value: T, project: Project) {
+ setValue(value, project)
+ }
+}
+
+internal fun SettingsMutator.setValue(preferences: DebuggerPreferences): OldValueStorage {
+ val project = preferences.project
+ return OldValueStorage(this, project, setValue(preferences[key], project))
+}
+
+internal class OldValueStorage(
+ private val mutator: SettingsMutator,
+ private val project: Project,
+ private val oldValue: T
+) {
+ fun revertValue() = mutator.revertValue(oldValue, project)
+}
+
+internal class OldValuesStorage(private val oldValues: List>) {
+ fun revertValues() = oldValues.forEach { it.revertValue() }
+}
+
+internal fun List>.mutate(preferences: DebuggerPreferences): OldValuesStorage {
+ return OldValuesStorage(map { it.setValue(preferences) })
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/SettingsMutators.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/SettingsMutators.kt
new file mode 100644
index 00000000000..c4a7eda1751
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/preference/SettingsMutators.kt
@@ -0,0 +1,99 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.preference
+
+import com.intellij.debugger.settings.DebuggerSettings
+import com.intellij.openapi.project.Project
+import org.jetbrains.kotlin.idea.compiler.configuration.Kotlin2JvmCompilerArgumentsHolder
+import org.jetbrains.kotlin.idea.debugger.DebuggerUtils
+import org.jetbrains.kotlin.idea.debugger.KotlinDebuggerSettings
+import org.jetbrains.kotlin.idea.debugger.ToggleKotlinVariablesState
+import org.jetbrains.kotlin.idea.debugger.emulateDexDebugInTests
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.DISABLE_KOTLIN_INTERNAL_CLASSES
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.IS_FILTER_FOR_STDLIB_ALREADY_ADDED
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.RENDER_DELEGATED_PROPERTIES
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.SKIP_CONSTRUCTORS
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.SKIP_CLASSLOADERS
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.SKIP_GETTERS
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.SKIP_SYNTHETIC_METHODS
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.TRACING_FILTERS_ENABLED
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys.EMULATE_DEX
+import kotlin.reflect.KMutableProperty1
+
+internal val SettingsMutators: List> = listOf(
+ DebuggerSettingsMutator(SKIP_SYNTHETIC_METHODS, DebuggerSettings::SKIP_SYNTHETIC_METHODS),
+ DebuggerSettingsMutator(SKIP_CONSTRUCTORS, DebuggerSettings::SKIP_CONSTRUCTORS),
+ DebuggerSettingsMutator(SKIP_CLASSLOADERS, DebuggerSettings::SKIP_CLASSLOADERS),
+ DebuggerSettingsMutator(TRACING_FILTERS_ENABLED, DebuggerSettings::TRACING_FILTERS_ENABLED),
+ DebuggerSettingsMutator(SKIP_GETTERS, DebuggerSettings::SKIP_GETTERS),
+ KotlinSettingsMutator(DISABLE_KOTLIN_INTERNAL_CLASSES, KotlinDebuggerSettings::DEBUG_DISABLE_KOTLIN_INTERNAL_CLASSES),
+ KotlinSettingsMutator(RENDER_DELEGATED_PROPERTIES, KotlinDebuggerSettings::DEBUG_RENDER_DELEGATED_PROPERTIES),
+ KotlinSettingsMutator(IS_FILTER_FOR_STDLIB_ALREADY_ADDED, KotlinDebuggerSettings::DEBUG_IS_FILTER_FOR_STDLIB_ALREADY_ADDED),
+ DexSettingsMutator(EMULATE_DEX),
+ KotlinVariablesModeSettingsMutator,
+ JvmTargetSettingsMutator,
+ ForceRankingSettingsMutator
+)
+
+private class DexSettingsMutator(key: DebuggerPreferenceKey): SettingsMutator(key) {
+ override fun setValue(value: Boolean, project: Project): Boolean {
+ val oldValue = emulateDexDebugInTests
+ emulateDexDebugInTests = value
+ return oldValue
+ }
+}
+
+private class DebuggerSettingsMutator(
+ key: DebuggerPreferenceKey,
+ private val prop: KMutableProperty1
+) : SettingsMutator(key) {
+ override fun setValue(value: T, project: Project): T {
+ val debuggerSettings = DebuggerSettings.getInstance()
+ val oldValue = prop.get(debuggerSettings)
+ prop.set(debuggerSettings, value)
+ return oldValue
+ }
+}
+
+private class KotlinSettingsMutator(
+ key: DebuggerPreferenceKey,
+ private val prop: KMutableProperty1
+) : SettingsMutator(key) {
+ override fun setValue(value: T, project: Project): T {
+ val debuggerSettings = KotlinDebuggerSettings.getInstance()
+ val oldValue = prop.get(debuggerSettings)
+ prop.set(debuggerSettings, value)
+ return oldValue
+ }
+}
+
+private object KotlinVariablesModeSettingsMutator : SettingsMutator(DebuggerPreferenceKeys.SHOW_KOTLIN_VARIABLES) {
+ override fun setValue(value: Boolean, project: Project): Boolean {
+ val service = ToggleKotlinVariablesState.getService()
+ val oldValue = service.kotlinVariableView
+ service.kotlinVariableView = value
+ return oldValue
+ }
+}
+
+private object JvmTargetSettingsMutator : SettingsMutator(DebuggerPreferenceKeys.JVM_TARGET) {
+ override fun setValue(value: String, project: Project): String {
+ var oldValue: String? = null
+ Kotlin2JvmCompilerArgumentsHolder.getInstance(project).update {
+ oldValue = jvmTarget
+ jvmTarget = value.takeIf { it.isNotEmpty() }
+ }
+ return oldValue ?: ""
+ }
+}
+
+private object ForceRankingSettingsMutator : SettingsMutator(DebuggerPreferenceKeys.FORCE_RANKING) {
+ override fun setValue(value: Boolean, project: Project): Boolean {
+ val oldValue = DebuggerUtils.forceRanking
+ DebuggerUtils.forceRanking = value
+ return oldValue
+ }
+}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/KotlinPsiChainBuilderTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/KotlinPsiChainBuilderTestCase.kt
similarity index 91%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/KotlinPsiChainBuilderTestCase.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/KotlinPsiChainBuilderTestCase.kt
index b03fbc8cbbd..251877e099f 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/KotlinPsiChainBuilderTestCase.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/KotlinPsiChainBuilderTestCase.kt
@@ -2,7 +2,7 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence
+package org.jetbrains.kotlin.idea.debugger.test.sequence
import com.intellij.debugger.streams.test.StreamChainBuilderTestCase
import com.intellij.debugger.streams.wrapper.StreamChain
@@ -15,13 +15,11 @@ import com.intellij.testFramework.PsiTestUtil
import junit.framework.TestCase
import org.jetbrains.kotlin.codegen.forTestCompile.ForTestCompileRuntime
import org.jetbrains.kotlin.idea.caches.project.LibraryModificationTracker
+import org.jetbrains.kotlin.idea.debugger.test.DEBUGGER_TESTDATA_PATH_BASE
import org.jetbrains.kotlin.idea.test.PluginTestCaseBase
-import java.io.File
-import java.nio.file.Paths
abstract class KotlinPsiChainBuilderTestCase(private val relativePath: String) : StreamChainBuilderTestCase() {
- override fun getTestDataPath(): String =
- Paths.get(File("").absolutePath, "idea/testData/debugger/sequence/psi/$relativeTestPath/").toString()
+ override fun getTestDataPath(): String = "$DEBUGGER_TESTDATA_PATH_BASE/sequence/psi/$relativeTestPath"
override fun getFileExtension(): String = ".kt"
abstract val kotlinChainBuilder: StreamChainBuilder
@@ -35,6 +33,7 @@ abstract class KotlinPsiChainBuilderTestCase(private val relativePath: String) :
override fun setUp() {
super.setUp()
ApplicationManager.getApplication().runWriteAction {
+ @Suppress("UnstableApiUsage")
if (ProjectLibraryTable.getInstance(LightPlatformTestCase.getProject()).getLibraryByName(stdLibName) == null) {
val stdLibPath = ForTestCompileRuntime.runtimeJarForTests()
PsiTestUtil.addLibrary(
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/dsl/KotlinDslTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/dsl/KotlinDslTest.kt
similarity index 79%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/dsl/KotlinDslTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/dsl/KotlinDslTest.kt
index 7c58573f461..9b4c4ee984b 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/dsl/KotlinDslTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/dsl/KotlinDslTest.kt
@@ -2,18 +2,19 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.dsl
+package org.jetbrains.kotlin.idea.debugger.test.sequence.dsl
import com.intellij.debugger.streams.test.DslTestCase
import com.intellij.debugger.streams.trace.dsl.impl.DslImpl
import org.jetbrains.kotlin.idea.debugger.sequence.trace.dsl.KotlinCollectionsPeekCallFactory
import org.jetbrains.kotlin.idea.debugger.sequence.trace.dsl.KotlinStatementFactory
+import org.jetbrains.kotlin.idea.debugger.test.DEBUGGER_TESTDATA_PATH_RELATIVE
import org.jetbrains.kotlin.test.JUnit3WithIdeaConfigurationRunner
import org.junit.runner.RunWith
@RunWith(JUnit3WithIdeaConfigurationRunner::class)
class KotlinDslTest : DslTestCase(DslImpl(KotlinStatementFactory(KotlinCollectionsPeekCallFactory()))) {
override fun getTestDataPath(): String {
- return "idea/testData/debugger/sequence/dsl"
+ return "$DEBUGGER_TESTDATA_PATH_RELATIVE/sequence/dsl"
}
}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractCollectionTraceTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractCollectionTraceTestCase.kt
similarity index 90%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractCollectionTraceTestCase.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractCollectionTraceTestCase.kt
index 6631c75e2b7..3f81f51bdaa 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractCollectionTraceTestCase.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractCollectionTraceTestCase.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.exec
+package org.jetbrains.kotlin.idea.debugger.test.sequence.exec
import com.intellij.debugger.streams.lib.LibrarySupportProvider
import org.jetbrains.kotlin.idea.debugger.sequence.lib.collections.KotlinCollectionSupportProvider
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractJavaStreamTraceTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractJavaStreamTraceTestCase.kt
similarity index 90%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractJavaStreamTraceTestCase.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractJavaStreamTraceTestCase.kt
index 655b98e175c..d28c2500caa 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractJavaStreamTraceTestCase.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractJavaStreamTraceTestCase.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.exec
+package org.jetbrains.kotlin.idea.debugger.test.sequence.exec
import com.intellij.debugger.streams.lib.LibrarySupportProvider
import org.jetbrains.kotlin.idea.debugger.sequence.lib.java.JavaStandardLibrarySupportProvider
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractSequenceTraceTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractSequenceTraceTestCase.kt
similarity index 89%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractSequenceTraceTestCase.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractSequenceTraceTestCase.kt
index 35320362675..89359827628 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/AbstractSequenceTraceTestCase.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/AbstractSequenceTraceTestCase.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.exec
+package org.jetbrains.kotlin.idea.debugger.test.sequence.exec
import com.intellij.debugger.streams.lib.LibrarySupportProvider
import org.jetbrains.kotlin.idea.debugger.sequence.lib.sequence.KotlinSequenceSupportProvider
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/KotlinTraceTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/KotlinTraceTestCase.kt
similarity index 70%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/KotlinTraceTestCase.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/KotlinTraceTestCase.kt
index b948fc45a66..fe135b62327 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/KotlinTraceTestCase.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/KotlinTraceTestCase.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.exec
+package org.jetbrains.kotlin.idea.debugger.test.sequence.exec
import com.intellij.debugger.engine.evaluation.EvaluationContextImpl
import com.intellij.debugger.impl.OutputChecker
@@ -14,22 +14,17 @@ import com.intellij.debugger.streams.trace.*
import com.intellij.debugger.streams.trace.impl.TraceResultInterpreterImpl
import com.intellij.debugger.streams.wrapper.StreamChain
import com.intellij.debugger.streams.wrapper.StreamChainBuilder
-import com.intellij.execution.ExecutionException
import com.intellij.execution.process.ProcessOutputTypes
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.util.Computable
-import com.intellij.openapi.util.text.StringUtil
-import com.intellij.openapi.vfs.VfsUtil
-import com.intellij.util.indexing.FileBasedIndex
import com.intellij.xdebugger.XDebugSessionListener
-import com.sun.jdi.Value
-import junit.framework.TestCase
-import org.jetbrains.kotlin.idea.debugger.KotlinDebuggerTestBase
-import java.io.File
-import java.nio.file.Paths
+import org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches
+import org.jetbrains.kotlin.idea.debugger.test.KotlinDescriptorTestCaseWithStepping
+import org.jetbrains.kotlin.idea.debugger.test.TestFiles
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferences
import java.util.concurrent.atomic.AtomicBoolean
-abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
+abstract class KotlinTraceTestCase : KotlinDescriptorTestCaseWithStepping() {
private companion object {
val DEFAULT_CHAIN_SELECTOR = ChainSelector.byIndex(0)
}
@@ -43,24 +38,12 @@ abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
abstract val librarySupportProvider: LibrarySupportProvider
- fun doTest(filePath: String) = doTestImpl(filePath)
+ override fun doMultiFileTest(files: TestFiles, preferences: DebuggerPreferences) {
+ // Sequence expressions are verbose. Disable expression logging for sequence debugger
+ KotlinDebuggerCaches.LOG_COMPILATIONS = false
- override fun createDebugProcess(path: String) {
- val filePath = Paths.get(path)
- FileBasedIndex.getInstance().requestReindex(VfsUtil.findFileByIoFile(filePath.toFile(), true)!!)
- val packagePath = StringUtil.substringAfterLast(filePath.parent.toAbsolutePath().toString(), "src${File.separatorChar}")
- ?: throw AssertionError("test data must be placed into test app project in 'src' directory")
-
- val fileName = filePath.getName(filePath.nameCount - 1).toString()
- val packageName = packagePath.replace(File.separatorChar, '.')
- createLocalProcess("$packageName.${fileName.replace(".kt", "Kt")}")
- }
-
- @Throws(ExecutionException::class)
- private fun doTestImpl(path: String, chainSelector: ChainSelector = DEFAULT_CHAIN_SELECTOR) {
- createDebugProcess(path)
val session = debuggerSession.xDebugSession ?: kotlin.test.fail("XDebugSession is null")
- TestCase.assertNotNull(session)
+ assertNotNull(session)
val completed = AtomicBoolean(false)
val positionResolver = getPositionResolver()
@@ -68,6 +51,8 @@ abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
val resultInterpreter = getResultInterpreter()
val expressionBuilder = getExpressionBuilder()
+ val chainSelector = DEFAULT_CHAIN_SELECTOR
+
session.addSessionListener(object : XDebugSessionListener {
override fun sessionPaused() {
if (completed.getAndSet(true)) {
@@ -77,7 +62,7 @@ abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
try {
sessionPausedImpl()
} catch (t: Throwable) {
- println("Exception caught: " + t + ", " + t.message, ProcessOutputTypes.SYSTEM)
+ println("Exception caught: $t, ${t.message}", ProcessOutputTypes.SYSTEM)
t.printStackTrace()
resume()
@@ -114,19 +99,14 @@ abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
})
}
- private fun complete(
- chain: StreamChain?,
- result: TracingResult?,
- error: String?,
- errorReason: FailureReason?
- ) {
+ private fun complete(chain: StreamChain?, result: TracingResult?, error: String?, errorReason: FailureReason?) {
try {
if (error != null) {
- TestCase.assertNotNull(errorReason)
- TestCase.assertNotNull(chain)
- handleError(chain!!, error, errorReason!!)
+ assertNotNull(errorReason)
+ assertNotNull(chain)
+ throw AssertionError(error)
} else {
- TestCase.assertNull(errorReason)
+ assertNull(errorReason)
handleSuccess(chain, result)
}
} catch (t: Throwable) {
@@ -146,18 +126,11 @@ abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
return DebuggerPositionResolverImpl()
}
- protected fun handleError(chain: StreamChain, error: String, reason: FailureReason) {
- TestCase.fail(error)
- }
-
protected fun handleSuccess(chain: StreamChain?, result: TracingResult?) {
- TestCase.assertNotNull(chain)
- TestCase.assertNotNull(result)
+ kotlin.test.assertNotNull(chain)
+ kotlin.test.assertNotNull(result)
- println(chain!!.text, ProcessOutputTypes.SYSTEM)
-
- val resultValue = result!!.result
- handleResultValue(resultValue.value)
+ println(chain.text, ProcessOutputTypes.SYSTEM)
val trace = result.trace
traceChecker.checkChain(trace)
@@ -166,9 +139,6 @@ abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
traceChecker.checkResolvedChain(resolvedTrace)
}
- private fun handleResultValue(result: Value?) {
- }
-
private fun getResultInterpreter(): TraceResultInterpreter {
return TraceResultInterpreterImpl(librarySupportProvider.librarySupport.interpreterFactory)
}
@@ -190,7 +160,6 @@ abstract class KotlinTraceTestCase : KotlinDebuggerTestBase() {
fun select(chains: List): StreamChain
companion object {
-
fun byIndex(index: Int): ChainSelector {
return object : ChainSelector {
override fun select(chains: List): StreamChain = chains[index]
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/SequenceTraceTestCaseGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/SequenceTraceTestCaseGenerated.java
similarity index 55%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/SequenceTraceTestCaseGenerated.java
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/SequenceTraceTestCaseGenerated.java
index fcf28fa5fb2..4763434177f 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/SequenceTraceTestCaseGenerated.java
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/SequenceTraceTestCaseGenerated.java
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.exec;
+package org.jetbrains.kotlin.idea.debugger.test.sequence.exec;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
@@ -17,7 +17,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
-@TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence")
+@TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCase {
@@ -26,10 +26,10 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInSequence() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true, "terminal");
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true, "terminal");
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence/append")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/append")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Append extends AbstractSequenceTraceTestCase {
@@ -38,31 +38,31 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInAppend() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence/append"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/append"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("PlusArray.kt")
public void testPlusArray() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/append/PlusArray.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/append/PlusArray.kt");
}
@TestMetadata("PlusElement.kt")
public void testPlusElement() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/append/PlusElement.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/append/PlusElement.kt");
}
@TestMetadata("PlusSequence.kt")
public void testPlusSequence() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/append/PlusSequence.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/append/PlusSequence.kt");
}
@TestMetadata("PlusSingle.kt")
public void testPlusSingle() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/append/PlusSingle.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/append/PlusSingle.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence/distinct")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Distinct extends AbstractSequenceTraceTestCase {
@@ -71,46 +71,46 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInDistinct() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence/distinct"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("Distinct.kt")
public void testDistinct() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/distinct/Distinct.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct/Distinct.kt");
}
@TestMetadata("DistinctBy.kt")
public void testDistinctBy() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/distinct/DistinctBy.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct/DistinctBy.kt");
}
@TestMetadata("DistinctByBigPrimitives.kt")
public void testDistinctByBigPrimitives() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/distinct/DistinctByBigPrimitives.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct/DistinctByBigPrimitives.kt");
}
@TestMetadata("DistinctByNullableElement.kt")
public void testDistinctByNullableElement() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/distinct/DistinctByNullableElement.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct/DistinctByNullableElement.kt");
}
@TestMetadata("DistinctByNullableKey.kt")
public void testDistinctByNullableKey() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/distinct/DistinctByNullableKey.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct/DistinctByNullableKey.kt");
}
@TestMetadata("DistinctByNullableKeyAndElement.kt")
public void testDistinctByNullableKeyAndElement() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/distinct/DistinctByNullableKeyAndElement.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct/DistinctByNullableKeyAndElement.kt");
}
@TestMetadata("DistinctObjects.kt")
public void testDistinctObjects() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/distinct/DistinctObjects.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/distinct/DistinctObjects.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence/filter")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Filter extends AbstractSequenceTraceTestCase {
@@ -119,61 +119,61 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInFilter() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence/filter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("Drop.kt")
public void testDrop() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/Drop.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/Drop.kt");
}
@TestMetadata("DropWhile.kt")
public void testDropWhile() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/DropWhile.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/DropWhile.kt");
}
@TestMetadata("Filter.kt")
public void testFilter() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/Filter.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/Filter.kt");
}
@TestMetadata("FilterIndexed.kt")
public void testFilterIndexed() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/FilterIndexed.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/FilterIndexed.kt");
}
@TestMetadata("FilterIsInstance.kt")
public void testFilterIsInstance() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/FilterIsInstance.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/FilterIsInstance.kt");
}
@TestMetadata("FilterNot.kt")
public void testFilterNot() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/FilterNot.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/FilterNot.kt");
}
@TestMetadata("Minus.kt")
public void testMinus() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/Minus.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/Minus.kt");
}
@TestMetadata("MinusElement.kt")
public void testMinusElement() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/MinusElement.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/MinusElement.kt");
}
@TestMetadata("Take.kt")
public void testTake() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/Take.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/Take.kt");
}
@TestMetadata("TakeWhile.kt")
public void testTakeWhile() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/filter/TakeWhile.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/filter/TakeWhile.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence/flatMap")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/flatMap")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FlatMap extends AbstractSequenceTraceTestCase {
@@ -182,21 +182,21 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInFlatMap() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence/flatMap"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/flatMap"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("FlatMap.kt")
public void testFlatMap() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/flatMap/FlatMap.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/flatMap/FlatMap.kt");
}
@TestMetadata("Flatten.kt")
public void testFlatten() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/flatMap/Flatten.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/flatMap/Flatten.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence/map")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/map")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Map extends AbstractSequenceTraceTestCase {
@@ -205,31 +205,31 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInMap() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence/map"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/map"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("Map.kt")
public void testMap() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/map/Map.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/map/Map.kt");
}
@TestMetadata("MapIndexed.kt")
public void testMapIndexed() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/map/MapIndexed.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/map/MapIndexed.kt");
}
@TestMetadata("MapNotNull.kt")
public void testMapNotNull() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/map/MapNotNull.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/map/MapNotNull.kt");
}
@TestMetadata("WithIndex.kt")
public void testWithIndex() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/map/WithIndex.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/map/WithIndex.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence/misc")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Misc extends AbstractSequenceTraceTestCase {
@@ -238,86 +238,86 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInMisc() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence/misc"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("AsSequence.kt")
public void testAsSequence() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/AsSequence.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/AsSequence.kt");
}
@TestMetadata("Chunked.kt")
public void testChunked() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/Chunked.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/Chunked.kt");
}
@TestMetadata("ChunkedWithTransform.kt")
public void testChunkedWithTransform() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/ChunkedWithTransform.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/ChunkedWithTransform.kt");
}
@TestMetadata("ConstrainOnce.kt")
public void testConstrainOnce() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/ConstrainOnce.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/ConstrainOnce.kt");
}
@TestMetadata("OnEach.kt")
public void testOnEach() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/OnEach.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/OnEach.kt");
}
@TestMetadata("RequireNoNulls.kt")
public void testRequireNoNulls() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/RequireNoNulls.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/RequireNoNulls.kt");
}
@TestMetadata("Windowed.kt")
public void testWindowed() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/Windowed.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/Windowed.kt");
}
@TestMetadata("WindowedWithBigStep.kt")
public void testWindowedWithBigStep() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/WindowedWithBigStep.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/WindowedWithBigStep.kt");
}
@TestMetadata("WindowedWithPartial.kt")
public void testWindowedWithPartial() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/WindowedWithPartial.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/WindowedWithPartial.kt");
}
@TestMetadata("WindowedWithStep.kt")
public void testWindowedWithStep() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/WindowedWithStep.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/WindowedWithStep.kt");
}
@TestMetadata("ZipWithGreater.kt")
public void testZipWithGreater() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/ZipWithGreater.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/ZipWithGreater.kt");
}
@TestMetadata("ZipWithLesser.kt")
public void testZipWithLesser() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/ZipWithLesser.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/ZipWithLesser.kt");
}
@TestMetadata("ZipWithNextMany.kt")
public void testZipWithNextMany() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/ZipWithNextMany.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/ZipWithNextMany.kt");
}
@TestMetadata("ZipWithNextSingle.kt")
public void testZipWithNextSingle() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/ZipWithNextSingle.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/ZipWithNextSingle.kt");
}
@TestMetadata("ZipWithSame.kt")
public void testZipWithSame() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/misc/ZipWithSame.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/misc/ZipWithSame.kt");
}
}
- @TestMetadata("idea/testData/debugger/tinyApp/src/streams/sequence/sort")
+ @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/sort")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Sort extends AbstractSequenceTraceTestCase {
@@ -326,32 +326,32 @@ public class SequenceTraceTestCaseGenerated extends AbstractSequenceTraceTestCas
}
public void testAllFilesPresentInSort() throws Exception {
- KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/streams/sequence/sort"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
+ KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/sort"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("Sorted.kt")
public void testSorted() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/sort/Sorted.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/sort/Sorted.kt");
}
@TestMetadata("SortedBy.kt")
public void testSortedBy() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/sort/SortedBy.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/sort/SortedBy.kt");
}
@TestMetadata("SortedByDescending.kt")
public void testSortedByDescending() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/sort/SortedByDescending.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/sort/SortedByDescending.kt");
}
@TestMetadata("SortedDescending.kt")
public void testSortedDescending() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/sort/SortedDescending.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/sort/SortedDescending.kt");
}
@TestMetadata("SortedWith.kt")
public void testSortedWith() throws Exception {
- runTest("idea/testData/debugger/tinyApp/src/streams/sequence/sort/SortedWith.kt");
+ runTest("idea/jvm-debugger/jvm-debugger-test/testData/sequence/streams/sequence/sort/SortedWith.kt");
}
}
}
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/StreamTraceChecker.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/StreamTraceChecker.kt
similarity index 92%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/StreamTraceChecker.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/StreamTraceChecker.kt
index 699c9c6957c..795f5519f9e 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/exec/StreamTraceChecker.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/exec/StreamTraceChecker.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.exec
+package org.jetbrains.kotlin.idea.debugger.test.sequence.exec
import com.intellij.debugger.streams.resolve.ResolvedStreamCall
import com.intellij.debugger.streams.resolve.ResolvedStreamChain
@@ -12,7 +12,6 @@ import com.intellij.execution.ExecutionTestCase
import com.intellij.execution.process.ProcessOutputTypes
import com.intellij.testFramework.UsefulTestCase
import junit.framework.TestCase
-import one.util.streamex.StreamEx
import java.util.*
class StreamTraceChecker(private val testCase: ExecutionTestCase) {
@@ -73,7 +72,10 @@ class StreamTraceChecker(private val testCase: ExecutionTestCase) {
for (element in values) {
val mappedValues = mapper(element)
val mapped = traceToString(mappedValues)
- val line = if (Direction.FORWARD == direction) element.time.toString() + " -> " + mapped else mapped + " <- " + element.time
+ val line = when (direction) {
+ Direction.FORWARD -> element.time.toString() + " -> " + mapped
+ else -> mapped + " <- " + element.time
+ }
println(" $line")
}
}
@@ -99,7 +101,7 @@ class StreamTraceChecker(private val testCase: ExecutionTestCase) {
TestCase.assertEquals(terminator.call.name, terminatorCall!!.name)
}
- if (!intermediates.isEmpty()) {
+ if (intermediates.isNotEmpty()) {
val lastIntermediate = intermediates[intermediates.size - 1]
val stateAfterIntermediates = lastIntermediate.stateAfter
UsefulTestCase.assertInstanceOf(stateAfterIntermediates, NextAwareState::class.java)
@@ -163,14 +165,13 @@ class StreamTraceChecker(private val testCase: ExecutionTestCase) {
}
private fun traceToString(trace: Collection): String {
- return replaceIfEmpty(StreamEx.of(trace).map({ it.time }).sorted().joining(","))
- }
+ if (trace.isEmpty()) {
+ return "nothing"
+ }
- private fun replaceIfEmpty(str: String): String {
- return if (str.isEmpty()) "nothing" else str
+ return trace.map { it.time }.sorted().joinToString(",")
}
private fun println(msg: String) = testCase.println(msg, ProcessOutputTypes.SYSTEM)
-
private fun print(msg: String) = testCase.print(msg, ProcessOutputTypes.SYSTEM)
}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/TypedChainTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/TypedChainTestCase.kt
similarity index 86%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/TypedChainTestCase.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/TypedChainTestCase.kt
index b363955068d..86fae0d837d 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/TypedChainTestCase.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/TypedChainTestCase.kt
@@ -2,17 +2,13 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi
import com.intellij.debugger.streams.trace.impl.handler.type.GenericType
-import org.jetbrains.kotlin.idea.debugger.sequence.KotlinPsiChainBuilderTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.KotlinPsiChainBuilderTestCase
abstract class TypedChainTestCase(relativePath: String) : KotlinPsiChainBuilderTestCase(relativePath) {
-
- protected fun doTest(
- producerAfterType: GenericType,
- vararg intermediateAfterTypes: GenericType
- ) {
+ protected fun doTest(producerAfterType: GenericType, vararg intermediateAfterTypes: GenericType) {
val elementAtCaret = configureAndGetElementAtCaret()
assertNotNull(elementAtCaret)
val chains = chainBuilder.build(elementAtCaret)
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/collection/PositiveCollectionBuildTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/collection/PositiveCollectionBuildTest.kt
similarity index 85%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/collection/PositiveCollectionBuildTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/collection/PositiveCollectionBuildTest.kt
index cc0b5fa887a..8e7233abf6e 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/collection/PositiveCollectionBuildTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/collection/PositiveCollectionBuildTest.kt
@@ -2,10 +2,10 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.collection
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.collection
import com.intellij.debugger.streams.wrapper.StreamChainBuilder
-import org.jetbrains.kotlin.idea.debugger.sequence.KotlinPsiChainBuilderTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.KotlinPsiChainBuilderTestCase
import org.jetbrains.kotlin.idea.debugger.sequence.lib.collections.KotlinCollectionSupportProvider
import org.jetbrains.kotlin.test.JUnit3WithIdeaConfigurationRunner
import org.junit.runner.RunWith
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/collection/TypedCollectionChainTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/collection/TypedCollectionChainTest.kt
similarity index 94%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/collection/TypedCollectionChainTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/collection/TypedCollectionChainTest.kt
index f912b7af2bf..336780e3b10 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/collection/TypedCollectionChainTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/collection/TypedCollectionChainTest.kt
@@ -2,11 +2,11 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.collection
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.collection
import com.intellij.debugger.streams.wrapper.StreamChainBuilder
import org.jetbrains.kotlin.idea.debugger.sequence.lib.collections.KotlinCollectionSupportProvider
-import org.jetbrains.kotlin.idea.debugger.sequence.psi.TypedChainTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.psi.TypedChainTestCase
import org.jetbrains.kotlin.idea.debugger.sequence.trace.dsl.KotlinSequenceTypes
import org.jetbrains.kotlin.test.JUnit3WithIdeaConfigurationRunner
import org.junit.runner.RunWith
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/AmbiguousChainsTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/AmbiguousChainsTest.kt
similarity index 95%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/AmbiguousChainsTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/AmbiguousChainsTest.kt
index 2c1273894d8..59b23c90380 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/AmbiguousChainsTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/AmbiguousChainsTest.kt
@@ -2,7 +2,7 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.java
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.java
import org.jetbrains.kotlin.test.JUnit3WithIdeaConfigurationRunner
import org.junit.runner.RunWith
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/LocationPositiveChainTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/LocationPositiveChainTest.kt
similarity index 95%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/LocationPositiveChainTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/LocationPositiveChainTest.kt
index 1a535d7e338..e0970b668a3 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/LocationPositiveChainTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/LocationPositiveChainTest.kt
@@ -2,7 +2,7 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.java
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.java
import org.jetbrains.kotlin.test.JUnit3WithIdeaConfigurationRunner
import org.junit.runner.RunWith
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/NegativeJavaStreamTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/NegativeJavaStreamTest.kt
similarity index 89%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/NegativeJavaStreamTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/NegativeJavaStreamTest.kt
index 9554442d1df..c6adfae5a7d 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/NegativeJavaStreamTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/NegativeJavaStreamTest.kt
@@ -2,10 +2,10 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.java
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.java
import com.intellij.debugger.streams.wrapper.StreamChainBuilder
-import org.jetbrains.kotlin.idea.debugger.sequence.KotlinPsiChainBuilderTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.KotlinPsiChainBuilderTestCase
import org.jetbrains.kotlin.idea.debugger.sequence.lib.java.JavaStandardLibrarySupportProvider
import org.jetbrains.kotlin.test.JUnit3WithIdeaConfigurationRunner
import org.junit.runner.RunWith
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/PositiveJavaStreamTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/PositiveJavaStreamTest.kt
similarity index 80%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/PositiveJavaStreamTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/PositiveJavaStreamTest.kt
index b3ed9740a51..5449f0ee94d 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/PositiveJavaStreamTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/PositiveJavaStreamTest.kt
@@ -2,10 +2,10 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.java
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.java
import com.intellij.debugger.streams.wrapper.StreamChainBuilder
-import org.jetbrains.kotlin.idea.debugger.sequence.KotlinPsiChainBuilderTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.KotlinPsiChainBuilderTestCase
import org.jetbrains.kotlin.idea.debugger.sequence.lib.java.JavaStandardLibrarySupportProvider
abstract class PositiveJavaStreamTest(subDirectory: String) : KotlinPsiChainBuilderTestCase.Positive("streams/positive/$subDirectory") {
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/TypedJavaChainTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/TypedJavaChainTest.kt
similarity index 91%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/TypedJavaChainTest.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/TypedJavaChainTest.kt
index 082e6ad0b6d..bc8cf88a746 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/java/TypedJavaChainTest.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/java/TypedJavaChainTest.kt
@@ -2,11 +2,11 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.java
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.java
import com.intellij.debugger.streams.wrapper.StreamChainBuilder
import org.jetbrains.kotlin.idea.debugger.sequence.lib.java.JavaStandardLibrarySupportProvider
-import org.jetbrains.kotlin.idea.debugger.sequence.psi.TypedChainTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.psi.TypedChainTestCase
import org.jetbrains.kotlin.idea.debugger.sequence.trace.dsl.KotlinSequenceTypes.DOUBLE
import org.jetbrains.kotlin.idea.debugger.sequence.trace.dsl.KotlinSequenceTypes.INT
import org.jetbrains.kotlin.idea.debugger.sequence.trace.dsl.KotlinSequenceTypes.LONG
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/sequence/TypedSequenceChain.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/sequence/TypedSequenceChain.kt
similarity index 84%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/sequence/TypedSequenceChain.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/sequence/TypedSequenceChain.kt
index 9248d4d7c1f..9bd1737f274 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/sequence/psi/sequence/TypedSequenceChain.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/psi/sequence/TypedSequenceChain.kt
@@ -2,11 +2,11 @@
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger.sequence.psi.sequence
+package org.jetbrains.kotlin.idea.debugger.test.sequence.psi.sequence
import com.intellij.debugger.streams.wrapper.StreamChainBuilder
import org.jetbrains.kotlin.idea.debugger.sequence.lib.sequence.KotlinSequenceSupportProvider
-import org.jetbrains.kotlin.idea.debugger.sequence.psi.TypedChainTestCase
+import org.jetbrains.kotlin.idea.debugger.test.sequence.psi.TypedChainTestCase
import org.jetbrains.kotlin.idea.debugger.sequence.trace.dsl.KotlinSequenceTypes
import org.jetbrains.kotlin.test.JUnit3WithIdeaConfigurationRunner
import org.junit.runner.RunWith
@@ -51,7 +51,9 @@ class TypedSequenceChain : TypedChainTestCase("sequence/positive/types") {
fun testNullableToNotNull() = doTest(KotlinSequenceTypes.NULLABLE_ANY, KotlinSequenceTypes.INT)
fun testNotNullToNullable() = doTest(KotlinSequenceTypes.DOUBLE, KotlinSequenceTypes.NULLABLE_ANY)
- fun testFewTransitions1() = doTest(KotlinSequenceTypes.BYTE, KotlinSequenceTypes.ANY, KotlinSequenceTypes.NULLABLE_ANY, KotlinSequenceTypes.INT)
- fun testFewTransitions2() = doTest(KotlinSequenceTypes.CHAR, KotlinSequenceTypes.BOOLEAN, KotlinSequenceTypes.DOUBLE, KotlinSequenceTypes.ANY)
+ fun testFewTransitions1() =
+ doTest(KotlinSequenceTypes.BYTE, KotlinSequenceTypes.ANY, KotlinSequenceTypes.NULLABLE_ANY, KotlinSequenceTypes.INT)
-}
+ fun testFewTransitions2() =
+ doTest(KotlinSequenceTypes.CHAR, KotlinSequenceTypes.BOOLEAN, KotlinSequenceTypes.DOUBLE, KotlinSequenceTypes.ANY)
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/BreakpointCreator.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/BreakpointCreator.kt
new file mode 100644
index 00000000000..454aa061a7f
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/BreakpointCreator.kt
@@ -0,0 +1,225 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.util
+
+import org.jetbrains.kotlin.test.InTextDirectivesUtils.findLinesWithPrefixesRemoved
+import com.intellij.debugger.DebuggerInvocationUtil
+import com.intellij.openapi.application.ModalityState
+import com.intellij.psi.PsiDocumentManager
+import com.intellij.psi.PsiManager
+import com.intellij.psi.search.FilenameIndex
+import com.intellij.xdebugger.XDebuggerManager
+import org.jetbrains.kotlin.test.testFramework.runWriteAction
+import org.jetbrains.kotlin.idea.util.application.runReadAction
+import com.intellij.debugger.engine.evaluation.CodeFragmentKind
+import com.intellij.debugger.engine.evaluation.TextWithImportsImpl
+import com.intellij.debugger.ui.breakpoints.Breakpoint
+import com.intellij.debugger.ui.breakpoints.BreakpointManager
+import com.intellij.debugger.ui.breakpoints.LineBreakpoint
+import com.intellij.openapi.project.Project
+import com.intellij.openapi.vfs.VirtualFile
+import com.intellij.psi.PsiFile
+import com.intellij.xdebugger.XDebuggerUtil
+import com.intellij.xdebugger.breakpoints.XBreakpointManager
+import com.intellij.xdebugger.breakpoints.XBreakpointProperties
+import com.intellij.xdebugger.breakpoints.XBreakpointType
+import com.intellij.xdebugger.breakpoints.XLineBreakpointType
+import org.jetbrains.java.debugger.breakpoints.properties.JavaBreakpointProperties
+import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties
+import org.jetbrains.kotlin.idea.debugger.breakpoints.*
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferences
+import javax.swing.SwingUtilities
+
+internal class BreakpointCreator(
+ private val project: Project,
+ private val logger: (String) -> Unit,
+ private val preferences: DebuggerPreferences
+) {
+ fun createBreakpoints(file: PsiFile) {
+ val document = runReadAction { PsiDocumentManager.getInstance(project).getDocument(file) } ?: return
+ val breakpointManager = XDebuggerManager.getInstance(project).breakpointManager
+ val kotlinFieldBreakpointType = findBreakpointType(KotlinFieldBreakpointType::class.java)
+ val virtualFile = file.virtualFile
+
+ val runnable = {
+ var offset = -1
+ while (true) {
+ val fileText = document.text
+ offset = fileText.indexOf("point!", offset + 1)
+ if (offset == -1) break
+
+ val commentLine = document.getLineNumber(offset)
+ val lineIndex = commentLine + 1
+
+ val comment = fileText
+ .substring(document.getLineStartOffset(commentLine), document.getLineEndOffset(commentLine))
+ .trim()
+
+ when {
+ @Suppress("SpellCheckingInspection") comment.startsWith("//FieldWatchpoint!") -> {
+ val javaBreakpoint = createBreakpointOfType(
+ breakpointManager,
+ kotlinFieldBreakpointType,
+ lineIndex,
+ virtualFile
+ )
+
+ (javaBreakpoint as? KotlinFieldBreakpoint)?.apply {
+ @Suppress("SpellCheckingInspection")
+ val fieldName = comment.substringAfter("//FieldWatchpoint! (").substringBefore(")")
+
+ setFieldName(fieldName)
+ setWatchAccess(preferences[DebuggerPreferenceKeys.WATCH_FIELD_ACCESS])
+ setWatchModification(preferences[DebuggerPreferenceKeys.WATCH_FIELD_MODIFICATION])
+ setWatchInitialization(preferences[DebuggerPreferenceKeys.WATCH_FIELD_INITIALISATION])
+
+ BreakpointManager.addBreakpoint(javaBreakpoint)
+ logger("KotlinFieldBreakpoint created at ${file.virtualFile.name}:${lineIndex + 1}")
+ }
+ }
+ comment.startsWith("//Breakpoint!") -> {
+ val ordinal = getPropertyFromComment(comment, "lambdaOrdinal")?.toInt()
+ val condition = getPropertyFromComment(comment, "condition")
+ createLineBreakpoint(breakpointManager, file, lineIndex, ordinal, condition)
+ }
+ comment.startsWith("//FunctionBreakpoint!") -> {
+ createFunctionBreakpoint(breakpointManager, file, lineIndex)
+ }
+ else -> throw AssertionError("Cannot create breakpoint at line ${lineIndex + 1}")
+ }
+ }
+ }
+
+ if (!SwingUtilities.isEventDispatchThread()) {
+ DebuggerInvocationUtil.invokeAndWait(project, runnable, ModalityState.defaultModalityState())
+ } else {
+ runnable.invoke()
+ }
+ }
+
+ fun createAdditionalBreakpoints(fileContents: String) {
+ val breakpoints = findLinesWithPrefixesRemoved(fileContents, "// ADDITIONAL_BREAKPOINT: ")
+ for (breakpoint in breakpoints) {
+ val position = breakpoint.split(".kt:")
+ assert(position.size == 2) { "Couldn't parse position from test directive: directive = $breakpoint" }
+
+ var lineMarker = position[1]
+ var ordinal: Int? = null
+
+ if (lineMarker.contains(":(") && lineMarker.endsWith(")")) {
+ val lineMarkerAndOrdinal = lineMarker.split(":(")
+ lineMarker = lineMarkerAndOrdinal[0]
+ ordinal = lineMarkerAndOrdinal[1].substringBefore(")").toInt()
+ }
+
+ createBreakpoint(position[0], lineMarker, ordinal)
+ }
+ }
+
+ private fun getPropertyFromComment(comment: String, propertyName: String): String? {
+ if (comment.contains("$propertyName = ")) {
+ val result = comment.substringAfter("$propertyName = ")
+ if (result.contains(", ")) {
+ return result.substringBefore(", ")
+ }
+ if (result.contains(")")) {
+ return result.substringBefore(")")
+ }
+ }
+ return null
+ }
+
+ private fun createBreakpoint(fileName: String, lineMarker: String, ordinal: Int?) {
+ val sourceFiles = runReadAction {
+ FilenameIndex.getAllFilesByExt(project, "kt")
+ .filter { it.name.contains(fileName) && it.contentsToByteArray().toString(Charsets.UTF_8).contains(lineMarker) }
+ }
+
+ assert(sourceFiles.size == 1) { "One source file should be found: name = $fileName, sourceFiles = $sourceFiles" }
+
+ val runnable = Runnable {
+ val psiSourceFile = PsiManager.getInstance(project).findFile(sourceFiles.first())!!
+
+ val breakpointManager = XDebuggerManager.getInstance(project).breakpointManager
+ val document = PsiDocumentManager.getInstance(project).getDocument(psiSourceFile)!!
+
+ val index = psiSourceFile.text!!.indexOf(lineMarker)
+ val lineNumber = document.getLineNumber(index) + 1 // lineMarker is for previous line
+
+ createLineBreakpoint(breakpointManager, psiSourceFile, lineNumber, ordinal, null)
+ }
+
+ DebuggerInvocationUtil.invokeAndWait(project, runnable, ModalityState.defaultModalityState())
+ }
+
+ private fun createFunctionBreakpoint(breakpointManager: XBreakpointManager, file: PsiFile, lineIndex: Int) {
+ val breakpointType = findBreakpointType(KotlinFunctionBreakpointType::class.java)
+ val breakpoint = createBreakpointOfType(breakpointManager, breakpointType, lineIndex, file.virtualFile)
+ if (breakpoint is KotlinFunctionBreakpoint) {
+ logger("FunctionBreakpoint created at ${file.virtualFile.name}:${lineIndex + 1}")
+ }
+ }
+
+ private fun createLineBreakpoint(
+ breakpointManager: XBreakpointManager,
+ file: PsiFile,
+ lineIndex: Int,
+ lambdaOrdinal: Int?,
+ condition: String?
+ ) {
+ val kotlinLineBreakpointType = findBreakpointType(KotlinLineBreakpointType::class.java)
+ val javaBreakpoint = createBreakpointOfType(
+ breakpointManager,
+ kotlinLineBreakpointType,
+ lineIndex,
+ file.virtualFile
+ )
+
+ if (javaBreakpoint is LineBreakpoint<*>) {
+ val properties = javaBreakpoint.xBreakpoint.properties as? JavaLineBreakpointProperties ?: return
+ var suffix = ""
+ if (lambdaOrdinal != null) {
+ if (lambdaOrdinal != -1) {
+ properties.lambdaOrdinal = lambdaOrdinal - 1
+ } else {
+ properties.lambdaOrdinal = lambdaOrdinal
+ }
+ suffix += " lambdaOrdinal = $lambdaOrdinal"
+ }
+ if (condition != null) {
+ javaBreakpoint.setCondition(TextWithImportsImpl(CodeFragmentKind.EXPRESSION, condition))
+ suffix += " condition = $condition"
+ }
+
+ BreakpointManager.addBreakpoint(javaBreakpoint)
+ logger("LineBreakpoint created at ${file.virtualFile.name}:${lineIndex + 1}$suffix")
+ }
+ }
+
+ private fun createBreakpointOfType(
+ breakpointManager: XBreakpointManager,
+ breakpointType: XLineBreakpointType>,
+ lineIndex: Int,
+ virtualFile: VirtualFile
+ ): Breakpoint>? {
+ if (!breakpointType.canPutAt(virtualFile, lineIndex, project)) return null
+ val xBreakpoint = runWriteAction {
+ breakpointManager.addLineBreakpoint(
+ breakpointType,
+ virtualFile.url,
+ lineIndex,
+ breakpointType.createBreakpointProperties(virtualFile, lineIndex)
+ )
+ }
+ return BreakpointManager.getJavaBreakpoint(xBreakpoint)
+ }
+
+ @Suppress("UNCHECKED_CAST")
+ private inline fun > findBreakpointType(javaClass: Class): XLineBreakpointType> {
+ return XDebuggerUtil.getInstance().findBreakpointType(javaClass) as XLineBreakpointType>
+ }
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/FramePrinter.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/FramePrinter.kt
new file mode 100644
index 00000000000..c2e0f3626e5
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/FramePrinter.kt
@@ -0,0 +1,322 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.util
+
+import com.intellij.debugger.SourcePosition
+import com.intellij.debugger.engine.*
+import com.intellij.debugger.engine.evaluation.CodeFragmentKind
+import com.intellij.debugger.engine.evaluation.TextWithImports
+import com.intellij.debugger.engine.evaluation.TextWithImportsImpl
+import com.intellij.debugger.impl.DebuggerSession
+import com.intellij.debugger.settings.NodeRendererSettings
+import com.intellij.debugger.ui.impl.watch.*
+import com.intellij.debugger.ui.tree.*
+import com.intellij.openapi.Disposable
+import com.intellij.openapi.application.ApplicationManager
+import com.intellij.openapi.application.ModalityState
+import com.intellij.openapi.roots.JdkOrderEntry
+import com.intellij.openapi.roots.libraries.LibraryUtil
+import com.intellij.openapi.util.Disposer
+import com.intellij.openapi.util.io.FileUtil
+import com.intellij.psi.PsiExpression
+import com.intellij.xdebugger.impl.XDebugSessionImpl
+import com.intellij.xdebugger.impl.breakpoints.XExpressionImpl
+import com.intellij.xdebugger.impl.frame.XDebugViewSessionListener
+import com.intellij.xdebugger.impl.frame.XVariablesView
+import com.intellij.xdebugger.impl.frame.XWatchesViewImpl
+import com.intellij.xdebugger.impl.ui.XDebuggerUIConstants
+import com.intellij.xdebugger.impl.ui.tree.XDebuggerTree
+import com.intellij.xdebugger.impl.ui.tree.nodes.*
+import org.jetbrains.kotlin.idea.debugger.KotlinFrameExtraVariablesProvider
+import org.jetbrains.kotlin.idea.debugger.evaluate.KotlinCodeFragmentFactory
+import org.jetbrains.kotlin.idea.debugger.invokeInManagerThread
+import org.jetbrains.kotlin.idea.debugger.test.KOTLIN_LIBRARY_NAME
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferenceKeys
+import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferences
+import org.jetbrains.kotlin.idea.debugger.test.util.PrinterConfig.DescriptorViewOptions
+import org.jetbrains.kotlin.psi.KtFile
+import java.io.Closeable
+import javax.swing.tree.TreeNode
+
+class FramePrinter(
+ debuggerSession: DebuggerSession,
+ private val delegate: FramePrinterDelegate,
+ private val preferences: DebuggerPreferences,
+ private val testRootDisposable: Disposable
+) : Closeable {
+ private companion object {
+ fun getClassRenderer() = NodeRendererSettings.getInstance()!!.classRenderer!!
+ }
+
+ private lateinit var variablesView: XVariablesView
+ private lateinit var watchesView: XWatchesViewImpl
+
+ private val oldShowFqTypeNames: Boolean
+
+ init {
+ ApplicationManager.getApplication().invokeAndWait(
+ {
+ variablesView = createVariablesView(debuggerSession)
+ watchesView = createWatchesView(debuggerSession)
+ }, ModalityState.any()
+ )
+
+ getClassRenderer().let { renderer ->
+ oldShowFqTypeNames = renderer.SHOW_FQ_TYPE_NAMES
+ renderer.SHOW_FQ_TYPE_NAMES = true
+ }
+ }
+
+ override fun close() {
+ getClassRenderer().SHOW_FQ_TYPE_NAMES = oldShowFqTypeNames
+ }
+
+ fun printFrame(completion: () -> Unit) {
+ if (preferences[DebuggerPreferenceKeys.PRINT_FRAME]) {
+ doPrintFrame(completion)
+ } else {
+ completion()
+ }
+ }
+
+ private fun doPrintFrame(completion: () -> Unit) {
+ val tree = variablesView.tree
+
+ val config = getPrinterConfig()
+
+ fun processor() {
+ Printer(delegate, config).printTree(tree)
+
+ for (extra in getExtraVars()) {
+ watchesView.addWatchExpression(XExpressionImpl.fromText(extra.text), -1, false)
+ }
+
+ Printer(delegate, config).printTree(watchesView.tree)
+
+ completion()
+ }
+
+ // TODO why this is needed? Otherwise some tests are never ended
+ val filter: (TreeNode) -> Boolean = { it !is XValueNodeImpl || it.name != "cause" }
+
+ delegate.expandAll(tree, ::processor, filter, delegate.evaluationContext.suspendContext)
+ }
+
+ private fun getPrinterConfig(): PrinterConfig {
+ val skipInPrintFrame = preferences[DebuggerPreferenceKeys.SKIP].flatMap { it.split(',') }.map { it.trim() }
+ val viewOptions = DescriptorViewOptions.valueOf(preferences[DebuggerPreferenceKeys.DESCRIPTOR_VIEW_OPTIONS])
+ return PrinterConfig(skipInPrintFrame, viewOptions)
+ }
+
+ private fun createWatchesView(debuggerSession: DebuggerSession): XWatchesViewImpl {
+ val session = debuggerSession.xDebugSession as XDebugSessionImpl
+ val watchesView = XWatchesViewImpl(session, false)
+ Disposer.register(testRootDisposable, watchesView)
+ XDebugViewSessionListener.attach(watchesView, session)
+ return watchesView
+ }
+
+ private fun createVariablesView(debuggerSession: DebuggerSession): XVariablesView {
+ val session = debuggerSession.xDebugSession as XDebugSessionImpl
+ val variablesView = XVariablesView(session)
+ Disposer.register(testRootDisposable, variablesView)
+ XDebugViewSessionListener.attach(variablesView, session)
+ return variablesView
+ }
+
+ private fun getExtraVars(): Set {
+ return KotlinFrameExtraVariablesProvider()
+ .collectVariables(delegate.debuggerContext.sourcePosition, delegate.evaluationContext, hashSetOf())
+ }
+}
+
+private class PrinterConfig(
+ val variablesToSkipInPrintFrame: List = emptyList(),
+ val viewOptions: DescriptorViewOptions = DescriptorViewOptions.FULL
+) {
+ enum class DescriptorViewOptions {
+ FULL, NAME_EXPRESSION, NAME_EXPRESSION_RESULT
+ }
+
+ fun shouldRenderSourcesPosition(): Boolean {
+ return when (viewOptions) {
+ DescriptorViewOptions.FULL -> true
+ else -> false
+ }
+ }
+
+ fun shouldRenderExpression(): Boolean {
+ return when {
+ viewOptions.toString().contains("EXPRESSION") -> true
+ else -> false
+ }
+ }
+
+ fun renderLabel(node: TreeNode, descriptor: NodeDescriptorImpl): String {
+ return when {
+ descriptor is WatchItemDescriptor -> descriptor.calcValueName()
+ viewOptions.toString().contains("NAME") -> (node as? XValueNodeImpl)?.name ?: descriptor.name ?: descriptor.label
+ else -> descriptor.label
+ }
+ }
+
+ fun shouldComputeResultOfCreateExpression(): Boolean {
+ return viewOptions == DescriptorViewOptions.NAME_EXPRESSION_RESULT
+ }
+}
+
+private class Printer(private val delegate: FramePrinterDelegate, private val config: PrinterConfig) {
+ fun printTree(tree: XDebuggerTree) {
+ val root = tree.treeModel.root as TreeNode
+ printNode(root, 0)
+ }
+
+ private fun printNode(node: TreeNode, indent: Int) {
+ val project = delegate.debuggerContext.project
+
+ val descriptor = when (node) {
+ is DebuggerTreeNodeImpl -> node.descriptor
+ is XValueNodeImpl -> (node.valueContainer as? JavaValue)?.descriptor ?: MessageDescriptor(node.text.toString())
+ is XStackFrameNode -> (node.valueContainer as? JavaStackFrame)?.descriptor
+ is XValueGroupNodeImpl -> (node.valueContainer as? JavaStaticGroup)?.descriptor
+ is WatchesRootNode -> null
+ is WatchNodeImpl -> WatchItemDescriptor(project, TextWithImportsImpl(CodeFragmentKind.EXPRESSION, node.expression.expression))
+ is MessageTreeNode -> MessageDescriptor(node.text.toString())
+ else -> MessageDescriptor(node.toString())
+ }
+
+ if (descriptor != null && printDescriptor(node, descriptor, indent)) {
+ return
+ }
+
+ printChildren(node, indent + 2)
+ }
+
+ fun printDescriptor(node: TreeNode, descriptor: NodeDescriptorImpl, indent: Int): Boolean {
+ if (descriptor is DefaultNodeDescriptor || config.variablesToSkipInPrintFrame.contains(descriptor.name)) {
+ return true
+ }
+
+ val label = calculateLabel(node, descriptor) ?: return true
+
+ val project = delegate.debuggerContext.project
+ val debugProcess = delegate.debuggerContext.debugProcess ?: error("Debugger process is not launched")
+
+ val text = buildString {
+ append(" ".repeat(indent + 1))
+ append(getPrefix(descriptor))
+ append(label)
+ if (config.shouldRenderSourcesPosition() && hasSourcePosition(descriptor)) {
+ val sp = debugProcess.invokeInManagerThread {
+ SourcePositionProvider.getSourcePosition(descriptor, project, delegate.debuggerContext)
+ }
+ append(" (sp = ${render(sp)})")
+ }
+
+ if (config.shouldRenderExpression() && descriptor is ValueDescriptorImpl) {
+ val expression = debugProcess.invokeInManagerThread {
+ descriptor.getTreeEvaluation((node as XValueNodeImpl).valueContainer as JavaValue, it) as? PsiExpression
+ }
+
+ if (expression != null) {
+ val text = TextWithImportsImpl(expression)
+ val imports = expression.getUserData(DebuggerTreeNodeExpression.ADDITIONAL_IMPORTS_KEY)?.joinToString { it } ?: ""
+
+ val codeFragment = KotlinCodeFragmentFactory().createPresentationCodeFragment(
+ TextWithImportsImpl(text.kind, text.text, text.imports + imports, text.fileType),
+ delegate.debuggerContext.sourcePosition.elementAt, project
+ )
+ val codeFragmentText = codeFragment.text
+
+ if (config.shouldComputeResultOfCreateExpression()) {
+ debugProcess.invokeInManagerThread {
+ val suspendContext = it.suspendContext ?: error(SuspendContext::class.java.simpleName + " is not set")
+ val fragment = TextWithImportsImpl(text.kind, codeFragmentText, codeFragment.importsToString(), text.fileType)
+ delegate.evaluate(suspendContext, fragment)
+ }
+ }
+
+ append(" (expression = $codeFragmentText)")
+ }
+ }
+ append("\n")
+ }
+
+ delegate.logDescriptor(descriptor, text)
+
+ return false
+ }
+
+ private fun calculateLabel(node: TreeNode, descriptor: NodeDescriptorImpl): String? {
+ var label = config.renderLabel(node, descriptor)
+
+ // TODO: update presentation before calc label
+ if (label == NodeDescriptorImpl.UNKNOWN_VALUE_MESSAGE && descriptor is StaticDescriptor) {
+ label = "static = " + NodeRendererSettings.getInstance().classRenderer.renderTypeName(descriptor.type.name())
+ }
+
+ if (label.endsWith(XDebuggerUIConstants.COLLECTING_DATA_MESSAGE)) {
+ return null
+ }
+
+ return label
+ }
+
+ private fun getPrefix(descriptor: NodeDescriptorImpl): String {
+ val prefix = when (descriptor) {
+ is StackFrameDescriptor -> "frame"
+ is WatchItemDescriptor -> "extra"
+ is LocalVariableDescriptor -> "local"
+ is StaticDescriptor -> "static"
+ is ThisDescriptorImpl -> "this"
+ is FieldDescriptor -> "field"
+ is ArrayElementDescriptor -> "element"
+ is MessageDescriptor -> ""
+ else -> "unknown"
+ }
+ return prefix + " ".repeat("unknown ".length - prefix.length) + if (descriptor is MessageDescriptor) " - " else " = "
+ }
+
+ private fun hasSourcePosition(descriptor: NodeDescriptorImpl): Boolean {
+ return when (descriptor) {
+ is LocalVariableDescriptor,
+ is FieldDescriptor -> true
+ else -> false
+ }
+ }
+
+ private fun printChildren(node: TreeNode, indent: Int) {
+ val e = node.children()
+ while (e.hasMoreElements()) {
+ printNode(e.nextElement() as TreeNode, indent)
+ }
+ }
+
+ private fun render(sp: SourcePosition?): String {
+ return renderSourcePosition(sp).replace(":", ", ")
+ }
+}
+
+fun renderSourcePosition(sourcePosition: SourcePosition?): String {
+ if (sourcePosition == null) {
+ return "null"
+ }
+
+ val virtualFile = sourcePosition.file.originalFile.virtualFile ?: sourcePosition.file.viewProvider.virtualFile
+
+ val libraryEntry = LibraryUtil.findLibraryEntry(virtualFile, sourcePosition.file.project)
+ if (libraryEntry != null && (libraryEntry is JdkOrderEntry || libraryEntry.presentableName == KOTLIN_LIBRARY_NAME)) {
+ val suffix = if (sourcePosition.isInCompiledFile()) "COMPILED" else "EXT"
+ return FileUtil.getNameWithoutExtension(virtualFile.name) + ".!$suffix!"
+ }
+
+ return virtualFile.name + ":" + (sourcePosition.line + 1)
+}
+
+private fun SourcePosition.isInCompiledFile(): Boolean {
+ val ktFile = file as? KtFile ?: return false
+ return ktFile.isCompiled
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/FramePrinterDelegate.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/FramePrinterDelegate.kt
new file mode 100644
index 00000000000..829fafe4c00
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/FramePrinterDelegate.kt
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.util
+
+import com.intellij.debugger.engine.SuspendContextImpl
+import com.intellij.debugger.engine.evaluation.EvaluationContextImpl
+import com.intellij.debugger.engine.evaluation.TextWithImportsImpl
+import com.intellij.debugger.impl.DebuggerContextImpl
+import com.intellij.debugger.ui.impl.watch.NodeDescriptorImpl
+import com.intellij.ui.treeStructure.Tree
+import javax.swing.tree.TreeNode
+
+interface FramePrinterDelegate {
+ val debuggerContext: DebuggerContextImpl
+ val evaluationContext: EvaluationContextImpl
+
+ fun evaluate(suspendContext: SuspendContextImpl, textWithImports: TextWithImportsImpl)
+
+ fun expandAll(tree: Tree, runnable: () -> Unit, filter: (TreeNode) -> Boolean, suspendContext: SuspendContextImpl)
+ fun logDescriptor(descriptor: NodeDescriptorImpl, text: String)
+}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinOutputChecker.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/KotlinOutputChecker.kt
similarity index 80%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinOutputChecker.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/KotlinOutputChecker.kt
index 7e81c6e0f66..cd1ec8aa2a4 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinOutputChecker.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/KotlinOutputChecker.kt
@@ -3,7 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test.util
import com.intellij.debugger.impl.OutputChecker
import com.intellij.idea.IdeaLogger
@@ -19,18 +19,22 @@ import java.io.File
import kotlin.math.min
internal class KotlinOutputChecker(
- private val testDir: String,
- appPath: String, outputPath: String) : OutputChecker(appPath, outputPath) {
+ private val testDir: String,
+ appPath: String,
+ outputPath: String
+) : OutputChecker(appPath, outputPath) {
companion object {
@JvmStatic
private val LOG = Logger.getInstance(KotlinOutputChecker::class.java)
- private val CONNECT_PREFIX = "Connected to the target VM"
- private val DISCONNECT_PREFIX = "Disconnected from the target VM"
- private val RUN_JAVA = "Run Java"
+ private const val CONNECT_PREFIX = "Connected to the target VM"
+ private const val DISCONNECT_PREFIX = "Disconnected from the target VM"
+ private const val RUN_JAVA = "Run Java"
//ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
- private val JDI_BUG_OUTPUT_PATTERN_1 = Regex("ERROR:\\s+JDWP\\s+Unable\\s+to\\s+get\\s+JNI\\s+1\\.2\\s+environment,\\s+jvm->GetEnv\\(\\)\\s+return\\s+code\\s+=\\s+-2")
+ private val JDI_BUG_OUTPUT_PATTERN_1 =
+ Regex("ERROR:\\s+JDWP\\s+Unable\\s+to\\s+get\\s+JNI\\s+1\\.2\\s+environment,\\s+jvm->GetEnv\\(\\)\\s+return\\s+code\\s+=\\s+-2")
+
//JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
private val JDI_BUG_OUTPUT_PATTERN_2 = Regex("JDWP\\s+exit\\s+error\\s+AGENT_ERROR_NO_JNI_ENV.*]")
}
@@ -51,16 +55,15 @@ internal class KotlinOutputChecker(
val actual = preprocessBuffer(buildOutputString())
val outDir = File(testDir)
- var outFile = File(outDir, myTestName + ".out")
+ var outFile = File(outDir, "$myTestName.out")
if (!outFile.exists()) {
if (SystemInfo.isWindows) {
- val winOut = File(outDir, myTestName + ".win.out")
+ val winOut = File(outDir, "$myTestName.win.out")
if (winOut.exists()) {
outFile = winOut
}
- }
- else if (SystemInfo.isUnix) {
- val unixOut = File(outDir, myTestName + ".unx.out")
+ } else if (SystemInfo.isUnix) {
+ val unixOut = File(outDir, "$myTestName.unx.out")
if (unixOut.exists()) {
outFile = unixOut
}
@@ -70,8 +73,7 @@ internal class KotlinOutputChecker(
if (!outFile.exists()) {
FileUtil.writeToFile(outFile, actual)
LOG.error("Test file created ${outFile.path}\n**************** Don't forget to put it into VCS! *******************")
- }
- else {
+ } else {
val originalText = FileUtilRt.loadFile(outFile, CharsetToolkit.UTF8)
val expected = StringUtilRt.convertLineSeparators(originalText)
if (expected != actual) {
@@ -86,8 +88,7 @@ internal class KotlinOutputChecker(
}
if (expected.length > len) {
println("Rest from expected text is: \"" + expected.substring(len) + "\"")
- }
- else if (actual.length > len) {
+ } else if (actual.length > len) {
println("Rest from actual text is: \"" + actual.substring(len) + "\"")
}
@@ -108,7 +109,9 @@ internal class KotlinOutputChecker(
val disconnectedIndex = lines.indexOfFirst { it.startsWith(DISCONNECT_PREFIX) }
lines[disconnectedIndex] = DISCONNECT_PREFIX
- return lines.filter { !(it.matches(JDI_BUG_OUTPUT_PATTERN_1) || it.matches(JDI_BUG_OUTPUT_PATTERN_2)) }.joinToString("\n")
+ return lines.filter { !(it.matches(JDI_BUG_OUTPUT_PATTERN_1) || it.matches(
+ JDI_BUG_OUTPUT_PATTERN_2
+ )) }.joinToString("\n")
}
private fun buildOutputString(): String {
@@ -119,8 +122,7 @@ internal class KotlinOutputChecker(
try {
m.isAccessible = true
return m.invoke(this) as String
- }
- finally {
+ } finally {
m.isAccessible = isAccessible
}
}
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/LogPropagator.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/LogPropagator.kt
new file mode 100644
index 00000000000..ae05ebbf28c
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/LogPropagator.kt
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.util
+
+import org.apache.log4j.AppenderSkeleton
+import org.apache.log4j.Level
+import org.apache.log4j.Logger
+import org.apache.log4j.spi.LoggingEvent
+import org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches
+
+internal class LogPropagator(val systemLogger: (String) -> Unit) {
+ private var oldLogLevel: Level? = null
+ private val logger = Logger.getLogger(KotlinDebuggerCaches::class.java)
+ private var appender: AppenderSkeleton? = null
+
+ fun attach() {
+ oldLogLevel = logger.level
+ logger.level = Level.DEBUG
+
+ appender = object : AppenderSkeleton() {
+ override fun append(event: LoggingEvent?) {
+ val message = event?.renderedMessage
+ if (message != null) {
+ systemLogger(message)
+ }
+ }
+
+ override fun close() {}
+ override fun requiresLayout() = false
+ }
+
+ logger.addAppender(appender)
+ }
+
+ fun detach() {
+ logger.removeAppender(appender)
+ appender = null
+
+ logger.level = oldLogLevel
+ }
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/SteppingInstruction.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/SteppingInstruction.kt
new file mode 100644
index 00000000000..6470e69adef
--- /dev/null
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/SteppingInstruction.kt
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.idea.debugger.test.util
+
+import org.jetbrains.kotlin.codegen.CodegenTestCase
+
+enum class SteppingInstructionKind(val directiveName: String) {
+ StepInto("STEP_INTO"),
+ StepOut("STEP_OUT"),
+ StepOver("STEP_OVER"),
+ ForceStepOver("STEP_OVER_FORCE"),
+ SmartStepInto("SMART_STEP_INTO"),
+ SmartStepIntoByIndex("SMART_STEP_INTO_BY_INDEX"),
+ Resume("RESUME")
+}
+
+class SteppingInstruction(val kind: SteppingInstructionKind, val arg: Int) {
+ companion object {
+ fun parse(file: CodegenTestCase.TestFile): List {
+ return parse(file, Companion::parseLine)
+ }
+
+ fun parseSingle(file: CodegenTestCase.TestFile, kind: SteppingInstructionKind): SteppingInstruction? {
+ val instructions = parse(file) { line -> parseKind(line, kind) }
+ if (instructions.size > 1) {
+ error("Several instructions found for kind $kind")
+ }
+
+ return instructions.singleOrNull()
+ }
+
+ private fun parse(file: CodegenTestCase.TestFile, processor: (String) -> SteppingInstruction?): List {
+ return file.content.lineSequence()
+ .map { it.trimStart() }
+ .filter { it.startsWith("// ") }
+ .mapNotNullTo(mutableListOf(), processor)
+ }
+
+ private fun parseLine(line: String): SteppingInstruction? {
+ for (kind in SteppingInstructionKind.values()) {
+ parseKind(line, kind)?.let { return it }
+ }
+
+ return null
+ }
+
+ private fun parseKind(line: String, kind: SteppingInstructionKind): SteppingInstruction? {
+ val prefix = "// " + kind.directiveName + ": "
+ if (line.startsWith(prefix)) {
+ val rawValue = line.drop(prefix.length).trim()
+ val n = rawValue.toIntOrNull() ?: error("Int expected, got $rawValue")
+ return SteppingInstruction(kind, n)
+ }
+
+ return null
+ }
+ }
+}
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/dexLikeBytecodePatch.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/dexLikeBytecodePatch.kt
similarity index 67%
rename from idea/tests/org/jetbrains/kotlin/idea/debugger/dexLikeBytecodePatch.kt
rename to idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/dexLikeBytecodePatch.kt
index de781c76dcd..e20d9d50c4f 100644
--- a/idea/tests/org/jetbrains/kotlin/idea/debugger/dexLikeBytecodePatch.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/dexLikeBytecodePatch.kt
@@ -3,34 +3,27 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.idea.debugger
+package org.jetbrains.kotlin.idea.debugger.test.util
import org.jetbrains.org.objectweb.asm.*
import java.io.File
import java.util.*
-val DEX_BEFORE_PATCH_EXTENSION = "before_dex"
-
-fun String.needDexPatch() = split('.').any { it.endsWith("Dex") }
-
-fun patchDexTests(dir: File) {
- dir.listFiles { file -> file.isDirectory && file.name.needDexPatch() }.forEach {
- it.listFiles { testOutputFile -> testOutputFile.extension == "class" }.forEach(::applyDexLikePatch)
- }
+fun patchDexTests(classesDir: File) {
+ classesDir.walk()
+ .filter { it.isFile && it.nameWithoutExtension.endsWith("Dex") && it.extension == "class" }
+ .forEach(::applyDexLikePatch)
}
private fun applyDexLikePatch(file: File) {
- file.copyTo(File(file.absolutePath + ".$DEX_BEFORE_PATCH_EXTENSION"))
-
val reader = ClassReader(file.readBytes())
val writer = ClassWriter(ClassWriter.COMPUTE_FRAMES)
val visitor = writer
- .withRemoveSourceDebugExtensionVisitor()
- .withRemoveSameLinesInLineTableVisitor()
+ .withRemoveSourceDebugExtensionVisitor()
+ .withRemoveSameLinesInLineTableVisitor()
reader.accept(visitor, 0)
-
file.writeBytes(writer.toByteArray())
}
@@ -44,7 +37,13 @@ private fun ClassVisitor.withRemoveSourceDebugExtensionVisitor(): ClassVisitor {
private fun ClassVisitor.withRemoveSameLinesInLineTableVisitor(): ClassVisitor {
return object : ClassVisitor(Opcodes.API_VERSION, this) {
- override fun visitMethod(access: Int, name: String?, desc: String?, signature: String?, exceptions: Array?): MethodVisitor? {
+ override fun visitMethod(
+ access: Int,
+ name: String?,
+ desc: String?,
+ signature: String?,
+ exceptions: Array?
+ ): MethodVisitor? {
val methodVisitor = super.visitMethod(access, name, desc, signature, exceptions) ?: return null
return object : MethodVisitor(Opcodes.API_VERSION, methodVisitor) {
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.kt
index c7a47edfa41..6d115df1d19 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.kt
@@ -1,3 +1,4 @@
+// FILE: text.kt
package isInsideInlineLambda
fun main(args: Array) {
@@ -73,3 +74,46 @@ class A {
// ADDITIONAL_BREAKPOINT: isInsideInlineLambdaInLibrary.kt:Breakpoint5:(1)
// EXPRESSION: it + 15
// RESULT: 20: I
+
+// FILE: isInsideInlineLambdaInLibrary.kt
+package isInsideInlineLambdaInLibrary
+
+public fun test() {
+ val a = A()
+ //Breakpoint1
+ a.foo(1) { 1 }
+
+ // inside other lambda
+ a.foo(100) {
+ //Breakpoint2
+ a.foo(2) { 1 }
+ 1
+ }
+
+ // inside variable declaration
+ //Breakpoint3
+ val x = a.foo(3) { 1 }
+
+ // inside object declaration
+ val y = object {
+ fun foo() {
+ //Breakpoint4
+ a.foo(4) { 1 }
+ }
+ }
+ y.foo()
+
+ // inside local function
+ fun local() {
+ //Breakpoint5
+ a.foo(5) { 1 }
+ }
+ local()
+}
+
+class A {
+ inline fun foo(i: Int, f: (i: Int) -> Int): A {
+ f(i)
+ return this
+ }
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out
index 37ff1025589..e04be351a23 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out
@@ -1,34 +1,34 @@
-LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:6 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:11 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:17 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:23 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:31 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambda.kt:9 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambda.kt:17 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambda.kt:25 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambda.kt:33 lambdaOrdinal = 1
-LineBreakpoint created at isInsideInlineLambda.kt:43 lambdaOrdinal = 1
+LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:7 lambdaOrdinal = 1
+LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:12 lambdaOrdinal = 1
+LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:18 lambdaOrdinal = 1
+LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:24 lambdaOrdinal = 1
+LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:32 lambdaOrdinal = 1
+LineBreakpoint created at text.kt:10 lambdaOrdinal = 1
+LineBreakpoint created at text.kt:18 lambdaOrdinal = 1
+LineBreakpoint created at text.kt:26 lambdaOrdinal = 1
+LineBreakpoint created at text.kt:34 lambdaOrdinal = 1
+LineBreakpoint created at text.kt:44 lambdaOrdinal = 1
Run Java
Connected to the target VM
-isInsideInlineLambda.kt:9
+text.kt:10
Compile bytecode for it + 1
-isInsideInlineLambda.kt:17
+text.kt:18
Compile bytecode for it + 2
-isInsideInlineLambda.kt:25
+text.kt:26
Compile bytecode for it + 3
-isInsideInlineLambda.kt:33
+text.kt:34
Compile bytecode for it + 4
-isInsideInlineLambda.kt:43
+text.kt:44
Compile bytecode for it + 5
-isInsideInlineLambdaInLibrary.kt:6
+isInsideInlineLambdaInLibrary.kt:7
Compile bytecode for it + 11
-isInsideInlineLambdaInLibrary.kt:11
+isInsideInlineLambdaInLibrary.kt:12
Compile bytecode for it + 12
-isInsideInlineLambdaInLibrary.kt:17
+isInsideInlineLambdaInLibrary.kt:18
Compile bytecode for it + 13
-isInsideInlineLambdaInLibrary.kt:23
+isInsideInlineLambdaInLibrary.kt:24
Compile bytecode for it + 14
-isInsideInlineLambdaInLibrary.kt:31
+isInsideInlineLambdaInLibrary.kt:32
Compile bytecode for it + 15
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.kt
index 3b5ec0a8860..f3c9cd80377 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.kt
@@ -1,3 +1,4 @@
+// FILE: customLibClassName.kt
package customLibClassName
fun main(args: Array) {
@@ -26,4 +27,87 @@ fun main(args: Array) {
// ADDITIONAL_BREAKPOINT: simpleLibFile.kt:public fun foo() {
// EXPRESSION: 1 + 5
-// RESULT: 6: I
\ No newline at end of file
+// RESULT: 6: I
+
+// FILE: lib/oneFunSameClassName/1/a1.kt
+@file:JvmName("SameNameOneFunSameFileName")
+@file:JvmMultifileClass
+package customLib.oneFunSameClassName
+
+public fun oneFunSameFileNameFun(): Int {
+ return 1
+}
+
+// FILE: lib/oneFunSameClassName/2/a2.kt
+@file:JvmName("SameNameOneFunSameFileName")
+@file:JvmMultifileClass
+package customLib.oneFunSameClassName
+
+public fun oneFunSameFileNameFun2(): Int {
+ return 1
+}
+
+// FILE: lib/twoFunDifferentSignature/1/a1.kt
+@file:JvmName("SameNameTwoFunDifferentSignature")
+@file:JvmMultifileClass
+package customLib.twoFunDifferentSignature
+
+public fun twoFunDifferentSignatureFun(): Int {
+ return 1
+}
+
+// FILE: lib/twoFunDifferentSignature/2/a2.kt
+@file:JvmName("SameNameTwoFunDifferentSignature")
+@file:JvmMultifileClass
+package customLib.twoFunDifferentSignature
+
+public fun twoFunDifferentSignatureFun(i: Int): Int {
+ return 1
+}
+
+// FILE: lib/breakpointOnLocalProperty/1/a1.kt
+@file:JvmName("SameNameBreakpointOnLocalProperty")
+@file:JvmMultifileClass
+package customLib.breakpointOnLocalProperty
+
+public fun breakpointOnLocalPropertyFun(): Int {
+ val a = 1
+ return 1
+}
+
+// FILE: lib/breakpointOnLocalProperty/2/a2.kt
+@file:JvmName("SameNameBreakpointOnLocalProperty")
+@file:JvmMultifileClass
+package customLib.breakpointOnLocalProperty
+
+public fun breakpointOnLocalPropertyFun2(): Int {
+ return 1
+}
+
+// FILE: lib/property/1/a1.kt
+@file:JvmName("SameNameProperty")
+@file:JvmMultifileClass
+package customLib.property
+
+public val foo: Int =
+ 1
+
+// FILE: lib/property/2/a2.kt
+@file:JvmName("SameNameProperty")
+@file:JvmMultifileClass
+package customLib.property
+
+public fun someFun(): Int {
+ return 1
+}
+
+// FILE: lib/simpleLibFile/simpleLibFile.kt
+package customLib.simpleLibFile
+
+public fun foo() {
+ 1 + 1
+}
+
+class B {
+ public var prop: Int = 1
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.out
index 64a6003bc65..8c5cf5808da 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.out
@@ -1,19 +1,19 @@
-LineBreakpoint created at a1.kt:6
-LineBreakpoint created at a1.kt:6
-LineBreakpoint created at a1.kt:6
-LineBreakpoint created at a1.kt:6
-LineBreakpoint created at simpleLibFile.kt:4
+LineBreakpoint created at a1.kt:7
+LineBreakpoint created at a1.kt:7
+LineBreakpoint created at a1.kt:7
+LineBreakpoint created at a1.kt:7
+LineBreakpoint created at simpleLibFile.kt:5
Run Java
Connected to the target VM
-a1.kt:6
+a1.kt:7
Compile bytecode for 1 + 1
-a1.kt:6
+a1.kt:7
Compile bytecode for 1 + 2
-a1.kt:6
+a1.kt:7
Compile bytecode for 1 + 3
-a1.kt:6
+a1.kt:7
Compile bytecode for 1 + 4
-simpleLibFile.kt:4
+simpleLibFile.kt:5
Compile bytecode for 1 + 5
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.kt
index c5e5b3838ed..50162588180 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.kt
@@ -1,3 +1,4 @@
+// FILE: test.kt
package localFunInLibrary
fun main(args: Array) {
@@ -6,4 +7,12 @@ fun main(args: Array) {
// ADDITIONAL_BREAKPOINT: localFunCustomLib.kt:localFunInLibraryCustomLibProperty
// EXPRESSION: localFun()
-// RESULT: 1: I
\ No newline at end of file
+// RESULT: 1: I
+
+// FILE: localFunCustomLib.kt
+package customLib.localFunInLibraryCustomLib
+
+public fun localFunInLibraryCustomLibMainFun() {
+ fun localFun() = 1
+ val localFunInLibraryCustomLibProperty = 1
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out
index 5418a959332..5907dff2403 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at localFunCustomLib.kt:6
+LineBreakpoint created at localFunCustomLib.kt:7
Run Java
Connected to the target VM
-localFunCustomLib.kt:6
+localFunCustomLib.kt:7
Compile bytecode for localFun()
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.kt
index 348c5891042..f253ed1f376 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.kt
@@ -1,3 +1,4 @@
+// FILE: breakpointInInlineFun.kt
package breakpointInInlineFun
import customLib.inlineFunInLibrary.*
@@ -9,4 +10,19 @@ fun main(args: Array) {
// RESUME: 2
// ADDITIONAL_BREAKPOINT: inlineFunInLibrary.kt:public inline fun inlineFun
-// ADDITIONAL_BREAKPOINT: inlineFunInLibrary.kt: Breakpoint 2
\ No newline at end of file
+// ADDITIONAL_BREAKPOINT: inlineFunInLibrary.kt: Breakpoint 2
+
+// FILE: customLib/inlineFunInLibrary/inlineFunInLibrary.kt
+package customLib.inlineFunInLibrary
+
+public inline fun inlineFun(f: () -> Unit) {
+ 1 + 1
+ inlineFunInner {
+ 1 + 1
+ }
+}
+
+public inline fun inlineFunInner(f: () -> Unit) {
+ // Breakpoint 2
+ 1 + 1
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.out
index ac64e84f497..09f7213459a 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.out
@@ -1,9 +1,9 @@
-LineBreakpoint created at inlineFunInLibrary.kt:4
-LineBreakpoint created at inlineFunInLibrary.kt:12
+LineBreakpoint created at inlineFunInLibrary.kt:5
+LineBreakpoint created at inlineFunInLibrary.kt:13
Run Java
Connected to the target VM
-inlineFunInLibrary.kt:4
-inlineFunInLibrary.kt:12
+inlineFunInLibrary.kt:5
+inlineFunInLibrary.kt:13
Disconnected from the target VM
Process finished with exit code 0
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.kt
index b94f5b8da9e..4ae4c17ba66 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.kt
@@ -1,3 +1,4 @@
+// FILE: classFromAnotherPackage.kt
package classFromAnotherPackage
import forTests.MyJavaClass
@@ -12,3 +13,7 @@ fun main(args: Array) {
// EXPRESSION: forTests.MyJavaClass()
// RESULT: instance of forTests.MyJavaClass(id=ID): LforTests/MyJavaClass;
+
+// FILE: forTests/MyJavaClass.java
+package forTests;
+public class MyJavaClass {}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.out
index 07977b5c426..af530bb6ffc 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at classFromAnotherPackage.kt:7
+LineBreakpoint created at classFromAnotherPackage.kt:8
Run Java
Connected to the target VM
-classFromAnotherPackage.kt:7
+classFromAnotherPackage.kt:8
Compile bytecode for MyJavaClass()
Compile bytecode for forTests.MyJavaClass()
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.kt
index dcb7e747f6b..135e0d0bd02 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.kt
@@ -1,3 +1,4 @@
+// FILE: createExpressionWithArray.kt
package createExpressionWithArray
import forTests.MyJavaClass
@@ -13,3 +14,28 @@ fun main(args: Array) {
// PRINT_FRAME
// DESCRIPTOR_VIEW_OPTIONS: NAME_EXPRESSION_RESULT
+
+// FILE: forTests/MyJavaClass.java
+package forTests;
+
+import org.jetbrains.annotations.NotNull;
+import java.util.List;
+
+public class MyJavaClass {
+ public static class BaseClass {
+ public final int i2 = 1;
+ }
+
+ public BaseClass getBaseClassValue() {
+ return new BaseClass();
+ }
+ public BaseClass getInnerClassValue() {
+ return new InnerClass();
+ }
+
+ public static class InnerClass extends BaseClass {
+ public final int i = 1;
+ }
+
+ public MyJavaClass() {}
+}
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.out
index 421c609be92..24e48c8c688 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at createExpressionWithArray.kt:11
+LineBreakpoint created at createExpressionWithArray.kt:12
Run Java
Connected to the target VM
-createExpressionWithArray.kt:11
+createExpressionWithArray.kt:12
Compile bytecode for args
Compile bytecode for baseArray
Compile bytecode for baseArray[0]
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.kt
index e623ca99a63..324a62d0df8 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.kt
@@ -1,3 +1,4 @@
+// FILE: delegatedPropertyInOtherFile.kt
package delegatedPropertyInOtherFile
import delegatedPropertyInOtherFileOther.*
@@ -11,3 +12,16 @@ fun main(a: Array) {
// EXPRESSION: t.a
// RESULT: 12: I
+
+// FILE: delegatedPropertyInOtherFile/delegatedPropertyInOtherFile2.kt
+package delegatedPropertyInOtherFileOther
+
+import kotlin.reflect.KProperty
+
+class WithDelegate {
+ val a: Int by Id(12)
+}
+
+class Id(val v: Int) {
+ operator fun getValue(o: Any, property: KProperty<*>): Int = v
+}
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out
index 124bc04a986..2d5a6033803 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at delegatedPropertyInOtherFile.kt:9
+LineBreakpoint created at delegatedPropertyInOtherFile.kt:10
Run Java
Connected to the target VM
-delegatedPropertyInOtherFile.kt:9
+delegatedPropertyInOtherFile.kt:10
Compile bytecode for t.a
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDelegatedProperty.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDelegatedProperty.out
index a73f36cb175..6b17b0ddcee 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDelegatedProperty.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDelegatedProperty.out
@@ -2,7 +2,6 @@ LineBreakpoint created at evDelegatedProperty.kt:13
Run Java
Connected to the target VM
evDelegatedProperty.kt:13
-Compile bytecode for a.prop
frame = main:13, EvDelegatedPropertyKt {evDelegatedProperty}
local = args: java.lang.String[] = {java.lang.String[0]@uniqueID} (sp = evDelegatedProperty.kt, 9)
local = a: evDelegatedProperty.A = {evDelegatedProperty.A@uniqueID} (sp = evDelegatedProperty.kt, 10)
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.kt
index e1fc96a426c..2e3bd99b37b 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.kt
@@ -1,3 +1,4 @@
+// FILE: fieldGetters.kt
package fieldGetters
import forTests.FieldsGetters
@@ -30,8 +31,6 @@ class K2 {
// EXPRESSION: K2().a_field
// RESULT: 0: I
-
-
// EXPRESSION: PublicField().foo
// RESULT: "a": Ljava/lang/String;
@@ -102,4 +101,82 @@ class K2 {
// RESULT: "a": Ljava/lang/String;
// EXPRESSION: PublicFieldAndGetterInParent().foo_field
-// RESULT: "b": Ljava/lang/String;
\ No newline at end of file
+// RESULT: "b": Ljava/lang/String;
+
+// FILE: forTests/FieldsGetters.java
+package forTests;
+
+public class FieldsGetters {
+ public static class PublicField {
+ public String foo = "a";
+ }
+
+ public static class PackagePrivateField {
+ String foo = "b";
+ }
+
+ public static class ProtectedField {
+ protected String foo = "c";
+ }
+
+ public static class PrivateField {
+ private String foo = "d";
+ }
+
+ public static class PublicFieldGetter {
+ public final String foo = "a";
+
+ public String getFoo() {
+ return "b";
+ }
+ }
+
+ public static class PrivateFieldPublicGetter {
+ private final String foo = "c";
+
+ public String getFoo() {
+ return "d";
+ }
+ }
+
+ public static class PrivateFieldPrivateGetter {
+ private final String foo = "e";
+
+ public String getFoo() {
+ return "f";
+ }
+ }
+
+ public static class PublicGetter1 extends PublicField {
+ public String getFoo() {
+ return "g";
+ }
+ }
+
+ public static class PublicGetter2 extends PackagePrivateField {
+ public String getFoo() {
+ return "h";
+ }
+ }
+
+ public static class PrivateGetter1 extends PrivateField {
+ private String getFoo() {
+ return "g";
+ }
+ }
+
+ public static class PublicGetterOnly {
+ public String getFoo() {
+ return "a";
+ }
+ }
+
+ public static class PublicFieldAndGetterInParent extends PublicGetterOnly {
+ public String foo = "b";
+ }
+
+ public abstract class AbstractGetter {
+ public String foo = "c";
+ public abstract String getFoo();
+ }
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.out
index 1b1d96df347..acf29dcca3d 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at fieldGetters.kt:8
+LineBreakpoint created at fieldGetters.kt:9
Run Java
Connected to the target VM
-fieldGetters.kt:8
+fieldGetters.kt:9
Compile bytecode for K1().a
Compile bytecode for K1().a_field
Compile bytecode for K2().a
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.kt
index 52a3370def7..63fe56a2855 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.kt
@@ -1,3 +1,4 @@
+// FILE: fileWithError.kt
package fileWithError
fun main(args: Array) {
@@ -8,4 +9,17 @@ fun main(args: Array) {
// ADDITIONAL_BREAKPOINT: fileWithInternal.kt:Breakpoint
// EXPRESSION: 1
-// RESULT: 1: I
\ No newline at end of file
+// RESULT: 1: I
+
+// FILE: lib/fileWithInternal.kt
+package fileWithInternal
+
+fun test() {
+ // Breakpoint
+ val a = fileWithInternal2.MyInternal()
+}
+
+// FILE: lib/fileWithInternal2.kt
+package fileWithInternal2
+
+internal class MyInternal
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.out
index 6719c130808..ce3ffabd181 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at fileWithInternal.kt:5
+LineBreakpoint created at fileWithInternal.kt:6
Run Java
Connected to the target VM
-fileWithInternal.kt:5
+fileWithInternal.kt:6
Compile bytecode for 1
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.kt
index c05f14cbd35..c4859e97cff 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.kt
@@ -1,3 +1,4 @@
+// FILE: inlineFunInMultiFilePackage.kt
package inlineFunInMultiFilePackage
fun main(args: Array) {
@@ -8,3 +9,9 @@ fun main(args: Array) {
// EXPRESSION: multiFilePackage.foo { 1 }
// RESULT: 1: I
+// FILE: multiFilePackage.kt
+@file:JvmMultifileClass
+@file:JvmName("NewName")
+package multiFilePackage
+
+inline fun foo(f: () -> Int) = f()
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.out
index e3b16a3d8ab..51a29743f4c 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at inlineFunInMultiFilePackage.kt:5
+LineBreakpoint created at inlineFunInMultiFilePackage.kt:6
Run Java
Connected to the target VM
-inlineFunInMultiFilePackage.kt:5
+inlineFunInMultiFilePackage.kt:6
Compile bytecode for multiFilePackage.foo { 1 }
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.kt
index d436f68ca20..ed69becdc67 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.kt
@@ -1,3 +1,4 @@
+// FILE: inlineFunction.kt
package inlineFunction
import inlineFunctionOtherPackage.*
@@ -13,4 +14,14 @@ inline fun foo() = 1
// RESULT: 1: I
// EXPRESSION: foo()
-// RESULT: 1: I
\ No newline at end of file
+// RESULT: 1: I
+
+// FILE: lib.kt
+package inlineFunctionOtherPackage
+
+inline fun myFun(f: () -> Int): Int = f()
+
+val String.prop: String
+ get() {
+ return "a"
+ }
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.out
index 6814059eaef..783076b57d1 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at inlineFunction.kt:7
+LineBreakpoint created at inlineFunction.kt:8
Run Java
Connected to the target VM
-inlineFunction.kt:7
+inlineFunction.kt:8
Compile bytecode for myFun { 1 }
Compile bytecode for foo()
Disconnected from the target VM
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.kt
index b7e14820c2e..3736f84a0bf 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.kt
@@ -1,3 +1,4 @@
+// FILE: test.kt
package inlineFunctionBreakpointAnotherFile
fun main(args: Array) {
@@ -10,4 +11,11 @@ fun main(args: Array) {
}
}
-// ADDITIONAL_BREAKPOINT: inlineFunctionWithBreakpoint.kt:inline fun myFun
\ No newline at end of file
+// ADDITIONAL_BREAKPOINT: inlineFunctionWithBreakpoint.kt:inline fun myFun
+
+// FILE: inlineFunctionWithBreakpoint.kt
+package inlineFunctionWithBreakpoint
+
+inline fun myFun(f: (Int) -> Unit) {
+ f(1)
+}
\ No newline at end of file
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.out
index c062e25fd8a..4f6361c5758 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.out
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.out
@@ -1,7 +1,7 @@
-LineBreakpoint created at inlineFunctionWithBreakpoint.kt:4
+LineBreakpoint created at inlineFunctionWithBreakpoint.kt:5
Run Java
Connected to the target VM
-inlineFunctionWithBreakpoint.kt:4
+inlineFunctionWithBreakpoint.kt:5
Disconnected from the target VM
Process finished with exit code 0
diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcBlock.kt b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcBlock.kt
index 7419cf1a626..59df845dddb 100644
--- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcBlock.kt
+++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcBlock.kt
@@ -1,3 +1,4 @@
+// FILE: jcBlock.kt
package jcBlock
fun main(args: Array) {
@@ -16,4 +17,20 @@ fun main(args: Array