mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Java. Code completion] IDEA-379113 refactoring: make all test files start with the lower letter
GitOrigin-RevId: 7863d60c6181ee90fd8c5819e3e907890581fddf
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e1d95fede4
commit
e499be1443
+14
-6
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user