mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-220503 set PluginManagerCore.isUnitTestMode flag in unit tests
GitOrigin-RevId: 27af711a6430d05e2c88d0768f856f3511b38060
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6dbfc1751e
commit
bbd359cd28
+1
@@ -18,6 +18,7 @@ class ConditionalModuleLoadingRuleValueTest {
|
||||
init {
|
||||
Logger.setFactory(TestLoggerFactory::class.java)
|
||||
Logger.setUnitTestMode() // due to warnInProduction use in IdeaPluginDescriptorImpl
|
||||
PluginManagerCore.isUnitTestMode = true // FIXME git rid of this IJPL-220869
|
||||
}
|
||||
|
||||
@RegisterExtension
|
||||
|
||||
+4
@@ -11,6 +11,10 @@ import java.nio.file.Path
|
||||
import com.intellij.platform.testFramework.plugins.plugin as buildPlugin
|
||||
|
||||
internal class ContentModuleDependencyResolutionTest {
|
||||
init {
|
||||
PluginManagerCore.isUnitTestMode = true // FIXME git rid of this IJPL-220869
|
||||
}
|
||||
|
||||
@RegisterExtension
|
||||
@JvmField
|
||||
val inMemoryFs = InMemoryFsExtension()
|
||||
|
||||
@@ -18,6 +18,7 @@ import java.nio.file.FileVisitResult
|
||||
internal class PluginDependenciesTest {
|
||||
init {
|
||||
Logger.setUnitTestMode() // due to warnInProduction use in IdeaPluginDescriptorImpl
|
||||
PluginManagerCore.isUnitTestMode = true // FIXME git rid of this IJPL-220869
|
||||
}
|
||||
|
||||
@RegisterExtension
|
||||
|
||||
@@ -41,6 +41,7 @@ class PluginDescriptorTest {
|
||||
|
||||
init {
|
||||
Logger.setUnitTestMode() // due to warnInProduction use in IdeaPluginDescriptorImpl
|
||||
PluginManagerCore.isUnitTestMode = true // FIXME git rid of this IJPL-220869
|
||||
}
|
||||
|
||||
@RegisterExtension
|
||||
|
||||
@@ -22,6 +22,7 @@ class PluginSetLoadingTest {
|
||||
init {
|
||||
Logger.setFactory(TestLoggerFactory::class.java)
|
||||
Logger.setUnitTestMode() // due to warnInProduction use in IdeaPluginDescriptorImpl
|
||||
PluginManagerCore.isUnitTestMode = true // FIXME git rid of this IJPL-220869
|
||||
}
|
||||
|
||||
@Rule
|
||||
|
||||
Reference in New Issue
Block a user