Skip to content

Commit 350bcea

Browse files
committed
Disable flaky test in summaries
1 parent f3e530e commit 350bcea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/services/framework/MockFrameworkManager.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ private class MockitoMocker(context: CgContext) : ObjectMocker(context) {
201201
// Sometimes void methods are called explicitly, e.g. annotated with @Mock fields in Spring test classes.
202202
// We would like to mark that this field is used and must not be removed from test class.
203203
// Without `doNothing` call Intellij Idea suggests removing this field as unused.
204-
is MethodId -> mockitoClassId[doNothingMethodId]()[whenStubberMethodId](mockObject)[executable](*matchers)
204+
is MethodId -> {
205+
+mockitoClassId[doNothingMethodId]()[whenStubberMethodId](mockObject)[executable](*matchers)
206+
}
205207
else -> error("Only MethodId and ConstructorId was expected to appear in simple mocker but got $executable")
206208
}
207209
} else {

0 commit comments

Comments
 (0)