File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/process Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package org.utbot.instrumentation.process
3
3
import com.jetbrains.rd.util.*
4
4
import com.jetbrains.rd.util.lifetime.Lifetime
5
5
import kotlinx.coroutines.*
6
+ import org.mockito.Mockito
6
7
import org.utbot.common.*
7
8
import org.utbot.framework.plugin.api.util.UtContext
8
9
import org.utbot.instrumentation.agent.Agent
@@ -63,6 +64,11 @@ fun logLevelArgument(level: LogLevel): String {
63
64
return " $ENABLE_LOGS_OPTION =$level "
64
65
}
65
66
67
+ interface DummyForMockitoWarmup {
68
+ fun method1 ()
69
+ }
70
+
71
+
66
72
private fun findLogLevel (args : Array <String >): LogLevel {
67
73
val logArgument = args.find{ it.contains(ENABLE_LOGS_OPTION ) } ? : return LogLevel .Fatal
68
74
@@ -92,6 +98,10 @@ fun main(args: Array<String>) = runBlocking {
92
98
Logger .set(Lifetime .Eternal , UtRdConsoleLoggerFactory (logLevel, System .err))
93
99
94
100
val port = findRdPort(args)
101
+ try {
102
+ val dummy = Mockito .mock(DummyForMockitoWarmup ::class .java)
103
+ } catch (ignored: Throwable ) {
104
+ }
95
105
96
106
try {
97
107
ClientProtocolBuilder ().withProtocolTimeout(messageFromMainTimeout).start(port) {
You can’t perform that action at this time.
0 commit comments