diff --git a/testing/src/com/google/idea/testing/ServiceHelper.java b/testing/src/com/google/idea/testing/ServiceHelper.java index b458c7ce269..8bb285d1359 100644 --- a/testing/src/com/google/idea/testing/ServiceHelper.java +++ b/testing/src/com/google/idea/testing/ServiceHelper.java @@ -39,7 +39,7 @@ public static void registerExtensionPoint( ExtensionPointName name, Class clazz, Disposable parentDisposable) { ExtensionsArea area = Extensions.getRootArea(); String epName = name.getName(); - area.registerExtensionPoint(epName, clazz.getName()); + area.registerExtensionPoint(epName, clazz.getName(), ExtensionPoint.Kind.INTERFACE); Disposer.register(parentDisposable, () -> area.unregisterExtensionPoint(epName)); } diff --git a/testing/src/com/google/idea/testing/TestUtils.java b/testing/src/com/google/idea/testing/TestUtils.java index ace577899ac..c5fe99400bf 100644 --- a/testing/src/com/google/idea/testing/TestUtils.java +++ b/testing/src/com/google/idea/testing/TestUtils.java @@ -22,7 +22,6 @@ import com.intellij.openapi.Disposable; import com.intellij.openapi.application.Application; import com.intellij.openapi.application.ApplicationManager; -import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.fileTypes.FileTypeManager; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.vfs.encoding.EncodingManager; @@ -150,7 +149,6 @@ static void createMockApplication(Disposable parentDisposable) { } static MockProject mockProject(@Nullable PicoContainer container, Disposable parentDisposable) { - Extensions.registerAreaClass("IDEA_PROJECT", null); container = container != null ? container : new DefaultPicoContainer(); return new MockProject(container, parentDisposable); }