Skip to content

Commit 8dbd9e1

Browse files
committed
chore: unbreak unit tests.
Correction for 28eab06 commit. Relate to #1326
1 parent 28eab06 commit 8dbd9e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/groovy/ru/mystamps/web/feature/series/sale/SeriesSalesServiceImplTest.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class SeriesSalesServiceImplTest extends Specification {
113113
given:
114114
Integer expectedSeriesId = 777
115115
Integer expectedUserId = 888
116-
SeriesCondition expectedCondition = nullOr(Random.seriesCondition())
117116
and:
118117
// mandatory fields
119118
form.setSellerId(444)
@@ -125,7 +124,7 @@ class SeriesSalesServiceImplTest extends Specification {
125124
form.setAltPrice(altPrice)
126125
form.setAltCurrency(altCurrency)
127126
form.setBuyerId(buyerId)
128-
form.setCondition(expectedCondition)
127+
form.setCondition(nullOr(Random.seriesCondition()))
129128
when:
130129
service.add(form, expectedSeriesId, expectedUserId)
131130
then:
@@ -138,7 +137,7 @@ class SeriesSalesServiceImplTest extends Specification {
138137
assert dto?.altPrice == form.altPrice
139138
assert dto?.altCurrency == form.altCurrency?.toString()
140139
assert dto?.buyerId == form.buyerId
141-
assert dto?.condition == form.condition
140+
assert dto?.condition == form.condition?.toString()
142141
assert dto?.createdBy == expectedUserId
143142
assert dto?.seriesId == expectedSeriesId
144143
assert DateUtils.roughlyEqual(dto?.createdAt, new Date())

0 commit comments

Comments
 (0)