mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix YAML testdata location
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.jetbrains.yaml.lexer;
|
||||
|
||||
import com.intellij.lexer.Lexer;
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.testFramework.LexerTestCase;
|
||||
|
||||
public class YAMLLexerTest extends LexerTestCase {
|
||||
@@ -11,7 +12,7 @@ public class YAMLLexerTest extends LexerTestCase {
|
||||
|
||||
@Override
|
||||
protected String getDirPath() {
|
||||
return "plugins/yaml/testSrc/org/jetbrains/yaml/lexer/data";
|
||||
return PluginPathManager.getPluginHomePathRelative("yaml") + "/testSrc/org/jetbrains/yaml/lexer/data";
|
||||
}
|
||||
|
||||
public void test2docs() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.jetbrains.yaml.parser;
|
||||
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.testFramework.ParsingTestCase;
|
||||
import org.jetbrains.yaml.YAMLParserDefinition;
|
||||
|
||||
@@ -16,7 +16,7 @@ public class YAMLParserTest extends ParsingTestCase {
|
||||
}
|
||||
|
||||
protected String getTestDataPath() {
|
||||
return PathManager.getHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/parser/data/";
|
||||
return PluginPathManager.getPluginHomePath("yaml") + "/testSrc/org/jetbrains/yaml/parser/data/";
|
||||
}
|
||||
|
||||
public void test2docs() throws Throwable {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.jetbrains.yaml.psi;
|
||||
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
|
||||
@@ -9,7 +9,7 @@ import org.jetbrains.yaml.YAMLParserDefinition;
|
||||
public class YAMLScalarContentTest extends LightPlatformCodeInsightFixtureTestCase {
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return PathManager.getHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/psi/data/";
|
||||
return PluginPathManager.getPluginHomePath("yaml") + "/testSrc/org/jetbrains/yaml/psi/data/";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package org.jetbrains.yaml.psiModification;
|
||||
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
@@ -14,7 +14,7 @@ import org.jetbrains.yaml.psi.YAMLMapping;
|
||||
public class YAMLMappingModificationTest extends LightPlatformCodeInsightFixtureTestCase {
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return PathManager.getHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/data/";
|
||||
return PluginPathManager.getPluginHomePath("yaml") + "/testSrc/org/jetbrains/yaml/psiModification/data/";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user