[AA] Refactoring: Provide default implementations for functions of AnalysisApiTestServiceRegistrar

- Most inheritors of `AnalysisApiTestServiceRegistrar` only need to
  override one or two functions.
This commit is contained in:
Marco Pennekamp
2023-11-10 19:14:57 +01:00
committed by Space Team
parent df43226a08
commit 6189d68c3c
9 changed files with 10 additions and 78 deletions
@@ -10,11 +10,11 @@ import com.intellij.mock.MockProject
import org.jetbrains.kotlin.test.services.TestServices
abstract class AnalysisApiTestServiceRegistrar {
abstract fun registerApplicationServices(application: MockApplication, testServices: TestServices)
open fun registerApplicationServices(application: MockApplication, testServices: TestServices) {}
abstract fun registerProjectExtensionPoints(project: MockProject, testServices: TestServices)
open fun registerProjectExtensionPoints(project: MockProject, testServices: TestServices) {}
abstract fun registerProjectServices(project: MockProject, testServices: TestServices)
open fun registerProjectServices(project: MockProject, testServices: TestServices) {}
abstract fun registerProjectModelServices(project: MockProject, testServices: TestServices)
}
open fun registerProjectModelServices(project: MockProject, testServices: TestServices) {}
}