File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/test/groovy/ru/mystamps/web/feature/series/sale Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ class SeriesSalesServiceImplTest extends Specification {
113
113
given :
114
114
Integer expectedSeriesId = 777
115
115
Integer expectedUserId = 888
116
- SeriesCondition expectedCondition = nullOr(Random . seriesCondition())
117
116
and :
118
117
// mandatory fields
119
118
form. setSellerId(444 )
@@ -125,7 +124,7 @@ class SeriesSalesServiceImplTest extends Specification {
125
124
form. setAltPrice(altPrice)
126
125
form. setAltCurrency(altCurrency)
127
126
form. setBuyerId(buyerId)
128
- form. setCondition(expectedCondition )
127
+ form. setCondition(nullOr( Random . seriesCondition()) )
129
128
when :
130
129
service. add(form, expectedSeriesId, expectedUserId)
131
130
then :
@@ -138,7 +137,7 @@ class SeriesSalesServiceImplTest extends Specification {
138
137
assert dto?. altPrice == form. altPrice
139
138
assert dto?. altCurrency == form. altCurrency?. toString()
140
139
assert dto?. buyerId == form. buyerId
141
- assert dto?. condition == form. condition
140
+ assert dto?. condition == form. condition?. toString()
142
141
assert dto?. createdBy == expectedUserId
143
142
assert dto?. seriesId == expectedSeriesId
144
143
assert DateUtils . roughlyEqual(dto?. createdAt, new Date ())
You can’t perform that action at this time.
0 commit comments