[jvm] Add malformed nested preview test

GitOrigin-RevId: 1e05ab627c7b4ed09152b8d96b511ae757c33ff2
This commit is contained in:
Bart van Helvert
2022-10-11 11:44:54 +02:00
committed by intellij-monorepo-bot
parent 9c33a87074
commit 3b8c459757

View File

@@ -72,6 +72,20 @@ class JavaJUnitMalformedDeclarationInspectionTest : JUnitMalformedDeclarationIns
}
""".trimIndent(), "Fix class signature")
}
fun `test malformed nested class preview`() {
myFixture.testPreview(ULanguage.JAVA, """
class A {
@org.junit.jupiter.api.Nested
static class <caret>B { }
}
""".trimIndent(), """
class A {
@org.junit.jupiter.api.Nested
class B { }
}
""".trimIndent(), "Fix 'B' class signature")
}
/* Malformed parameterized */