017fb3ff5e97997e6d2bee11d31e8b7d0182d47f
[idea/community.git] / plugins / InspectionGadgets / testsrc / com / IGInspectionTestCase.java
1 package com;
2
3 import com.intellij.codeInspection.LocalInspectionTool;
4 import com.intellij.codeInspection.ex.LocalInspectionToolWrapper;
5 import com.intellij.openapi.application.PluginPathManager;
6 import com.intellij.testFramework.InspectionTestCase;
7 import org.jetbrains.annotations.NonNls;
8
9 /**
10  * @author Alexey
11  */
12 public abstract class IGInspectionTestCase extends InspectionTestCase {
13   protected String getTestDataPath() {
14       return PluginPathManager.getPluginHomePath("InspectionGadgets") + "/test";
15   }
16
17   public void doTest(@NonNls final String folderName, final LocalInspectionTool tool) throws Exception {
18     super.doTest(folderName, new LocalInspectionToolWrapper(tool), "java 1.5");
19   }
20 }