mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
extension points register
This commit is contained in:
@@ -93,6 +93,7 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider {
|
||||
Extensions.registerAreaClass("IDEA_PROJECT", null);
|
||||
Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT");
|
||||
}
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
@@ -117,9 +118,6 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider {
|
||||
setUpProject();
|
||||
|
||||
DaemonCodeAnalyzerSettings.getInstance().setInspectionProfile(InspectionProfileImpl.EMPTY_PROFILE);
|
||||
if (Extensions.getRootArea().getExtensionPoint(ExtensionPoints.JUNIT_PATCHER) == null){
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
}
|
||||
}
|
||||
|
||||
protected void setUpProject() throws IOException {
|
||||
|
||||
@@ -92,6 +92,7 @@ public class LightIdeaTestCase extends TestCase implements DataProvider {
|
||||
Extensions.registerAreaClass("IDEA_PROJECT", null);
|
||||
Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT");
|
||||
}
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
cleanupApplicationCaches();
|
||||
}
|
||||
|
||||
@@ -191,9 +192,7 @@ public class LightIdeaTestCase extends TestCase implements DataProvider {
|
||||
assertFalse(getPsiManager().isDisposed());
|
||||
|
||||
CodeStyleSettingsManager.getInstance(getProject()).setTemporarySettings(new CodeStyleSettings());
|
||||
if (Extensions.getRootArea().getExtensionPoint(ExtensionPoints.JUNIT_PATCHER) == null){
|
||||
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user