mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check stub wellformedness after intention invocation in tests
This commit is contained in:
+4
@@ -30,6 +30,7 @@ import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.util.PsiUtil;
|
||||
import com.intellij.testFramework.LightPlatformCodeInsightTestCase;
|
||||
import com.intellij.testFramework.LightPlatformTestCase;
|
||||
import com.intellij.testFramework.PsiTestUtil;
|
||||
import com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import com.intellij.util.ObjectUtils;
|
||||
@@ -115,6 +116,9 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
|
||||
fail("Action '" + text + "' is still available after its invocation in test " + testFullPath);
|
||||
}
|
||||
}
|
||||
|
||||
PsiTestUtil.checkStubsMatchText(quickFix.getFile());
|
||||
|
||||
String expectedFilePath = ObjectUtils.notNull(quickFix.getBasePath(), "") + "/" + AFTER_PREFIX + testName;
|
||||
quickFix.checkResultByFile("In file :" + expectedFilePath, expectedFilePath, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user