Minor: Rename test class
This commit is contained in:
@@ -44,7 +44,7 @@ import org.jetbrains.kotlin.idea.AbstractSmartSelectionTest
|
||||
import org.jetbrains.kotlin.idea.actions.AbstractGotoTestOrCodeActionTest
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.AbstractIdeLightClassTest
|
||||
import org.jetbrains.kotlin.idea.codeInsight.*
|
||||
import org.jetbrains.kotlin.idea.codeInsight.generate.AbstractGenerateActionTest
|
||||
import org.jetbrains.kotlin.idea.codeInsight.generate.AbstractCodeInsightActionTest
|
||||
import org.jetbrains.kotlin.idea.codeInsight.generate.AbstractGenerateHashCodeAndEqualsActionTest
|
||||
import org.jetbrains.kotlin.idea.codeInsight.generate.AbstractGenerateTestSupportMethodActionTest
|
||||
import org.jetbrains.kotlin.idea.codeInsight.moveUpDown.AbstractCodeMoverTest
|
||||
@@ -746,7 +746,7 @@ fun main(args: Array<String>) {
|
||||
model("codeInsight/generate/equalsWithHashCode")
|
||||
}
|
||||
|
||||
testClass<AbstractGenerateActionTest>() {
|
||||
testClass<AbstractCodeInsightActionTest>() {
|
||||
model("codeInsight/generate/secondaryConstructors")
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import org.jetbrains.kotlin.test.InTextDirectivesUtils
|
||||
import org.jetbrains.kotlin.test.JetTestUtils
|
||||
import java.io.File
|
||||
|
||||
abstract class AbstractGenerateActionTest : JetLightCodeInsightFixtureTestCase() {
|
||||
abstract class AbstractCodeInsightActionTest : JetLightCodeInsightFixtureTestCase() {
|
||||
protected open fun createAction(fileText: String): CodeInsightAction {
|
||||
val actionClassName = InTextDirectivesUtils.findStringWithPrefixes(fileText, "// ACTION_CLASS: ")
|
||||
return Class.forName(actionClassName).newInstance() as CodeInsightAction
|
||||
+1
-1
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.idea.actions.generate.KotlinGenerateEqualsAndHashcod
|
||||
import org.jetbrains.kotlin.test.InTextDirectivesUtils
|
||||
import java.io.File
|
||||
|
||||
abstract class AbstractGenerateHashCodeAndEqualsActionTest : AbstractGenerateActionTest() {
|
||||
abstract class AbstractGenerateHashCodeAndEqualsActionTest : AbstractCodeInsightActionTest() {
|
||||
override fun createAction(fileText: String) = KotlinGenerateEqualsAndHashcodeAction()
|
||||
|
||||
override fun doTest(path: String) {
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ package org.jetbrains.kotlin.idea.codeInsight.generate
|
||||
import com.intellij.openapi.roots.ModuleRootManager
|
||||
import org.jetbrains.kotlin.idea.util.application.runWriteAction
|
||||
|
||||
abstract class AbstractGenerateTestSupportMethodActionTest : AbstractGenerateActionTest() {
|
||||
abstract class AbstractGenerateTestSupportMethodActionTest : AbstractCodeInsightActionTest() {
|
||||
private fun setUpTestSourceRoot() {
|
||||
val module = myModule
|
||||
val model = ModuleRootManager.getInstance(module).modifiableModel
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
|
||||
@TestMetadata("idea/testData/codeInsight/generate/secondaryConstructors")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class GenerateActionTestGenerated extends AbstractGenerateActionTest {
|
||||
public class CodeInsightActionTestGenerated extends AbstractCodeInsightActionTest {
|
||||
public void testAllFilesPresentInSecondaryConstructors() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/codeInsight/generate/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
Reference in New Issue
Block a user