IG: merge 3 inspections into one "Call to suspicious String method" inspection

This commit is contained in:
Bas Leijdekkers
2016-10-29 20:50:06 +02:00
parent 024d0f5894
commit 1eebf487f3
17 changed files with 164 additions and 434 deletions
@@ -402,6 +402,15 @@ public class InspectionProfileTest extends LightIdeaTestCase {
"</profile>");
}
public void testMergedCallToSuspiciousStringMethodInspections() throws Exception {
checkMergedNoChanges("<profile version=\"1.0\">\n" +
" <option name=\"myName\" value=\"" + PROFILE + "\" />\n" +
" <inspection_tool class=\"StringCompareTo\" enabled=\"true\" level=\"WARNING\" enabled_by_default=\"true\" />\n" +
" <inspection_tool class=\"StringEquals\" enabled=\"true\" level=\"WARNING\" enabled_by_default=\"true\" />\n" +
" <inspection_tool class=\"StringEqualsIgnoreCase\" enabled=\"true\" level=\"WARNING\" enabled_by_default=\"true\" />\n" +
"</profile>" );
}
public void testMergedMisspelledInspections() throws Exception {
checkMergedNoChanges("<profile version=\"1.0\">\n" +
" <option name=\"myName\" value=\"" + PROFILE + "\" />\n" +