mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
IJ-CR-145121 [java-inspections] IDEA-357009 new option to configure custom classes for IncorrectMessageFormatInspection
- fix table for `IncorrectMessageFormatInspection` GitOrigin-RevId: 272d89fafaac63517e990b1d2808ec54d4c58e69
This commit is contained in:
committed by
intellij-monorepo-bot
parent
acbd648c20
commit
9eb0e15e2c
@@ -4,6 +4,7 @@ package com.siyeh.ig.bugs;
|
||||
import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
|
||||
import com.siyeh.ig.LightJavaInspectionTestCase;
|
||||
import com.siyeh.ig.psiutils.MethodMatcher;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
@@ -22,8 +23,10 @@ public class IncorrectMessageFormatInspectionTest extends LightJavaCodeInsightFi
|
||||
|
||||
private void doTest(List<String> classes, List<String> methods) {
|
||||
IncorrectMessageFormatInspection inspection = new IncorrectMessageFormatInspection();
|
||||
inspection.customClasses.addAll(classes);
|
||||
inspection.customMethods.addAll(methods);
|
||||
MethodMatcher matcher = inspection.myMethodMatcher;
|
||||
for (int i = 0; i < classes.size(); i++) {
|
||||
matcher.add(classes.get(i), methods.get(i));
|
||||
}
|
||||
myFixture.enableInspections(inspection);
|
||||
myFixture.testHighlighting(getTestName(false) + ".java");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user