|
|
|
@ -14,7 +14,6 @@ import org.junit.Test
|
|
|
|
|
import org.junit.runner.RunWith |
|
|
|
|
import org.junit.runners.JUnit4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RunWith(JUnit4::class) |
|
|
|
|
class GetRootElementTest : LightJavaCodeInsightFixtureTestCase() { |
|
|
|
|
|
|
|
|
@ -39,7 +38,6 @@ class GetRootElementTest : LightJavaCodeInsightFixtureTestCase() {
|
|
|
|
|
TestCase.assertEquals(property, getRootElement(ktNameReferenceExpression)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
fun `when a name reference expression is selected, with a call expression as root, call expression should be returned`() { |
|
|
|
|
val ktPsiFactory = KtPsiFactory(project) |
|
|
|
@ -73,7 +71,6 @@ class GetRootElementTest : LightJavaCodeInsightFixtureTestCase() {
|
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
fun `when an argument list element is selected, with a call expression as root, call expression should be returned`() { |
|
|
|
|
val ktPsiFactory = KtPsiFactory(project) |
|
|
|
@ -109,7 +106,6 @@ class GetRootElementTest : LightJavaCodeInsightFixtureTestCase() {
|
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
fun `when a name reference expression is selected, with a delegated property as root, property should be returned`() { |
|
|
|
|
val ktPsiFactory = KtPsiFactory(project) |
|
|
|
@ -174,7 +170,6 @@ class GetRootElementTest : LightJavaCodeInsightFixtureTestCase() {
|
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
fun `when a name reference expression is selected, with a property and dot qualified expression as root, property should be returned`() { |
|
|
|
|
val ktPsiFactory = KtPsiFactory(project) |
|
|
|
@ -212,5 +207,4 @@ class GetRootElementTest : LightJavaCodeInsightFixtureTestCase() {
|
|
|
|
|
getRootElement(referenceExpression) |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|