Skip to content

Commit 848ec13

Browse files
committed
Little corrections
1 parent ac8e68a commit 848ec13

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

utbot-framework/src/main/kotlin/org/utbot/engine/Mocks.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 =

0 commit comments

Comments
 (0)