mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
45 lines
1.7 KiB
Java
45 lines
1.7 KiB
Java
|
|
package com.intellij.codeInsight.daemon.quickFix;
|
|
|
|
import com.intellij.codeInspection.LocalInspectionTool;
|
|
import com.intellij.codeInspection.accessStaticViaInstance.AccessStaticViaInstance;
|
|
import com.intellij.codeInspection.deprecation.DeprecationInspection;
|
|
import com.intellij.codeInspection.ex.GlobalInspectionToolWrapper;
|
|
import com.intellij.codeInspection.javaDoc.JavaDocReferenceInspection;
|
|
import com.intellij.codeInspection.sillyAssignment.SillyAssignmentInspection;
|
|
import com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection;
|
|
import com.intellij.codeInspection.unneededThrows.RedundantThrowsDeclaration;
|
|
import com.intellij.codeInspection.unusedParameters.UnusedParametersInspection;
|
|
import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
|
import com.intellij.openapi.projectRoots.Sdk;
|
|
import com.intellij.openapi.projectRoots.impl.JavaSdkImpl;
|
|
|
|
|
|
public class Suppress15InspectionsTest extends LightQuickFixTestCase {
|
|
@Override
|
|
protected void setUp() throws Exception {
|
|
super.setUp();
|
|
enableInspectionTool(new GlobalInspectionToolWrapper(new UnusedParametersInspection()));
|
|
}
|
|
|
|
@Override
|
|
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
|
return new LocalInspectionTool[]{
|
|
new RedundantThrowsDeclaration(),
|
|
new SillyAssignmentInspection(),
|
|
new AccessStaticViaInstance(),
|
|
new DeprecationInspection(),
|
|
new JavaDocReferenceInspection(),
|
|
new UnusedSymbolLocalInspection(),
|
|
new UncheckedWarningLocalInspection()
|
|
};
|
|
}
|
|
|
|
public void test() throws Exception { doAllTests(); }
|
|
|
|
@Override
|
|
protected String getBasePath() {
|
|
return "/codeInsight/daemonCodeAnalyzer/quickFix/suppress15Inspections";
|
|
}
|
|
|
|
} |