mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix test data finding for jvm.java tests in community configuration
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ import static com.intellij.codeInspection.tests.JvmAnalysisTestsUastUtil.getUEle
|
||||
@TestDataPath("$CONTENT_ROOT/testData/codeInspection/nonNls")
|
||||
public class NonNlsUastUtilTest extends JavaCodeInsightFixtureTestCase {
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
protected String getTestDataPath() {
|
||||
return JvmAnalysisTestsUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + "/codeInspection/nonNls";
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -6,7 +6,9 @@ import com.intellij.testFramework.TestDataPath
|
||||
|
||||
@TestDataPath("/testData/codeInspection/scheduledForRemoval")
|
||||
class ScheduledForRemovalInspectionTest: ScheduledForRemovalInspectionTestBase() {
|
||||
override fun getBasePath() = "${TEST_DATA_PROJECT_RELATIVE_BASE_PATH}/codeInspection/scheduledForRemoval"
|
||||
override fun getBasePath() = ""
|
||||
|
||||
override fun getTestDataPath() = "${TEST_DATA_PROJECT_RELATIVE_BASE_PATH}/codeInspection/scheduledForRemoval"
|
||||
|
||||
fun testInspection() {
|
||||
getInspection().myIgnoreInsideImports = false
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import com.intellij.testFramework.TestDataPath;
|
||||
@TestDataPath("$CONTENT_ROOT/testData/codeInspection/toUpperWithoutLocale")
|
||||
public class StringToUpperWithoutLocaleInspectionTest extends StringToUpperWithoutLocaleInspectionTestBase {
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
protected String getTestDataPath() {
|
||||
return JvmAnalysisTestsUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + "/codeInspection/toUpperWithoutLocale";
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import com.intellij.testFramework.builders.JavaModuleFixtureBuilder;
|
||||
@TestDataPath("$CONTENT_ROOT/testData/codeInspection/uastCallMatcher")
|
||||
public class UastCallMatcherTest extends UastCallMatcherTestBase {
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
protected String getTestDataPath() {
|
||||
return JvmAnalysisTestsUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + "/codeInspection/uastCallMatcher";
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -7,7 +7,9 @@ import com.intellij.testFramework.TestDataPath
|
||||
|
||||
@TestDataPath("/testData/codeInspection/unstableApiUsage")
|
||||
class UnstableApiUsageInspectionTest : UnstableApiUsageInspectionTestBase() {
|
||||
override fun getBasePath() = "${TEST_DATA_PROJECT_RELATIVE_BASE_PATH}/codeInspection/unstableApiUsage"
|
||||
override fun getBasePath() = ""
|
||||
|
||||
override fun getTestDataPath() = "${TEST_DATA_PROJECT_RELATIVE_BASE_PATH}/codeInspection/unstableApiUsage"
|
||||
|
||||
fun testInspection() {
|
||||
getInspection().myIgnoreInsideImports = false
|
||||
|
||||
+4
-1
@@ -1,6 +1,9 @@
|
||||
// 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 com.intellij.jvm.analysis;
|
||||
|
||||
import com.intellij.openapi.application.ex.PathManagerEx;
|
||||
|
||||
public final class JvmAnalysisTestsUtil {
|
||||
public static final String TEST_DATA_PROJECT_RELATIVE_BASE_PATH = "/community/jvm/jvm-analysis-java-tests/testData";
|
||||
public static final String TEST_DATA_PROJECT_RELATIVE_BASE_PATH =
|
||||
PathManagerEx.getCommunityHomePath() + "/jvm/jvm-analysis-java-tests/testData";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user