@@ -206,33 +206,25 @@ object UtTestsDialogProcessor {
206
206
.executeSynchronously()
207
207
208
208
withStaticsSubstitutionRequired(true ) {
209
- val mockFrameworkInstalled = model.mockFramework? .isInstalled ? : true
209
+ val mockFrameworkInstalled = model.mockFramework.isInstalled
210
210
var forceMockListener: ForceMockListener ? = null
211
211
var forceStaticMockListener: ForceStaticMockListener ? = null
212
212
213
213
when (model.parametrizedTestSource) {
214
- ParametrizedTestSource .PARAMETRIZE -> {
215
- forceMockListener = ForceMockListener .create(testCaseGenerator, model.conflictTriggers)
216
- forceStaticMockListener = ForceStaticMockListener .create(
217
- testCaseGenerator,
218
- model.conflictTriggers
219
- )
220
- }
221
-
222
214
ParametrizedTestSource .DO_NOT_PARAMETRIZE -> {
223
215
when {
224
- ! mockFrameworkInstalled -> forceMockListener = ForceMockListener .create(
225
- testCaseGenerator,
226
- model.conflictTriggers
227
- )
216
+ ! mockFrameworkInstalled -> forceMockListener =
217
+ ForceMockListener .create(testCaseGenerator, model.conflictTriggers)
228
218
229
- ! model.staticsMocking.isConfigured -> forceStaticMockListener =
230
- ForceStaticMockListener .create(
231
- testCaseGenerator,
232
- model.conflictTriggers
233
- )
219
+ ! model.staticsMocking.isConfigured ->
220
+ forceStaticMockListener = ForceStaticMockListener .create(testCaseGenerator, model.conflictTriggers)
234
221
}
235
222
}
223
+
224
+ ParametrizedTestSource .PARAMETRIZE -> {
225
+ forceMockListener = ForceMockListener .create(testCaseGenerator, model.conflictTriggers)
226
+ forceStaticMockListener = ForceStaticMockListener .create(testCaseGenerator, model.conflictTriggers)
227
+ }
236
228
}
237
229
238
230
val notEmptyCases = runCatching {
0 commit comments