File tree Expand file tree Collapse file tree
utbot-framework/src/main/kotlin/org/utbot/engine
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ class Mocker(
160160 private val mocksDesired: Boolean = strategy != MockStrategy .NO_MOCKS
161161
162162 fun construct (value : ObjectValue ? ): MockedObjectInfo =
163- value?.let { if (mocksDesired || mockAlways(it.type) ) ExpectedMock (it) else UnexpectedMock (it) } ? : NoMock
163+ value
164+ ?.let { if (mocksDesired || mockAlways(it.type)) ExpectedMock (it) else UnexpectedMock (it) }
165+ ? : NoMock
164166
165167 /* *
166168 * Creates mocked instance of the [type] using mock info if it should be mocked by the mocker,
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ object UtTestsDialogProcessor {
249249 .executeSynchronously()
250250
251251 withStaticsSubstitutionRequired(true ) {
252- val mockFrameworkInstalled = model.mockFramework? .isInstalled ? : true
252+ val mockFrameworkInstalled = model.mockFramework.isInstalled
253253
254254 val startTime = System .currentTimeMillis()
255255 val timerHandler =
You can’t perform that action at this time.
0 commit comments