From 671d8853f754bf143ea8b6115e5b52dce28df126 Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Mon, 6 Aug 2018 17:01:55 +0300 Subject: [PATCH] [groovy] update test data after a2783ed2299266cbaa40c5ca95fdb8e0dd91279f --- .../plugins/groovy/lang/GroovyUnwrapTest.groovy | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyUnwrapTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyUnwrapTest.groovy index f04c4df4ff05..bd261721ef94 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyUnwrapTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyUnwrapTest.groovy @@ -16,9 +16,6 @@ package org.jetbrains.plugins.groovy.lang import com.intellij.codeInsight.unwrap.UnwrapHandler -import com.intellij.openapi.actionSystem.AnAction -import com.intellij.openapi.editor.Editor -import com.intellij.psi.PsiFile import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase /** @@ -28,17 +25,7 @@ class GroovyUnwrapTest extends LightCodeInsightFixtureTestCase { private void assertUnwrapped(String codeBefore, String expectedCodeAfter) { myFixture.configureByText("A.groovy", codeBefore) - - UnwrapHandler h = new UnwrapHandler() { - @Override - protected void selectOption(List options, Editor editor, PsiFile file) { - if (options.isEmpty()) return - options.get(0).actionPerformed(null) - } - } - - h.invoke(project, myFixture.editor, myFixture.file) - + new UnwrapHandler().invoke(project, myFixture.editor, myFixture.file) myFixture.checkResult(expectedCodeAfter) }