Skip to content

Commit f565d53

Browse files
committed
SeriesServiceImplTest: propagate Random.quantity().
Addressed to #300 No functional changes.
1 parent 6c30fc8 commit f565d53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SeriesServiceImplTest extends Specification {
6161
@SuppressWarnings('UnnecessaryGetter')
6262
def setup() {
6363
form = new AddSeriesForm()
64-
form.setQuantity(2)
64+
form.setQuantity(Random.quantity())
6565
form.setPerforated(false)
6666
form.setCategory(TestObjects.createLinkEntityDto())
6767

@@ -206,7 +206,7 @@ class SeriesServiceImplTest extends Specification {
206206
@SuppressWarnings(['ClosureAsLastMethodParameter', 'UnnecessaryReturnKeyword'])
207207
def "add() should pass quantity to series dao"() {
208208
given:
209-
Integer expectedQuantity = 3
209+
Integer expectedQuantity = Random.quantity()
210210
form.setQuantity(expectedQuantity)
211211
when:
212212
service.add(form, Random.userId(), bool())

0 commit comments

Comments
 (0)