extension points register

This commit is contained in:
Anna Kozlova
2005-03-05 20:17:57 +03:00
parent 5729196cba
commit b78d3382ec
2 changed files with 3 additions and 6 deletions
@@ -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 {