Inspections - pass onTheFly into ProblemDescriptors & use it to create LAZY refs in batch run.

This commit is contained in:
Alexey Gopachenko
2009-11-10 23:35:38 +03:00
parent 16d8aa04f8
commit ab3982079d
68 changed files with 420 additions and 370 deletions
@@ -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";
}
}
}