mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJ-CR-150882 [java-highlighting] IDEA-363617 Support JEP 494: Module Import Declarations (Second Preview)
- more test (cherry picked from commit fe1c623b3fe230a286f80d8a7cb7e5657b6d9493) GitOrigin-RevId: 3c9db7f48713634c4ad9065c47ffa074cffd8d99
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8f91e59c51
commit
a7d49a4b2f
+11
-1
@@ -62,7 +62,7 @@ class LightJava11HighlightingTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
myFixture.checkHighlighting()
|
||||
}
|
||||
|
||||
fun testRequiresTransitiveJavaBase() {
|
||||
fun testRequiresTransitiveJavaBaseWithStatic() {
|
||||
IdeaTestUtil.withLevel(module, JavaFeature.TRANSITIVE_DEPENDENCY_ON_JAVA_BASE.minimumLevel){
|
||||
myFixture.configureByText("module-info.java", """
|
||||
module M {
|
||||
@@ -72,6 +72,16 @@ class LightJava11HighlightingTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
}
|
||||
}
|
||||
|
||||
fun testRequiresTransitiveJavaBase() {
|
||||
IdeaTestUtil.withLevel(module, JavaFeature.TRANSITIVE_DEPENDENCY_ON_JAVA_BASE.minimumLevel){
|
||||
myFixture.configureByText("module-info.java", """
|
||||
module M {
|
||||
requires transitive java.base;
|
||||
}""".trimIndent())
|
||||
myFixture.checkHighlighting()
|
||||
}
|
||||
}
|
||||
|
||||
private fun doTest() {
|
||||
myFixture.configureByFile(getTestName(false) + ".java")
|
||||
myFixture.checkHighlighting()
|
||||
|
||||
Reference in New Issue
Block a user