[Java. Logging] Add NeedsIndex annotation to pass the test

IDEA-345098

GitOrigin-RevId: a6190b0e43a49769ee59c50eee6450c121a43ecb
This commit is contained in:
Georgii Ustinov
2024-02-16 10:25:27 +02:00
committed by intellij-monorepo-bot
parent 57ef1be2f2
commit effcc65b0a
2 changed files with 16 additions and 0 deletions

View File

@@ -4,29 +4,35 @@ import com.intellij.codeInsight.completion.JvmLoggerLookupElement
import com.intellij.codeInsight.completion.LightFixtureCompletionTestCase
import com.intellij.java.codeInsight.JvmLoggerTestSetupUtil
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.NeedsIndex
import de.plushnikov.intellij.plugin.LombokTestUtil
import de.plushnikov.intellij.plugin.logging.LombokLoggingUtils
import junit.framework.TestCase
class LombokLoggerCompletionTest : LightFixtureCompletionTestCase() {
@NeedsIndex.SmartMode(reason = "Logger completion is not supported in the dumb mode")
fun testSlf4j() {
JvmLoggerTestSetupUtil.setupSlf4j(myFixture)
doTest(LombokLoggingUtils.SLF4J_ANNOTATION, "long", "log", "log", "clone")
}
@NeedsIndex.SmartMode(reason = "Logger completion is not supported in the dumb mode")
fun testLog4j2() {
JvmLoggerTestSetupUtil.setupLog4j2(myFixture)
doTest(LombokLoggingUtils.LOG4J2_ANNOTATION, "long", "log", "log", "clone")
}
@NeedsIndex.SmartMode(reason = "Logger completion is not supported in the dumb mode")
fun testLog4j() {
JvmLoggerTestSetupUtil.setupLog4j(myFixture)
doTest(LombokLoggingUtils.LOG4J_ANNOTATION, "long", "log", "log", "clone")
}
@NeedsIndex.SmartMode(reason = "Logger completion is not supported in the dumb mode")
fun testApacheCommons() {
JvmLoggerTestSetupUtil.setupApacheCommons(myFixture)