Clean project in uast tests
This commit is contained in:
+2
-2
@@ -36,7 +36,8 @@ abstract class AbstractTestWithCoreEnvironment : TestCase() {
|
|||||||
protected val environment: AbstractCoreEnvironment
|
protected val environment: AbstractCoreEnvironment
|
||||||
get() = myEnvironment!!
|
get() = myEnvironment!!
|
||||||
|
|
||||||
protected lateinit var project: MockProject
|
protected val project: MockProject
|
||||||
|
get() = environment.project
|
||||||
|
|
||||||
protected val uastContext: UastContext by lazy {
|
protected val uastContext: UastContext by lazy {
|
||||||
ServiceManager.getService(project, UastContext::class.java)
|
ServiceManager.getService(project, UastContext::class.java)
|
||||||
@@ -57,7 +58,6 @@ abstract class AbstractTestWithCoreEnvironment : TestCase() {
|
|||||||
error("Environment is already initialized")
|
error("Environment is already initialized")
|
||||||
}
|
}
|
||||||
myEnvironment = createEnvironment(source)
|
myEnvironment = createEnvironment(source)
|
||||||
project = environment.project
|
|
||||||
|
|
||||||
CoreApplicationEnvironment.registerExtensionPoint(
|
CoreApplicationEnvironment.registerExtensionPoint(
|
||||||
Extensions.getRootArea(),
|
Extensions.getRootArea(),
|
||||||
|
|||||||
Reference in New Issue
Block a user