Refactor debugger tests

1. Move tests to their own module
2. Avoid sharing the 'tinyApp' project between tests
3. Clean up option directive handling
This commit is contained in:
Yan Zhulanow
2019-06-26 22:41:56 +09:00
parent d8d81c51d7
commit 472ec72eb9
288 changed files with 4861 additions and 3910 deletions
@@ -1,3 +1,4 @@
// FILE: samAdapter.kt
package samAdapter
fun main(args: Array<String>) {
@@ -10,4 +11,22 @@ fun runReadAction(action: () -> Int): Int {
return forTests.MyJavaClass.runReadAction<Int>(action)
}
// STEP_INTO: 8
// STEP_INTO: 8
// FILE: forTests/MyJavaClass.java
package forTests;
import org.jetbrains.annotations.NotNull;
public class MyJavaClass {
public static <T> T runReadAction(@NotNull Computable<T> computation) {
return computation.compute();
}
}
// FILE: forTests/Computable.java
package forTests;
public interface Computable <T> {
T compute();
}