Skip to content

Commit 5162442

Browse files
committed
SeriesServiceImplTest: propagate Random.price().
Addressed to #300 No functional changes.
1 parent 14583e1 commit 5162442

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/test/groovy/ru/mystamps/web/service/SeriesServiceImplTest.groovy

+12-14
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ import ru.mystamps.web.tests.Random
4343

4444
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
4545
class SeriesServiceImplTest extends Specification {
46-
private static final BigDecimal ANY_PRICE = new BigDecimal('17')
47-
4846
private final ImageService imageService = Mock()
4947
private final SeriesDao seriesDao = Mock()
5048
private final StampsCatalogService michelCatalogService = Mock()
@@ -250,9 +248,9 @@ class SeriesServiceImplTest extends Specification {
250248
return true
251249
}) >> 123
252250
where:
253-
expectedPrice | expectedCurrency
254-
ANY_PRICE | Currency.EUR.toString()
255-
null | null
251+
expectedPrice | expectedCurrency
252+
Random.price() | Currency.EUR.toString()
253+
null | null
256254
}
257255

258256
@Unroll
@@ -273,9 +271,9 @@ class SeriesServiceImplTest extends Specification {
273271
return true
274272
}) >> 123
275273
where:
276-
expectedPrice | expectedCurrency
277-
ANY_PRICE | Currency.USD.toString()
278-
null | null
274+
expectedPrice | expectedCurrency
275+
Random.price() | Currency.USD.toString()
276+
null | null
279277
}
280278

281279
@Unroll
@@ -296,9 +294,9 @@ class SeriesServiceImplTest extends Specification {
296294
return true
297295
}) >> 123
298296
where:
299-
expectedPrice | expectedCurrency
300-
ANY_PRICE | Currency.EUR.toString()
301-
null | null
297+
expectedPrice | expectedCurrency
298+
Random.price() | Currency.EUR.toString()
299+
null | null
302300
}
303301

304302
@Unroll
@@ -319,9 +317,9 @@ class SeriesServiceImplTest extends Specification {
319317
return true
320318
}) >> 123
321319
where:
322-
expectedPrice | expectedCurrency
323-
ANY_PRICE | Currency.GBP.toString()
324-
null | null
320+
expectedPrice | expectedCurrency
321+
Random.price() | Currency.GBP.toString()
322+
null | null
325323
}
326324

327325
@Unroll

0 commit comments

Comments
 (0)