extension points register

This commit is contained in:
Anna Kozlova
2005-03-05 20:33:59 +03:00
parent 74aa886d35
commit 15627c7b9e
2 changed files with 10 additions and 3 deletions
@@ -71,7 +71,7 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider {
public static final long DEFAULT_TEST_TIME = 300L;
public static long ourTestTime = DEFAULT_TEST_TIME;
private static final MyThreadGroup MY_THREAD_GROUP = new MyThreadGroup();
private static boolean myRegisterExtensionPoints = false;
protected long getTimeRequired() {
return DEFAULT_TEST_TIME;
}
@@ -93,7 +93,10 @@ 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());
if (!myRegisterExtensionPoints){
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
myRegisterExtensionPoints = true;
}
}
protected void setUp() throws Exception {
@@ -60,6 +60,7 @@ public class LightIdeaTestCase extends TestCase implements DataProvider {
private static TestCase ourTestCase = null;
public static Thread ourTestThread;
private String oldCodeStyleSettings;
private static boolean myRegisterExtensionPoints;
/**
* @return Project to be used in tests for example for project components retrieval.
@@ -92,7 +93,10 @@ 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());
if (!myRegisterExtensionPoints){
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
myRegisterExtensionPoints = true;
}
cleanupApplicationCaches();
}