Fix test data path for EditorConfig refactoring and commenter tests

This commit is contained in:
Alexander.Kirsanov
2018-10-05 18:23:11 +03:00
parent a48b8cddf3
commit 8588b68a7f
2 changed files with 6 additions and 4 deletions
@@ -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()
@@ -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")