[Test] Add ability to configure access to application disposable in test configuration
This is needed to unbound CompilerConfigurationProvider from ApplicationEnvironmentDisposer, which depends on classes from JUnit 5. This will allow to safely use compiler test framework with base test framework different from JUnit 5
This commit is contained in:
committed by
teamcity
parent
2f3ad476be
commit
400ad6a01e
+14
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.test.services
|
||||
|
||||
import com.intellij.openapi.Disposable
|
||||
|
||||
abstract class ApplicationDisposableProvider : TestService {
|
||||
abstract fun getApplicationRootDisposable(): Disposable
|
||||
}
|
||||
|
||||
val TestServices.applicationDisposableProvider: ApplicationDisposableProvider by TestServices.testServiceAccessor()
|
||||
Reference in New Issue
Block a user