Fix ConfigureKotlinInTempDirTest.testKotlinSdkAdded

This commit is contained in:
Natalia Selezneva
2018-02-20 13:01:33 +03:00
parent b831b8ab92
commit e3c58eced1
@@ -31,6 +31,7 @@ import com.intellij.testFramework.PlatformTestCase
import com.intellij.testFramework.UsefulTestCase
import junit.framework.TestCase
import org.jetbrains.kotlin.idea.configuration.KotlinWithLibraryConfigurator.FileState
import org.jetbrains.kotlin.idea.framework.KotlinSdkType
import org.jetbrains.kotlin.idea.test.PluginTestCaseBase
import org.jetbrains.kotlin.utils.PathUtil
import java.io.File
@@ -68,6 +69,8 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() {
override fun initApplication() {
super.initApplication()
KotlinSdkType.setUpIfNeeded()
ApplicationManager.getApplication().runWriteAction {
ProjectJdkTable.getInstance().addJdk(PluginTestCaseBase.mockJdk6())
ProjectJdkTable.getInstance().addJdk(PluginTestCaseBase.mockJdk8())