From 8588b68a7f734c68d1121fbb111521847e1312d6 Mon Sep 17 00:00:00 2001 From: "Alexander.Kirsanov" Date: Fri, 5 Oct 2018 17:39:59 +0300 Subject: [PATCH] Fix test data path for EditorConfig refactoring and commenter tests --- .../org/editorconfig/language/EditorConfigCommenterTest.kt | 5 +++-- .../language/codeinsight/EditorConfigRefactoringTest.kt | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt b/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt index b18c6c3cd9f3..b8dd50d1fca7 100644 --- a/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt +++ b/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt @@ -2,11 +2,12 @@ package org.editorconfig.language import com.intellij.codeInsight.generation.actions.CommentByLineCommentAction +import com.intellij.openapi.application.ex.PathManagerEx import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase class EditorConfigCommenterTest : LightPlatformCodeInsightFixtureTestCase() { - override fun getBasePath() = - "/plugins/editorconfig/testSrc/org/editorconfig/language/commenter/" + override fun getTestDataPath() = + "${PathManagerEx.getCommunityHomePath()}/plugins/editorconfig/testSrc/org/editorconfig/language/commenter/" fun testComment() = doTest() fun testUncomment() = doTest() diff --git a/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt b/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt index 4bd9e82be06f..a84ee13eaaab 100644 --- a/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt +++ b/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt @@ -1,13 +1,14 @@ // 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. package org.editorconfig.language.codeinsight +import com.intellij.openapi.application.ex.PathManagerEx import com.intellij.testFramework.fixtures.CodeInsightTestUtil import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase import org.editorconfig.language.codeinsight.refactoring.EditorConfigRenameHandler class EditorConfigRefactoringTest : LightPlatformCodeInsightFixtureTestCase() { - override fun getBasePath() = - "/plugins/editorconfig/testSrc/org/editorconfig/language/codeinsight/refactoring/" + override fun getTestDataPath() = + "${PathManagerEx.getCommunityHomePath()}/plugins/editorconfig/testSrc/org/editorconfig/language/codeinsight/refactoring/" fun testRenameDeclarations() = doInplaceTest("my_rule") fun testRenameReferenceAndDeclarations() = doInplaceTest("my_symbols")