test code should use regular API to load project and not a custom one — migrate createProjectAndUseInLoadComponentStateMode

ProjectRule — dispose project after each test class, do not reuse for all tests
setPath — use Path to have a more strict code (system dependent vs independent paths) and ability to use in-memory fs in tests

GitOrigin-RevId: 121bef6a82321422b2f099c6a0ea10b951f811cb
This commit is contained in:
Vladimir Krivosheev
2020-06-19 15:35:06 +02:00
committed by intellij-monorepo-bot
parent e92c406f07
commit d8d7c53544
47 changed files with 892 additions and 906 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.impl
import com.intellij.execution.actions.ChooseRunConfigurationPopup
@@ -41,7 +41,7 @@ internal class RunConfigurableTest {
companion object {
@JvmField
@ClassRule
val projectRule = ProjectRule()
val projectRule = ProjectRule(runPostStartUpActivities = false)
private fun createRunManager(element: Element): RunManagerImpl {
val runManager = RunManagerImpl(projectRule.project)