@@ -231,11 +231,10 @@ class SeriesServiceImplTest extends Specification {
231
231
' ClosureAsLastMethodParameter' ,
232
232
' UnnecessaryReturnKeyword' ,
233
233
' LineLength' ,
234
- /* false positive: */ ' UnnecessaryBooleanExpression' ,
235
234
])
236
- def " add() should pass michel price and currency to series dao" (BigDecimal price, BigDecimal expectedPrice, String expectedCurrency) {
235
+ def " add() should pass michel price and currency to series dao" (BigDecimal expectedPrice, String expectedCurrency) {
237
236
given :
238
- form. setMichelPrice(price )
237
+ form. setMichelPrice(expectedPrice )
239
238
when :
240
239
service. add(form, Random . userId(), false )
241
240
then :
@@ -245,21 +244,20 @@ class SeriesServiceImplTest extends Specification {
245
244
return true
246
245
}) >> 123
247
246
where :
248
- price || expectedPrice | expectedCurrency
249
- ANY_PRICE || ANY_PRICE | Currency . EUR . toString()
250
- null || null | null
247
+ expectedPrice | expectedCurrency
248
+ ANY_PRICE | Currency . EUR . toString()
249
+ null | null
251
250
}
252
251
253
252
@Unroll
254
253
@SuppressWarnings ([
255
254
' ClosureAsLastMethodParameter' ,
256
255
' LineLength' ,
257
256
' UnnecessaryReturnKeyword' ,
258
- /* false positive: */ ' UnnecessaryBooleanExpression' ,
259
257
])
260
- def " add() should pass scott price and currency to series dao" (BigDecimal price, BigDecimal expectedPrice, String expectedCurrency) {
258
+ def " add() should pass scott price and currency to series dao" (BigDecimal expectedPrice, String expectedCurrency) {
261
259
given :
262
- form. setScottPrice(price )
260
+ form. setScottPrice(expectedPrice )
263
261
when :
264
262
service. add(form, Random . userId(), false )
265
263
then :
@@ -269,21 +267,20 @@ class SeriesServiceImplTest extends Specification {
269
267
return true
270
268
}) >> 123
271
269
where :
272
- price || expectedPrice | expectedCurrency
273
- ANY_PRICE || ANY_PRICE | Currency . USD . toString()
274
- null || null | null
270
+ expectedPrice | expectedCurrency
271
+ ANY_PRICE | Currency . USD . toString()
272
+ null | null
275
273
}
276
274
277
275
@Unroll
278
276
@SuppressWarnings ([
279
277
' ClosureAsLastMethodParameter' ,
280
278
' LineLength' ,
281
279
' UnnecessaryReturnKeyword' ,
282
- /* false positive: */ ' UnnecessaryBooleanExpression' ,
283
280
])
284
- def " add() should pass yvert price and currency to series dao" (BigDecimal price, BigDecimal expectedPrice, String expectedCurrency) {
281
+ def " add() should pass yvert price and currency to series dao" (BigDecimal expectedPrice, String expectedCurrency) {
285
282
given :
286
- form. setYvertPrice(price )
283
+ form. setYvertPrice(expectedPrice )
287
284
when :
288
285
service. add(form, Random . userId(), false )
289
286
then :
@@ -293,21 +290,20 @@ class SeriesServiceImplTest extends Specification {
293
290
return true
294
291
}) >> 123
295
292
where :
296
- price || expectedPrice | expectedCurrency
297
- ANY_PRICE || ANY_PRICE | Currency . EUR . toString()
298
- null || null | null
293
+ expectedPrice | expectedCurrency
294
+ ANY_PRICE | Currency . EUR . toString()
295
+ null | null
299
296
}
300
297
301
298
@Unroll
302
299
@SuppressWarnings ([
303
300
' ClosureAsLastMethodParameter' ,
304
301
' LineLength' ,
305
302
' UnnecessaryReturnKeyword' ,
306
- /* false positive: */ ' UnnecessaryBooleanExpression' ,
307
303
])
308
- def " add() should pass gibbons price and currency to series dao" (BigDecimal price, BigDecimal expectedPrice, String expectedCurrency) {
304
+ def " add() should pass gibbons price and currency to series dao" (BigDecimal expectedPrice, String expectedCurrency) {
309
305
given :
310
- form. setGibbonsPrice(price )
306
+ form. setGibbonsPrice(expectedPrice )
311
307
when :
312
308
service. add(form, Random . userId(), false )
313
309
then :
@@ -317,9 +313,9 @@ class SeriesServiceImplTest extends Specification {
317
313
return true
318
314
}) >> 123
319
315
where :
320
- price || expectedPrice | expectedCurrency
321
- ANY_PRICE || ANY_PRICE | Currency . GBP . toString()
322
- null || null | null
316
+ expectedPrice | expectedCurrency
317
+ ANY_PRICE | Currency . GBP . toString()
318
+ null | null
323
319
}
324
320
325
321
def " add() should throw exception if comment is empty" () {
0 commit comments