extension points register

This commit is contained in:
Anna Kozlova
2005-03-05 20:00:18 +03:00
parent 6936423154
commit 3e9857f93c
2 changed files with 6 additions and 2 deletions
@@ -117,7 +117,9 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider {
setUpProject();
DaemonCodeAnalyzerSettings.getInstance().setInspectionProfile(InspectionProfileImpl.EMPTY_PROFILE);
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
if (Extensions.getRootArea().getExtensionPoint(ExtensionPoints.JUNIT_PATCHER) == null){
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
}
}
protected void setUpProject() throws IOException {
@@ -191,7 +191,9 @@ public class LightIdeaTestCase extends TestCase implements DataProvider {
assertFalse(getPsiManager().isDisposed());
CodeStyleSettingsManager.getInstance(getProject()).setTemporarySettings(new CodeStyleSettings());
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
if (Extensions.getRootArea().getExtensionPoint(ExtensionPoints.JUNIT_PATCHER) == null){
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
}
}
protected void tearDown() throws Exception {