You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgTestClassConstructor.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -191,7 +191,7 @@ data class TestsGenerationReport(
191
191
192
192
// Summary message is generated lazily to avoid evaluation of classUnderTest
193
193
var summaryMessage: () ->String= { "Unit tests for $classUnderTest were generated successfully." }
194
-
val initialWarnings:MutableList<String> =mutableListOf()
194
+
val initialWarnings:MutableList<() ->String>=mutableListOf()
Copy file name to clipboardExpand all lines: utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/TestGenerator.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -350,23 +350,23 @@ object TestGenerator {
350
350
summaryMessage = { "Unit tests for $classUnderTest were generated with warnings.<br>" }
351
351
352
352
if (model.forceMockHappened) {
353
-
initialWarnings.add(
353
+
initialWarnings.add {
354
354
"""
355
355
<b>Warning</b>: Some test cases were ignored, because no mocking framework is installed in the project.<br>
356
356
Better results could be achieved by <a href="${TestReportUrlOpeningListener.prefix}${TestReportUrlOpeningListener.mockitoSuffix}">installing mocking framework</a>.
357
357
""".trimIndent()
358
-
)
358
+
}
359
359
}
360
360
if (model.hasTestFrameworkConflict) {
361
-
initialWarnings.add(
361
+
initialWarnings.add {
362
362
"""
363
363
<b>Warning</b>: There are several test frameworks in the project.
364
364
To select run configuration, please refer to the documentation depending on the project build system:
0 commit comments