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: src/test/groovy/ru/mystamps/web/service/SeriesServiceImplTest.groovy
+20-40Lines changed: 20 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -231,95 +231,75 @@ class SeriesServiceImplTest extends Specification {
231
231
}
232
232
233
233
@Unroll
234
-
@SuppressWarnings([
235
-
'ClosureAsLastMethodParameter',
236
-
'UnnecessaryReturnKeyword',
237
-
'LineLength',
238
-
])
239
-
def"add() should pass michel price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
def'add() should pass michel price (#expectedPrice) to series dao'(BigDecimal expectedPrice) {
240
236
given:
241
237
form.setMichelPrice(expectedPrice)
242
238
when:
243
239
service.add(form, Random.userId(), bool())
244
240
then:
245
241
1* seriesDao.add({ AddSeriesDbDtoseries->
246
242
assert series?.michelPrice == expectedPrice
247
-
assert series?.michelCurrency == expectedCurrency
248
243
returntrue
249
244
}) >>Random.id()
250
245
where:
251
-
expectedPrice | expectedCurrency
252
-
Random.price() | Currency.EUR.toString()
253
-
null | null
246
+
expectedPrice | _
247
+
Random.price() | _
248
+
null | _
254
249
}
255
250
256
251
@Unroll
257
-
@SuppressWarnings([
258
-
'ClosureAsLastMethodParameter',
259
-
'LineLength',
260
-
'UnnecessaryReturnKeyword',
261
-
])
262
-
def"add() should pass scott price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
def'add() should pass scott price (#expectedPrice) to series dao'(BigDecimal expectedPrice) {
263
254
given:
264
255
form.setScottPrice(expectedPrice)
265
256
when:
266
257
service.add(form, Random.userId(), bool())
267
258
then:
268
259
1* seriesDao.add({ AddSeriesDbDtoseries->
269
260
assert series?.scottPrice == expectedPrice
270
-
assert series?.scottCurrency == expectedCurrency
271
261
returntrue
272
262
}) >>Random.id()
273
263
where:
274
-
expectedPrice | expectedCurrency
275
-
Random.price() | Currency.USD.toString()
276
-
null | null
264
+
expectedPrice | _
265
+
Random.price() | _
266
+
null | _
277
267
}
278
268
279
269
@Unroll
280
-
@SuppressWarnings([
281
-
'ClosureAsLastMethodParameter',
282
-
'LineLength',
283
-
'UnnecessaryReturnKeyword',
284
-
])
285
-
def"add() should pass yvert price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
def'add() should pass yvert price (#expectedPrice) to series dao'(BigDecimal expectedPrice) {
286
272
given:
287
273
form.setYvertPrice(expectedPrice)
288
274
when:
289
275
service.add(form, Random.userId(), bool())
290
276
then:
291
277
1* seriesDao.add({ AddSeriesDbDtoseries->
292
278
assert series?.yvertPrice == expectedPrice
293
-
assert series?.yvertCurrency == expectedCurrency
294
279
returntrue
295
280
}) >>Random.id()
296
281
where:
297
-
expectedPrice | expectedCurrency
298
-
Random.price() | Currency.EUR.toString()
299
-
null | null
282
+
expectedPrice | _
283
+
Random.price() | _
284
+
null | _
300
285
}
301
286
302
287
@Unroll
303
-
@SuppressWarnings([
304
-
'ClosureAsLastMethodParameter',
305
-
'LineLength',
306
-
'UnnecessaryReturnKeyword',
307
-
])
308
-
def"add() should pass gibbons price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
0 commit comments