From 7a2fc4301bd064ea52b478188e5039715c90dc7d Mon Sep 17 00:00:00 2001 From: Nicolay Mitropolsky Date: Fri, 6 Apr 2018 20:36:13 +0300 Subject: [PATCH] 182: CommonIntentionActionsTest updated to new `ExpectedParameter` --- .../idea/quickfix/CommonIntentionActionsTest.kt.182 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/quickfix/CommonIntentionActionsTest.kt.182 b/idea/tests/org/jetbrains/kotlin/idea/quickfix/CommonIntentionActionsTest.kt.182 index 4fd39aa844b..0cccd1fdcc7 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/quickfix/CommonIntentionActionsTest.kt.182 +++ b/idea/tests/org/jetbrains/kotlin/idea/quickfix/CommonIntentionActionsTest.kt.182 @@ -44,9 +44,11 @@ class CommonIntentionActionsTest : LightPlatformCodeInsightFixtureTestCase() { private val modifiers: Collection = emptyList(), private val returnType: ExpectedTypes = emptyList(), private val annotations: Collection = emptyList(), - private val parameters: List>> = emptyList(), + parameters: List = emptyList(), private val targetSubstitutor: JvmSubstitutor = PsiJvmSubstitutor(project, PsiSubstitutor.EMPTY) ) : CreateMethodRequest { + private val expectedParameters = parameters + override fun getTargetSubstitutor(): JvmSubstitutor = targetSubstitutor override fun getModifiers() = modifiers @@ -55,7 +57,7 @@ class CommonIntentionActionsTest : LightPlatformCodeInsightFixtureTestCase() { override fun getAnnotations() = annotations - override fun getParameters() = parameters + override fun getExpectedParameters(): List = expectedParameters override fun getReturnType() = returnType @@ -442,7 +444,7 @@ class CommonIntentionActionsTest : LightPlatformCodeInsightFixtureTestCase() { private fun expectedTypes(vararg psiTypes: PsiType) = psiTypes.map { expectedType(it) } private fun expectedParams(vararg psyTypes: PsiType) = - psyTypes.mapIndexed { index, psiType -> NameInfo("param$index") to expectedTypes(psiType) } + psyTypes.mapIndexed { index, psiType -> expectedParameter(expectedTypes(psiType), "param$index") } private inline fun CodeInsightTestFixture.atCaret() = elementAtCaret.toUElement() as T