mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test for missing inspection mappings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user