Tests: register jdk in project table to avoid leaking of VirtualPointer
This commit is contained in:
+7
-4
@@ -19,10 +19,7 @@ package org.jetbrains.kotlin.idea.decompiler.navigation
|
||||
import com.intellij.psi.PsiElement
|
||||
import junit.framework.TestCase
|
||||
import org.jetbrains.kotlin.idea.KotlinFileType
|
||||
import org.jetbrains.kotlin.idea.test.KotlinCodeInsightTestCase
|
||||
import org.jetbrains.kotlin.idea.test.ModuleKind
|
||||
import org.jetbrains.kotlin.idea.test.closeAndDeleteProject
|
||||
import org.jetbrains.kotlin.idea.test.configureAs
|
||||
import org.jetbrains.kotlin.idea.test.*
|
||||
|
||||
class NavigateToStdlibSourceTest : KotlinCodeInsightTestCase() {
|
||||
|
||||
@@ -49,6 +46,12 @@ class NavigateToStdlibSourceTest : KotlinCodeInsightTestCase() {
|
||||
TestCase.assertEquals(sourceFileName, navigationElement.containingFile.name)
|
||||
}
|
||||
|
||||
override fun setUp() {
|
||||
super.setUp()
|
||||
|
||||
PluginTestCaseBase.addJdk(testRootDisposable) { ProjectDescriptorWithStdlibSources.INSTANCE.sdk }
|
||||
}
|
||||
|
||||
override fun tearDown() {
|
||||
super.tearDown()
|
||||
// Workaround for IDEA's bug during tests.
|
||||
|
||||
Reference in New Issue
Block a user