diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java index d41f790a6c3..907ea90e66a 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java @@ -6,11 +6,12 @@ package org.jetbrains.kotlin.codegen.debugInformation; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; import org.junit.runner.RunWith; +import org.junit.runners.BlockJUnit4ClassRunner; +import org.junit.Test; import java.io.File; import java.util.regex.Pattern; @@ -19,41 +20,48 @@ import java.util.regex.Pattern; @SuppressWarnings("all") @TestMetadata("compiler/testData/debug/stepping") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) +@RunWith(BlockJUnit4ClassRunner.class) public class IrSteppingTestGenerated extends AbstractIrSteppingTest { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); } + @Test public void testAllFilesPresentInStepping() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/debug/stepping"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true); } + @Test @TestMetadata("conjunction.kt") public void testConjunction() throws Exception { runTest("compiler/testData/debug/stepping/conjunction.kt"); } + @Test @TestMetadata("functionInAnotherFile.kt") public void testFunctionInAnotherFile() throws Exception { runTest("compiler/testData/debug/stepping/functionInAnotherFile.kt"); } + @Test @TestMetadata("if.kt") public void testIf() throws Exception { runTest("compiler/testData/debug/stepping/if.kt"); } + @Test @TestMetadata("IfTrueThenFalse.kt") public void testIfTrueThenFalse() throws Exception { runTest("compiler/testData/debug/stepping/IfTrueThenFalse.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/debug/stepping/recursion.kt"); } + @Test @TestMetadata("throwException.kt") public void testThrowException() throws Exception { runTest("compiler/testData/debug/stepping/throwException.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java index aa5d81a57d6..71d5a5064fa 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java @@ -6,11 +6,12 @@ package org.jetbrains.kotlin.codegen.debugInformation; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; import org.junit.runner.RunWith; +import org.junit.runners.BlockJUnit4ClassRunner; +import org.junit.Test; import java.io.File; import java.util.regex.Pattern; @@ -19,41 +20,48 @@ import java.util.regex.Pattern; @SuppressWarnings("all") @TestMetadata("compiler/testData/debug/stepping") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) +@RunWith(BlockJUnit4ClassRunner.class) public class SteppingTestGenerated extends AbstractSteppingTest { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } + @Test public void testAllFilesPresentInStepping() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/debug/stepping"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @Test @TestMetadata("conjunction.kt") public void testConjunction() throws Exception { runTest("compiler/testData/debug/stepping/conjunction.kt"); } + @Test @TestMetadata("functionInAnotherFile.kt") public void testFunctionInAnotherFile() throws Exception { runTest("compiler/testData/debug/stepping/functionInAnotherFile.kt"); } + @Test @TestMetadata("if.kt") public void testIf() throws Exception { runTest("compiler/testData/debug/stepping/if.kt"); } + @Test @TestMetadata("IfTrueThenFalse.kt") public void testIfTrueThenFalse() throws Exception { runTest("compiler/testData/debug/stepping/IfTrueThenFalse.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/debug/stepping/recursion.kt"); } + @Test @TestMetadata("throwException.kt") public void testThrowException() throws Exception { runTest("compiler/testData/debug/stepping/throwException.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt index 653e854ad5a..1792d16e25e 100644 --- a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt +++ b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt @@ -344,7 +344,7 @@ fun main(args: Array) { model("lineNumber") } - testClass { + testClass(useJunit4 = true) { model("debug/stepping", targetBackend = TargetBackend.JVM) } @@ -425,7 +425,7 @@ fun main(args: Array) { model("lineNumber", targetBackend = TargetBackend.JVM_IR) } - testClass { + testClass(useJunit4 = true) { model("debug/stepping", targetBackend = TargetBackend.JVM_IR) }