diff options
Diffstat (limited to 'jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/ScheduledForRemovalInspectionTest.kt')
-rw-r--r-- | jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/ScheduledForRemovalInspectionTest.kt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/ScheduledForRemovalInspectionTest.kt b/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/ScheduledForRemovalInspectionTest.kt new file mode 100644 index 00000000..f79b9009 --- /dev/null +++ b/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/ScheduledForRemovalInspectionTest.kt @@ -0,0 +1,22 @@ +package com.intellij.codeInspection.tests.java + +import com.intellij.codeInspection.tests.ScheduledForRemovalInspectionTestBase +import com.intellij.jvm.analysis.JvmAnalysisTestsUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH +import com.intellij.testFramework.TestDataPath + +@TestDataPath("/testData/codeInspection/scheduledForRemoval") +class ScheduledForRemovalInspectionTest: ScheduledForRemovalInspectionTestBase() { + override fun getBasePath() = "" + + override fun getTestDataPath() = "${TEST_DATA_PROJECT_RELATIVE_BASE_PATH}/codeInspection/scheduledForRemoval" + + fun testInspection() { + getInspection().myIgnoreInsideImports = false + myFixture.testHighlighting(true, false, false, "ScheduledForRemovalElementsTest.java") + } + + fun testIgnoreImports() { + getInspection().myIgnoreInsideImports = true + myFixture.testHighlighting(true, false, false, "ScheduledForRemovalElementsIgnoreImportsTest.java") + } +}
\ No newline at end of file |