mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Inspections - pass onTheFly into ProblemDescriptors & use it to create LAZY refs in batch run.
This commit is contained in:
+2
-2
@@ -28,7 +28,7 @@ public class InlineSameParameterValueTest extends LightQuickFixTestCase {
|
||||
final PsiElement psiElement = getFile().findElementAt(offset);
|
||||
assert psiElement != null;
|
||||
final ProblemDescriptor descriptor = InspectionManager.getInstance(getProject())
|
||||
.createProblemDescriptor(psiElement, "", fix, ProblemHighlightType.GENERIC_ERROR_OR_WARNING);
|
||||
.createProblemDescriptor(psiElement, "", fix, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, true);
|
||||
fix.applyFix(getProject(), descriptor);
|
||||
final String expectedFilePath = getBasePath() + "/after" + testName;
|
||||
checkResultByFile("In file :" + expectedFilePath, expectedFilePath, false);
|
||||
@@ -39,4 +39,4 @@ public class InlineSameParameterValueTest extends LightQuickFixTestCase {
|
||||
protected String getBasePath() {
|
||||
return "/quickFix/SameParameterValue";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user