extension points register

This commit is contained in:
Anna Kozlova
2005-03-05 20:51:29 +03:00
parent 15627c7b9e
commit 062301bd81
2 changed files with 1 additions and 9 deletions
@@ -71,7 +71,6 @@ 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;
}
@@ -92,10 +91,7 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider {
if (Extensions.getAllAreas().length < 2) {
Extensions.registerAreaClass("IDEA_PROJECT", null);
Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT");
}
if (!myRegisterExtensionPoints){
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
myRegisterExtensionPoints = true;
}
}
@@ -60,8 +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,10 +91,7 @@ public class LightIdeaTestCase extends TestCase implements DataProvider {
if (Extensions.getAllAreas().length < 2) {
Extensions.registerAreaClass("IDEA_PROJECT", null);
Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT");
}
if (!myRegisterExtensionPoints){
Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName());
myRegisterExtensionPoints = true;
}
cleanupApplicationCaches();
}