[Java. Code completion] IDEA-379113 refactoring: make all test files start with the lower letter

GitOrigin-RevId: 7863d60c6181ee90fd8c5819e3e907890581fddf
This commit is contained in:
Georgii Ustinov
2025-09-11 10:30:39 +00:00
committed by intellij-monorepo-bot
parent e1d95fede4
commit e499be1443
3 changed files with 14 additions and 6 deletions
@@ -10,7 +10,6 @@ import com.intellij.openapi.components.service
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.NeedsIndex
import com.intellij.ui.logging.JvmLoggingSettingsStorage
import junit.framework.TestCase
private const val SMART_MODE_REASON_MESSAGE = "Logger completion is not supported in the dumb mode"
@@ -230,15 +229,24 @@ class LoggerCompletionTest : LightFixtureCompletionTestCase() {
override fun getBasePath() = JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/completion/logger"
override fun doAntiTest() {
doAntiTest(*emptyArray<String>())
}
private fun doAntiTest(vararg names: String) {
val name = getTestName(true)
configureByFile("$name.java")
assertStringItems(*names)
TestCase.assertFalse(
lookup.items.any {
it is JvmLoggerLookupElement
}
)
if (names.isEmpty()) {
assertNull(lookup)
}
else {
assertFalse(
lookup.items.any {
it is JvmLoggerLookupElement
}
)
}
}
private fun doTest(position: Int, vararg names: String) {