[2021.1 compat] adapt call to ExtensionsArea#registerExtensionPoint
ExtensionsArea#registerExtensionPoint(String, String) has been changed to private. Use  ExtensionsArea#registerExtensionPoint(String, String, Kind.INTERFACE) to mirror old behavior.
@@ -19,6 +19,7 @@ import com.intellij.mock.MockComponentManager;
import com.intellij.mock.MockProject;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
+import com.intellij.openapi.extensions.ExtensionPoint.Kind;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.extensions.Extensions;
import com.intellij.openapi.extensions.impl.ExtensionPointImpl;
@@ -47,7 +48,7 @@ public class BlazeTestCase {
if (SystemInfo.isWindows) {
return new Statement() {
@Override
- public void evaluate() throws Throwable {
+ public void evaluate() {
System.out.println(
"Test \""
+ description.getDisplayName()
@@ -115,7 +116,7 @@ public class BlazeTestCase {
protected <T> ExtensionPointImpl<T> registerExtensionPoint(
ExtensionPointName<T> name, Class<T> type) {
- extensionsArea.registerExtensionPoint(name.getName(), type.getName());
+ extensionsArea.registerExtensionPoint(name.getName(), type.getName(), Kind.INTERFACE);
return extensionsArea.getExtensionPoint(name.getName());
}
}
