test for missing inspection mappings

This commit is contained in:
Dmitry Avdeev
2012-09-14 16:08:59 +04:00
parent c279beab1e
commit 1310d1a353
2 changed files with 1 additions and 7 deletions
@@ -268,7 +268,7 @@ public class InspectionProfileTest extends LightIdeaTestCase {
for (ScopeToolState tool : tools) {
InspectionProfileEntry entry = tool.getTool();
assertTrue(entry instanceof InspectionToolWrapper);
if (entry.isInitialized() && ((InspectionToolWrapper)entry).hasXmlMapping()) {
if (entry.isInitialized()) {
i++;
}
}
@@ -27,7 +27,6 @@ import com.intellij.openapi.util.WriteExternalException;
import org.jdom.Element;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;
import javax.swing.*;
import java.net.URL;
@@ -194,11 +193,6 @@ public abstract class InspectionToolWrapper<T extends InspectionProfileEntry, E
return getTool().getMainToolId();
}
@TestOnly
public boolean hasXmlMapping() {
return myEP != null;
}
public E getExtension() {
return myEP;
}