Minor: Rename test class

This commit is contained in:
Alexey Sedunov
2015-10-15 16:25:03 +03:00
parent 6f5d977728
commit fc4b0a8121
5 changed files with 6 additions and 6 deletions
@@ -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")
}
}
@@ -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
@@ -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) {
@@ -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
@@ -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);
}