mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] update test data after a2783ed229
This commit is contained in:
@@ -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<AnAction> 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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user