mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java: dedicated switch expressions test
make tests on preview features disconnected from language level to make them evolve easily GitOrigin-RevId: f87bbf684355bce7ae97711a0fc9b5861d58f775
This commit is contained in:
committed by
intellij-monorepo-bot
parent
594e81ebd7
commit
89fa4186d6
+3
-3
@@ -4,9 +4,9 @@ package com.intellij.java.codeInsight.daemon
|
||||
import com.intellij.JavaTestUtil
|
||||
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
|
||||
|
||||
class LightJava12HighlightingTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
class JavaSwitchExpressionsHighlightingTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
override fun getProjectDescriptor() = JAVA_12
|
||||
override fun getBasePath() = JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/daemonCodeAnalyzer/advHighlighting12"
|
||||
override fun getBasePath() = "${JavaTestUtil.getRelativeJavaTestDataPath()}/codeInsight/daemonCodeAnalyzer/switchExpressions"
|
||||
|
||||
fun testEnhancedSwitchStatements() = doTest()
|
||||
fun testSwitchExpressions() = doTest()
|
||||
@@ -19,7 +19,7 @@ class LightJava12HighlightingTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
fun testSwitchExpressionHasResult() = doTest()
|
||||
|
||||
private fun doTest() {
|
||||
myFixture.configureByFile(getTestName(false) + ".java")
|
||||
myFixture.configureByFile("${getTestName(false)}.java")
|
||||
myFixture.checkHighlighting()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user